- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 11:04 PM
I have two fields
SLA_values [related List type field]
Approving_Group [Reference type field]
My requirement :
If I were to change/update the values of either of the above two fields the workflow is to be run again on that record and ask for Approval to whatever group that has been selected in the Approving_Group field.
Now, how what Business Rule (I'm assuming BR) do I run to check if the values of the above 2 fields have been updates ? and based on that re-trigger the workflow again ?
Thanks.
P.S. I could use some urgent help ...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 12:33 AM
Hi,
I will suggest create a business rule and give condition as Approving group change's and SLA field changes. Also put one more condition i.e. approval is not yet requester or approval is requested. Meaning once the change is approved the business rule should not trigger. Just a suggestion if you want you can remove this condition.
Script:
new global.Workflow().restartWorkflow(current);
current.autoSysFields(false);
current.update();
Check below scripts:
THanks
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 12:16 AM
hi Rohan ,
whenever you create a workflow give their the condition in workflow while creating that whenever the group / SLA value changes then it will run everytime the value changes .
to give approval to specific group , you select approval group activity and in that write a script to get the selected group :
var grp = current.variables.Approving_Group;
return grp;
this will send approval to the selected group.
If my reply helps you at all, I’d really appreciate it if you click the Helpful button and if my reply is the answer you were looking for, it would be awesome if you could click both the Helpful and Accepted Solution buttons!
Regards,
Apeksha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 12:33 AM
Hi,
I will suggest create a business rule and give condition as Approving group change's and SLA field changes. Also put one more condition i.e. approval is not yet requester or approval is requested. Meaning once the change is approved the business rule should not trigger. Just a suggestion if you want you can remove this condition.
Script:
new global.Workflow().restartWorkflow(current);
current.autoSysFields(false);
current.update();
Check below scripts:
THanks
Ashutosh
