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

Saurav11
Kilo Patron

Can you share the script you have written it would be easier to assist you. Also hope you are trying the below to trigger the event:-


gs.eventQueue('eventname',current,current.person_to_be_copied);

 

Please mark answer correct/helpful based on Impact

You can copy the script in a notepad and attach the notepad over here

Mate Kocsis1
Tera Contributor

Here are variants I have tried, also to write it to the logs, but no luck at all.

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.