Catalog item name in subject line of email notification

Bargavi
Mega Expert

Can we display the "catalog item name" in the subject line of approval email notification.

Ex: The subject line sent to an approver should be " Requested Item RITMXXXXXXX Approval Request for Catalog_item_name". Can someone help me.

Thanks,

Bargavi

1 ACCEPTED SOLUTION

madanm7786
Mega Guru

Hi Bargavi,



Try ${document_id.cat_item}



Thanks,


Maddy


View solution in original post

9 REPLIES 9

Yes,


You have to change a log of things. This notification is getting triggered for both request and RITM approval. So in the very beginning you have to give a condition to check from which table it is coming from. If it is from Requested Item table, then write the above script and in the else if block, check if this is from Request table.


Then write the block of code you want to write for Request notification.


The code inside the block will depend on what you want to write in the email body.


Hope this helps.


Hi Prasun,



I am sorry if I explained you incorrectly. I want to modify the request.general template to have the catalog item name and fields in the catalog item. this template will trigger a notification to the requestor once he submits the request and once the request is completed.



Thanks,


Bargavi


madanm7786
Mega Guru

Hi Bargavi,



Try ${document_id.cat_item}



Thanks,


Maddy


Hi Maddy & Prasun,




Tried both the solutions both worked. Thanks a lot.



Thanks,


Bargavi


sudharsanv36
Kilo Guru

Hello Bargavi,



If you are using any events to trigger notifications, you can make use of the parameters and pass the catalog item name in it.