Create dynamic link in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2023 09:04 PM
Hi Experts,
Requirement:
For each Software catalog items, there is common follow, and via OOTB flow we are sending notifications/emails to users.
Now in the notification/email client wants to add link for catalog item so that user redirect to catalog item on the portal and submit the request.
Question- How can I achieve this via flow? How can I add dynamic link in the email.
Thanks,
NS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2023 06:09 PM - edited 03-26-2023 06:10 PM
I found the solution,
Create new action
1) Inputs- Requested Item
2) Add- Script steps
- Inputs variable- Requested Item.item.sys_id
- Script-
var sysId = inputs.requestedItem;
var tableName = 'sc_cat_item';
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + '/sp?id=' + tableName + '&table='+ tableName + '&sys_id=' + sysId + '">' + 'LINK'+ '</a>';
outputs.url = url; - Output variable - url
3) Outputs- url
Add the action in your flow or subflow and provide requested item record as a input