Set Product to "Inactive" after adding it to a SO
Hello!
Hope someone can help me out with this. Maybe it would be a simple thing but, I'm a newbie with the platform.
I change the label of the SO to "Separaciones" and Products as "Listado de Lotes".
What I'm trying to do is a Workflow that updates the Product Active field value to "False" when the Product is added to the SO.
Detailed info:
Sales Orders are labeled as "Separaciones"
Products as "Listado de Lotes"
SO Custom lookup field "Lote Separado" where the Product Name attached to the SO is selected
Product Field to be updated is "Active" (sys defined)
Here's the code I used to update the fieldHope you can give me a hand on this to continue my learning process..
Thanks and regards,