I have a Sales Order Table with “Sales Id” being generated when a new sale order is raised. Now On generation of a new sales order, a new purchase request “Purchase Id” is raised which is added into another table Purchase Order. Now id the purchase is made to a specific buyer then It is also added in Production Table.
Now i want the “purchase Id” which is generated to be added in Production table but we are unable to do so since the trigger is created from Sales Table which has “Sales Id”.
Any suggestions on how can we add purchase Id in Production Table.
Attached is a screenshot of workflow which we have on creation of new Sales Order

