Hello,
I have the following requirement for a customer, and need some help!
If a Non-Inv Purchase Part is entered in the PR line, the Part Description field should cleared out or left empty so that the user can enter a new description and then be able to save the line. There’s a condition to consider, if Inventory Part = true, nothing should happen, the line must save as normal. If Inventory Part = false, the Part Description should be cleared out as previously mentioned.
I created the following BPA workflow. I added a API Read task to read the Description, followed by a Script task to set the Description field as null, finally an API task to update the field. However, it’s not working. When deployed, I added a PR line, entered a Non-Inv PP and it shows an error saying the Description can’t be null, but the Description field isn’t cleared out. It shows the original value.


Has anyone managed to clear or leave a mandatory field empty?