- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 07:35 PM
Hi,
I have a requirement that if RITM is generated, then an approval mail should be sent to requested for.
That mail should contain 2 links to approve and reject RITM.
I was not sure how to do this, please help me with the approach
Thanks!!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 10:25 PM
Hello @BijoyDeb
If You have Applied Workflow to your Catalog Item After begin do one thing add Run Script Activity and use below code
var Req = current.request.getRefRecord();
Req.requested_for=current.variables.<>//add your variable backend name of Requested for
Req.state=1//select as per values in your client sys_choice table for sc_req_item table
Req.update();
current.state=1;
current.requested_for=current.variables.<>//add your variable backend name of Requested for
current.stage.
req.approval="requested"; //choose which one you want
or instead of this you can use Set Value Activity also.
after this use approval user activity in workflow and add Requested for
then send notification as I have directed just use requested for there also
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 10:06 PM
Hi,
You can create notification giving who will receive as requested for
And can you give some info on flow or workflow configured for this ?
Thanks,
Ramya Addala

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 10:25 PM
Hello @BijoyDeb
If You have Applied Workflow to your Catalog Item After begin do one thing add Run Script Activity and use below code
var Req = current.request.getRefRecord();
Req.requested_for=current.variables.<>//add your variable backend name of Requested for
Req.state=1//select as per values in your client sys_choice table for sc_req_item table
Req.update();
current.state=1;
current.requested_for=current.variables.<>//add your variable backend name of Requested for
current.stage.
req.approval="requested"; //choose which one you want
or instead of this you can use Set Value Activity also.
after this use approval user activity in workflow and add Requested for
then send notification as I have directed just use requested for there also
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 10:02 PM
are you using flow or workflow?
you can use advanced logic in workflow and send it to the variable
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 10:18 PM
@Ankur Bawiskar I was using flow
1st used update record action to update ritm record to waiting for approval
But in ask for approval action, there is no way to add appover
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 10:21 PM
you can use scripted approval where you can set the approval user dynamically
Scripted Approvals in Flow Designer with Flow Variables
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader