Issue with email notification containing empty variable values from Request Item

Rhonda9
Tera Expert

I created a querie business rule to restrict request items that belong to a data group to only that group.  The querie is working as expected with the exception of when an email is triggered from creation of request item, the requested for and request item fields are blank when receive email notification.   This is only happening with the request item that I created a before business rule for.   When I make the br inactive, and create a request item the fields are populated on the notification email. 

Any guidance on this would be appreciated.... 

Requested Item and Requested for is blank 

Rhonda9_0-1713533300293.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Rhonda9 

please ensure you add this in your query BR condition along with your existing condition

gs.getSession().isInteractive()

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

AshishKM
Kilo Patron
Kilo Patron

Hi @Rhonda9 , 

 

Keep the BR inactive and utilize the ACLfor group specific access.

or allow the system user/role to query on the ritm table in BR script. 

 

-Thanks,
AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Mark Manders
Mega Patron

Is this an email send to a user with access to the data in the ticket, or not? 
And how are you triggering the email? Through flow designer or directly in the email notifications?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

It is an oob email notification using a script.  This works fine for the other Request Items but somehow the querie business rule I created is causing the issue with the Sensitive Data Request. 

Ankur Bawiskar
Tera Patron
Tera Patron

@Rhonda9 

please ensure you add this in your query BR condition along with your existing condition

gs.getSession().isInteractive()

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader