Friday, April 6, 2018

SharePoint Designer Workflow: Passing HTML in url parameters

If trying to pass some html as a url parameter in a link in a SharePoint Designer workflow like below,



if you just add it to a link parameter like so:

&msg=<h2>Thank you [% Current Item:Assigned To %] for approving<br/><br/>You may now close this tab.</h2>


it gets encoded so your < will become %3C, etc.  To get around this, if you create a variable and encode it:


like so:

%3Ch2%3EThank%20you%20[% Current Item:Assigned To %]%20for%20approving%20your%20direct%20reports%20for%20this%20fiscal%20quarter.%3Cbr%2F%3E%3Cbr%2F%3EYou%20may%20now%20close%20this%20tab.%3C%2Fh2%3E


then you can just use the variable in the link and it will display as you'd like it:


&msg=<h2>Thank%20you%20Sean%20Regan%20for%20approving.<br%2F><br%2F>You%20may%20now%20close%20this%20tab.<%2Fh2>


3 comments:

Maneesha said...

Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here.
data scientist training in hyderabad

360DigiTMG said...

This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses.
data analytics courses in hyderabad with placements

Ramesh Sampangi said...

Nice blog and informative content. Keep sharing more stuff like this. Thank you. If you want data science course training, check out the below link.
Online Data Science Course in Hyderabad