- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2024 08:36 AM
Hi All,
I have an requirement:
There is a variable called Approver referencing to the user table and is hidden from the catalog view.
It is visible on requested item.
Fulfiller will work on Requested item and if they add any value in the Approver variable, approver should send to that user.
I tried to do in the flow designer, but it is not working when i update the form after adding the approver variable.
Please help me,
Thanks,
Sam
Solved! Go to Solution.
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2024 11:19 PM
Hi @Samiksha2 ,
can you try something like this
create Business rule
script like below
if(current.variables.apprval_user != previous.variables.apprval_user)
var approval_gr = new GlideRecord('sysapproval_approver');
approval_gr.initialize();
approval_gr.state = 'requested';
approval_gr.approver = current.variables.apprval_user; // your variable here
approval_gr.sysapproval = current.sys_id; //Current is record that requires approval
approval_gr.insert();
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2024 11:19 PM
Hi @Samiksha2 ,
can you try something like this
create Business rule
script like below
if(current.variables.apprval_user != previous.variables.apprval_user)
var approval_gr = new GlideRecord('sysapproval_approver');
approval_gr.initialize();
approval_gr.state = 'requested';
approval_gr.approver = current.variables.apprval_user; // your variable here
approval_gr.sysapproval = current.sys_id; //Current is record that requires approval
approval_gr.insert();
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2024 11:28 PM
Thanks @Bhavya11