How to access catalog item variables on notification email script

Karishma Dubey
Tera Expert

Hello,

I have two fields on the form 1.Requestor and 2.on behalf of. I want to send notification to requestor and on behalf of when request is created. I have added who will receive as requestor. Wanted to check how to add on behalf of user in to list? also want to redirect RITM request on portal from the email as URI_REF will redirect to native. Please suggest.

KarishmaDubey_0-1686830324398.png

 

1 ACCEPTED SOLUTION

Manmohan K
Tera Sage

Hi @Karishma Dubey 

 

Its not possible to add variables in the notification.

You can trigger notification by firing event when request item is created using a Business rule or from workflow

// Store users in a comma separated list 

var users=current.requested_for +',' + current.variables.on_behalf_of_variable_name

gs.eventQueue("event.name",current,users)

 

View solution in original post

1 REPLY 1

Manmohan K
Tera Sage

Hi @Karishma Dubey 

 

Its not possible to add variables in the notification.

You can trigger notification by firing event when request item is created using a Business rule or from workflow

// Store users in a comma separated list 

var users=current.requested_for +',' + current.variables.on_behalf_of_variable_name

gs.eventQueue("event.name",current,users)