Forum Discussion
Logic app search replace function usage example?
- Dec 15, 2021
hi SocInABox
Not sure if it's the same, but, I've feced something similar with an HTML table where I wanted to include a hyper link using <a href> and Logic App replaced those chars.
What I did was process the HTML content before using it (Send Email) as an expression
replace(replace(variables('email_html'), '<', '<'), '>', '>')Maybe my scenario is simplier than the one you have but hope it helps
By the way, for those who doesn't know, you can add html markup to variable operators, but you can't add them to operators which have embedded text editors.
So this is valid because set variable operators don't contain embedded text editors:
( a problem I was having is that all of the variables above automatically include a \n at the end of the variable, so you may have to use the 'replace' function to strip those out)
But you can't add html in here, unless it's contained in the variables.
HTML in the body of the editor will just be printed as text.
The 'IncidentComments' variable can contain html and it will be formatted correctly.
cmaneiro I don't suppose you've ever tried to embed the 'playbook RUN' button into html?
I'd like to know the structure of the url, or if it's possible to use it.
I expect it's a POST call, so maybe not..
eg. I know the basic playbook url structure is this:
/subscriptions/<tenant>/resourceGroups/<workspace>/providers/Microsoft.Logic/workflows/<playbook name>
But can you add to this url to have it run the playbook for a given Incident or alert?