Notification Template With Link

DEEPAK KUMAR SI
Tera Contributor

Hi Creators,

I need expert assistance in solving one requirement.

Requirement Details. Send Notification Template To Manager of the "cmdb_ci " owner with link of all the CI's he was owner of , when CI owner is set to state false.

 

Solution I tried : I pushed all the Orphan CI's sys_ids via Browser link, it was working fine until user is owner of few CI's, but it created issues where user is owner of Hundreds of CI's as Browser has some limitations.

 

Hence here I am to take the experts opinion.

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@DEEPAK KUMAR SI Instead of passing bunch of CI sys_ids in the query parameter, you should. instead pass the encoded query in the URL.

 

Following is an example of one such URL https://<Your instance>/cmdb_ci_list.do?sysparm_query=nameSTARTSWITHANNIE-IBM%5Emanufacturer.nameSTARTSWITHLenovo&sysparm_first_row=1&sysparm_view=&sysparm_choice_query_raw=&sysparm_list_header_search=true

 

Here the query used is nameSTARTSWITHANNIE-IBM^manufacturer.nameSTARTSWITHLenovo

 

In your case you will pass the sys_id of the owner e.g. 

https://<your instance>/cmdb_ci_list.do?sysparm_query=owned_by%3D5b7c200d0a640069006b3845b5d0fa7c&sysparm_view=

 

Hope this helps.

Hi Sandeep,

 

Thanks for solution but my scenario here is  -

 

When a reportee leaves the organization , his CI's gets assigned to his manager. (Done via BR)

Notification to manager with the URL of CI's which are now assigned to him ( need inputs for this). I need help to construct the URL in the Notification email script with Exact filters .