Returning object from script include

k_jayanth
Tera Contributor

I just have a small problem in retrieving the returned value, i'm calling a business rule on change request form to retrieve the 'assigned_to' of the two change tasks. I'm able to fetch the value of the assigned_to but unable to return it. i have a screenshot of the code below.

Business Rule:

find_real_file.png

I'm getting undefined when i display the answer.

Script Include:

find_real_file.png

When i use logs it displays the obj values as required, so there is some problem in encoding or decoding the values.

And i need one more help, when the values are sent back it should be added to the eventQueue as parameters as you can see in the business rule.

So when the event is fired a notification will run.

When to send:

find_real_file.png

Who will receive:

find_real_file.png

i have to send it to three users, opened by and the two assigned_to of the tasks, so I have checked the two parameters as receivers, so is this enough to send notification email to all three or is there anything else i need to do.

This is my first time working on notifications so i don't have much idea how this works, please point out if i need to make any changes.

Many Thanks!!

- Jayanth