Pulling Catalog Task values from Request Items in Notifications

RYang
Kilo Contributor

Hi Everyone,

I am trying to create a workflow notification for a Service Request. In the workflow for the Request Items table I create a Catalog Task. The Catalog Task is has an assignee and assignment group field that is different from the Request Item.

How would I script the notification so that:
1. It sends the notification to the assignee and assignment group of the task, not the request item


2. It includes the values of the assignee and assignment group of the task within the request item body?

I have tried a couple of things to add them to the body.

8. Assignment Group: ${sc_task.assignment_group}
8. Assignment Group: ${task.assignment_group}

I tried in a mailscript

template.print("8. Assignment Group: " + sc_task.assignment_group.getDisplayValue() + '\n');


And a couple of different variations there of. Am I on the right track or am I way off base?

Thanks

5 REPLIES 5

RYang
Kilo Contributor

Thanks, I used Brad's suggestion and it worked

The original reason why the sc_task notifications were not going out is because I had a condition in the business rule that was preventing the events from being captured.