Need to create an approval on purchase order table related list by using workflow

rahul kumar10
Tera Contributor

Need to create an approver approval on Purchase Order table related list by using runscript in workflow, because workflow is on RITM and approval approver should be taken from a user reference field which is available as (approver 1 and approver 2)on purchase order table.

6 REPLIES 6

@rahul kumar10 found the issue

in relationship just keep any one query only

current.addQuery('document_id', parent.getUniqueValue());

 

or

 

current.addQuery('sysapproval',parent.getUniqueValue());

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

Still facing the same issue .