- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2019 05:27 AM
Hi,
From Design Flow, I would like to send an approval link in an email.
Unfortunately, I'm having trouble getting the URL string on the instance.
I have tried with "outputs.Instance_url_link = gs.getProperty ('glide.servlet.uri')" but no variables appear in the Output.
Is there anyone who can help?
Thanks, Bent
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2019 05:38 AM
Hi Bent,
Can you use:
var instance = gs.getProperty('instance_name');
outputs.instance_url_link = 'https://' + instance + '.service-now.com';
Hope this helps.
--David

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2019 05:38 AM
Hi Bent,
Can you use:
var instance = gs.getProperty('instance_name');
outputs.instance_url_link = 'https://' + instance + '.service-now.com';
Hope this helps.
--David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2019 10:00 AM
Hi David,
I'm sure the script code is correct, but the weird thing is that I don't get any kind of output variables. Do you have any idea what on what I'm doing wrong?
Regards, Bent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2019 10:26 AM
Bent,
You also need to define your action outputs and move the variable from the action step to the action outputs here:
There are main inputs and outputs for the action but then there are individual inputs/outputs for each action step. You must associate any action step output variable to the main action output if you want to utilize the value within the flow.
--David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2019 11:40 PM
Thanks, David 🙂