approvals based on variable (referrence field)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 03:59 AM
Hi Experts,
based on the Divison selected , i.e. a (reference field) from the department table, I want to trigger approvals based on the below selections. I'm not able to achieve it and require your help in creating a workflow that checks the current value of the division ( which is fetching from department table) and trigger approvals accordingly.
the conditions are as follows:
Division | LEVEL 1 APPROVER | LEVEL 2 APPROVER |
Australia Commercial | Line Manager( of the requester) | Approval Group Name: Australia Commercial BCD |
Australia Retail | Line Manager( of the requester) | Approval Group Name: Australia Retail BCD |
Corporate Centre and Services | Line Manager( of the requester) | Approval Group Name: Corporate Centre and Services BCD |
Group Services | Line Manager( of the requester) | Approval Group Name: Group Services BCD |
Group Technology | Line Manager( of the requester) | Approval Group Name: Group Tech BCD |
Institutional | Line Manager( of the requester) | Approval Group Name: Institutional BCD |
New Zealand | Line Manager( of the requester) | Approval Group Name: New Zealand BCD |
Pacific | Line Manager( of the requester) | Approval Group Name: Pacific BCD |
Technology COO Domains | Line Manager( of the requester) | Approval Group Name: Technology COO Domains BCD |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2023 12:07 PM
You have to write two approvals. One is approval user and the other approval group. In each approval workflow activity, select advanced and write approval script.
You can write approval script like this;
answer = [];
If(current.variables.division = "pacific") //you can access variables by current.variables).
answer.push(current.variablesubject_person.manager);
Refer below link for approval group scripting.