Question on catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 01:34 AM
Hi There,
I have one Question ON HR Referral Form, Approvals,
When RITM created, then 1st level of Approval go to HR group, and second level of Approval should go to the particular assigned member , and that should be decided by the Assignee of the particular RITM.
For Example
RITM created, at that time RITM is Assigned to 'XYZ', member, and then 'XYZ' should select the 2nd level of Approval.
So can somebody please let me know how can I achieve, how can assignee of the RITM, can select the 2nd Level of Approval.
For this ,
I have created one variable (Its only visible on RITM Variable Section), sys_user reference type.
when Assignee can fill this variable with any member, then second level of Approval should Go to them
So what logic i can apply here. please help me on this.
Thanks,
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 05:06 AM - edited 12-14-2023 05:07 AM
Hi @Mani60
In workflow, you can add a "Wait for Condition" activity as below with item and variable and check if its not empty.
Once the condition in "Wait for Condition" is fulfilled (i.e., 2ndLevel Approver is not empty), trigger the approvals using this variable value on the approval activity.
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Sujatha
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 05:16 AM - edited 12-14-2023 05:22 AM
Hello @Mani60
Okay so with this approach you can move ahead and add the further logic in either workflow or the flow, like until that "2nd level of approver" variable doesn't get filled, you can use the wait for condition so that the workflow or flow will wait and after that in the 2nd approval you can use that variable value in the activity to trigger the 2nd approval.
You can refer the below image to trigger the approval with the help of that variable value.
var userid = current.variables.select_tlt_approver.toString();
gs.log("USER ID - " + userid);
workflow.info("USER ID - " + userid);
var answer = [];
answer = userid;
Let me know your views on this and if is there any further queries.
Mark ✅Correct if this solves your issue and also mark 👍Helpful if you find my response worthy based on the impact.
Regards,
Aniket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 06:15 AM
Hello @Mani60,
Also let me know if you want to visible or editable & mandatory the 2nd level of approver variable only to the assigned to user from that group or not if yes then that can be also possible with client scripts, like you will have to use 2 client scripts one is for on load and one for on change and through that the variable will me accessible to that perticular user only and not for others.
Mark ✅Correct if this solves your issue and also mark 👍Helpful if you find my response worthy based on the impact.
Regards,
Aniket