On my workflow, I'm setting a variable containing HTML tags (This is what it looks like sort of: <table><tbody><tr><td>Product</td></tr><tr><td>000-4551</td> .....)
When I go use this variable in my Flexi task's task description field and run the workflow, The HTML is stripped out and everything is just in one line.
Is there a way to preserve the HTML?
Solved! Go to Solution.
Hello -
I have been unsuccessful in adding HTML to actions other than to a notification. Even in the notification it does not come out that great. I recently have been working with more XML and XSLT and then dumping that into a notification and seems to be much better experience.
Something like this:
We took the XML from the item and then processed it using XSLT in the Quesry XML action.
Oh okay. I'm guessing I can't preserve and use the HTML in a variable then for what I want.
Hello Kei,
I'm able to get HTML Tables in my Flexi Task but I do it outside of the Task.
I have a Build String Action with my HTML that is in a Variable (Multiple Lines of Text) lets name it m_txt (Variable)
I use that variable in the Flexi Task email.
Can you explain what is in the HTML table? For instance in my I have items that need to be reviewed. I add those items in the variable and that variable in the Flexi task. So my users opens up the email and sees that needs to be reviewed.
Yes, I require something similar. The variable is actually coming from a loop that goes through a repeating section of a form.
The Flexi task description will then need to display this information for the approver to approve/reject.
I was just testing this and it seems to be working. I have not tried any styling, but if it is all in-line should work in the Build String Action and then you can use it in your other actions.
Okay here's what I have right now, let me know what I need to change:
- Multiline text variable containing said HTML.
- This variable is inserted as a reference to the 'Task description' field of a Flexi task under the 'Action' tab.
- On the "Task Notification' tab, it is a Rich Text and 'Task Description (HTML)' is inserted as a reference.
That's exactly what I do!!! You maybe need to do it in a few steps
1. Top of Table (Build String) - Store it in m_txt
<table><tbody><tr><td>Product</td><td>Feild 2</td>
2. Run your loop - assume you are holding the values in variables
3. Body of Table (Build String) - Store it in m_txt
{Vaiarble:m_Txt} <td>ProductField</td><td>FeildField</td>
4. End of Table (Build String) - Store it in m_Txt
{Vaiarble:m_Txt} </table></tbody>
then the Flexi Task in the email add the {Vaiarble:m_Txt}
Makes Sense?
It looks like we posted at the same time! take a look
Haha, yes this is how the variable came to be on my end as well.
But I guess I'm placing my variable inside the Task description field instead of the Task Notification email body directly which is why the HTML is getting stripped out(??)