cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chellemcg
New Member

How to email a script block from a SharePoint Online list field

I have a flow which sends an email using values from a SharePoint Online list. One multiple line of text field contains a script block with the code needed to embed a form on a web page, e.g. 

<script src="https://domain/embed/form.js?uuid=000000000000" id="form-embed-script"></script>

This has to be passed to the form requestor so they can add it to the content management system and publish their form. In the email, this field is always empty, I assume because the script is being blocked. Is there any way around this?

1 ACCEPTED SOLUTION

Accepted Solutions
v-JessicaG-msft
Community Support
Community Support

Hi @chellemcg ,

 

I did a test, and although the script block does not appear in the received email, it exists in the "view source" of the email. There may not be a better way in flow to recognize script blocks as string content for sending emails.

vJessicaGmsft_0-1643281778496.png

 

vJessicaGmsft_1-1643281783715.png

 

 

 

Best Regards,

Jessica Gu

View solution in original post

1 REPLY 1
v-JessicaG-msft
Community Support
Community Support

Hi @chellemcg ,

 

I did a test, and although the script block does not appear in the received email, it exists in the "view source" of the email. There may not be a better way in flow to recognize script blocks as string content for sending emails.

vJessicaGmsft_0-1643281778496.png

 

vJessicaGmsft_1-1643281783715.png

 

 

 

Best Regards,

Jessica Gu

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,158)