How can I specify a link with active instance in a richt text label

Luc BURGENSIS
Tera Contributor

As catalog editor, a rich text variable of a catalog item specifiy a link to a location queue for appointment,

When my catalog item and his associate variable set is clone over different instances (PROD > REC, PROD > DEV ...),

I want this link to be operationnal on those different instances without any manuel actions.

I'm looking for the way to specify a dynamic lync that mention the active instance :

Exemple (xxx is our session name, change for the exemple) : 

<p style="text-align: center;"><a href="https://xxxREC.service-now.com/xxx?id=sc_cat_item&amp;sys_id=5481821edb7ad890108b0a9bd39619cd&amp;sysparm_category=103756751b8ae010fbd5eced7b4bcb96&amp;sysparm_reason=Installation_Firewall" target="_blank" rel="noopener noreferrer nofollow">1er rendez-vous : Installation FireWall</a></p>  

Today, for each clone made, we need to change the link to specify the right environement.

Thanks for your help.

1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

Hello @Luc BURGENSIS 

replace it  with below .No need to give the instance URL just give it from slash and it will take the instance name dynamically 

<p style="text-align: center;"><a href="/xxx?id=sc_cat_item&amp;sys_id=5481821edb7ad890108b0a9bd39619cd&amp;sysparm_category=103756751b8ae010fbd5eced7b4bcb96&amp;sysparm_reason=Installation_Firewall" target="_blank" rel="noopener noreferrer nofollow">1er rendez-vous : Installation FireWall</a></p>  

Please mark my answer correct if it helps you

 

View solution in original post

2 REPLIES 2

Mohith Devatte
Tera Sage
Tera Sage

Hello @Luc BURGENSIS 

replace it  with below .No need to give the instance URL just give it from slash and it will take the instance name dynamically 

<p style="text-align: center;"><a href="/xxx?id=sc_cat_item&amp;sys_id=5481821edb7ad890108b0a9bd39619cd&amp;sysparm_category=103756751b8ae010fbd5eced7b4bcb96&amp;sysparm_reason=Installation_Firewall" target="_blank" rel="noopener noreferrer nofollow">1er rendez-vous : Installation FireWall</a></p>  

Please mark my answer correct if it helps you

 

Thanks Mohith, I've tested it and it's functional, GREAT !