Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Business rule to trigger an event and pass variable value

Wasd123
Tera Expert

I have a variable used only on a single catalog item. The field variable is called "person_to_be_copied". I want to trigegr an event from the business rule where the business rule would pass over the eventparm 1 for the recipients to the email. I was trying in several ways, but the result is either "undefined" or "[Glide Object]".

How can I approach that.

Here is with some variation I have tried, also write to the log to see if anyhow would work

1 ACCEPTED SOLUTION

What type of field is person_to_be_copied? Is it a reference field to the user table? Id yes then use script in attached.

 

Please mark answer correct/helpful based on Impact.

View solution in original post

8 REPLIES 8

palanikumar
Giga Sage
Giga Sage

Hi,

Share the code used to trigger the event. I can help you to fix.

Thank you,

Palani

Thank you,
Palani

do you know why am I getting an error when I try to copy to code? error says "Sorry, unable to complete the action you requested."

Community Alums
Not applicable

Hello @Wasd123 

 

Please copy the code in text file and attach it in the post.

Hi,

Hope you are passing the param as current.person_to_be_copied.

Try passing current.person_to_be_copied.email.toString() and see whether the issue is resolved

Thank you,
Palani