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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,737)