I want to dynamically create the URL of the service portal and include it in the body of the notific

bonsai
Mega Sage

I would like to include a link to the service portal in the body of the notification.

Is it possible to dynamically enter the URL of the service portal using a script, etc., without directly entering the URL in the text?

It's a pain to manually fix the URL every time you migrate to another instance with an update set. . .

1 ACCEPTED SOLUTION

_Gaurav
Kilo Sage

Hi @bonsai 
Instead of using the URL as hardcoded, you can use the parameters written after the "/"
For example:
dev11111.service-now.com/id=page_name&sys_id=1234567890123...
Use
/id=page_name&sys_id=1234567890123...

This will make your URL dynamic.
Please mark this as helpful if this resolves your issue.

View solution in original post

3 REPLIES 3

_Gaurav
Kilo Sage

Hi @bonsai 
Instead of using the URL as hardcoded, you can use the parameters written after the "/"
For example:
dev11111.service-now.com/id=page_name&sys_id=1234567890123...
Use
/id=page_name&sys_id=1234567890123...

This will make your URL dynamic.
Please mark this as helpful if this resolves your issue.

very!

thank you.

Ankur Bawiskar
Tera Patron
Tera Patron

@bonsai 

always use relative url and you need not worry about the instance name when you migrate

Example: /sp?id=sc_request&table=sc_request&sys_id=d89f1fc607c9d1102011ff208c1ed0b6

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader