Business Rule and Triggered Actions
JPOHDC Oct 3, 2018 12:05 PMSo we have this Business Rule that runs to send an email to the Owner Team when a Service Request is opened, we wanted more information in this email to include the parameters of the Service Request. I found this expression $(ForEachChild("ServiceReq#", RecId, "ServiceReqParam#", "if Find('_hide_', ParameterName) != -1 then '' else ParameterName + ': ' + ParameterValue + '\r\n'", "CreatedDateTime ASC")) which works extremely well in gathering the parameters of the Requests. The issue is it work in all other Business Rules and Emails exceot this one. I narrowed it down to the ON Initialize check box. If I remove that check and only send the email on On Update it works. It also works on all other emails (Fulfillment, closed and cancelled).
Here is example of what is sent when the Owner Team changes
And this one is on Creation.
Anyone with any ideas