Record Producer and UI Macro

Aman3
Tera Contributor

Hi Team

We have one record producer which is being called from 2 different modules in the application navigator like.

com.glideapp..../sysparm_val=module1

com.glideapp..../sysparm_val=module2

 

We have one UI macro : Download attachment on the record producer,which helps to download the templates. Our requirement is to download the specific template like template 1 when record producer was called from module 1 and template 2 when it was called from module 2.

 

One way is to create 2 variables and call different UI macros but i was looking for a cool solution where i could just pass some sort of identifier that i could use in ui macro so that specific template could be downloaded.

 

 

1 REPLY 1

Deepak Ingale1
Mega Sage

Hi Aman,

 

You can append the custom URL parameter, lets say sysparm_module=moduleX and then read that parameter in your UI macro code in script tag

https://community.servicenow.com/community?id=community_blog&sys_id=596dea29dbd0dbc01dcaf3231f96190b

 

Note: Please mark reply as correct / helpful if it has answered your question