Is it possible to have multiple custom email templates that would send the correct one in the user’s language if it exists. Just like it works for the out of the box templates.
Hi @ParadimeWeb .
Here is how you can set a template dynamically:
Issue
How can I dynamically set an email template for a WorkflowGen notification?
Background
In a WorkflowGen action notification tab, you can select an email template for each additional notification. You can create as many notifications as required with combination of different templates and conditions. However, you may not want to create the same set of notifications for multiple actions because it will be time consuming.
Solution
You can predefine the final email template by manipulatin…
To know the language of the current user, you can use this code in the .NET code behind:
Request.Form["WFGEN_LANG"].
Hope this helps,
Eddy.
Is there a way to do this without code behind? What if the user’s language changes between the time the code is executed and the time the notification is sent out?
Hi @ParadimeWeb ,
You can retrieve the language of the user after the Submit button has been clicked.
Here is how you can implement this:
// PageLoad
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
submitButton.Click += new EventHandler(MySubmitButton_Click);
}
protected void MySubmitButton_Click(object sender, EventArgs e)
{
// Your code...
// If you modify the form field's value then you have to call the 2 instructions below at the end.
// this.SaveFormData(this.FormData, true);
// SubmitToWorkflow();
}
Note: This custom event will happen after the normal Wor…
Regards,
Eddy.
In my case, there is no submit, the notification is sent on a Sync Bar after a pause.
I opened a ticket for this. I was not able to make this work. Please advice if it is possible.