URL link of instance - Flow Designer - Action

Bent J_rgensen
Kilo Contributor

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?

find_real_file.png

 

Thanks, Bent

1 ACCEPTED SOLUTION

DScroggins
Kilo Sage

Hi Bent,

Can you use:

var instance = gs.getProperty('instance_name');

outputs.instance_url_link = 'https://' + instance + '.service-now.com';

Hope this helps.

--David

View solution in original post

6 REPLIES 6

DScroggins
Kilo Sage

Hi Bent,

Can you use:

var instance = gs.getProperty('instance_name');

outputs.instance_url_link = 'https://' + instance + '.service-now.com';

Hope this helps.

--David

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

Bent,

 

You also need to define your action outputs and move the variable from the action step to the action outputs here:

 

find_real_file.png

 

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

Thanks, David 🙂