Create dynamic link in flow designer

NS16
Mega Sage

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

1 REPLY 1

NS16
Mega Sage

I found the solution,

 

Create new action

1) Inputs- Requested Item

2) Add- Script steps

  1. Inputs variable- Requested Item.item.sys_id
  2. 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;

  3. Output variable - url

3) Outputs- url

 

Add the action in your flow or subflow and provide requested item record as a input