This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Method call from query string of notifications

AmitS - Wednesday, May 7, 2014 5:28 AM:

Hi,

I'm sending mails using inbuilt notifications on workflow activities.

I need to include the workflow history report in the mail content.

I could fetch the history report by giving an explicit call to the method - workflow history report (or a similar custom method which will return the HTML report content in a string format), but not getting how I can give a method call from within the query string of notification.

Is it really possible to do it this way?

Thanks in advance.



Brian - Sunday, May 11, 2014 8:21 PM:

Hi Amit,

Two ways you could do this.

First you can use a Federated property in the item. Populate it from the workflow history report and then have it available as text in the standard notification. There is a community project that talks about using federated properties to pass additional information to email notifications.

Second approach you will need to use a Server Method on the workflow activity and create an email that has attachments or otherwise builds up the email to look exactly like you want. This is probably the more flexible method.

Hope this helps,

Brian.