We are planning to store email templates for SP 2010 Designer Workflows in a SharePoint list. The emails which the workflow will send out will contain dynamic content, for e.g. Current user's name, data from some list column in the current list item, etc.
Whenever an email is to be sent from the workflow, the email template will be read from the list and the required template will be fetched. Each template will be stored in a Multiple Lines of Text
field.
The challenge that we are facing is when we try to replace the dynamic tokens since we do not have an action for replacing strings (Custom workflow activitiy needs to be avoided).
We tried storing the template containing tokens like [%Workflow Context:Current User%]
, etc. in the SharePoint list field. But, when the email gets sent, we see blank values.
For e.g. this
Hello [%Workflow Context:Current User%],
Some email body.
Email Footer
gets converted to this
Hello ,
Some email body.
Email Footer
I have done something similar in SharePoint 2007, but, not sure why this is not working in SharePoint 2010.
Any pointers will be helpful.
Thanks in advance.