This was a great episode. How would you add a rich text field to the body using this approach? I have a SharePoint multi-line rich text field that I want to populate the body of the email, and I've had no luck adding it in the body.
@OptimalTrainingGroup
Жыл бұрын
I haven't tried this before but you need to properly format the HTML content in the email body. SharePoint's multi-line rich text fields may include HTML tags to preserve formatting, so you'll need to handle this appropriately when populating the email body. Start by creating a new step in your Power Automate flow after retrieving the SharePoint list item containing the multi-line rich text field. Add the "Send an email" action to send an email. In the "Body" field of the "Send an email" action, you'll need to use an expression to extract the HTML content from the SharePoint multi-line rich text field and set it as the email body. To do this, use the htmlToText function to convert the HTML content to plain text. Here's how you can do it: htmlToText(triggerBody()?['YourRichTextField']) Replace 'YourRichTextField' with the name of your SharePoint multi-line rich text field. Additionally, in the "Body" field of the "Send an email" action, set the "Is HTML" option to "Yes." This informs Power Automate that the content of the email body contains HTML. Configure the other required properties of the "Send an email" action, such as recipients, subject, etc., according to your requirements. Save and test your Power Automate flow. See if this works. I may have to create a video on this. Good idea. Thanks!
@asitdas4545
Күн бұрын
Thank you. I have one question: if I want to add an attachment, what should I do?
@dankirchner4460
10 ай бұрын
Great breakdown of how to do this! Do you know if you can add attachments too?
@OptimalTrainingGroup
10 ай бұрын
Thanks! I don't know but let me find out and get back to you. Good question.
@dankirchner4460
10 ай бұрын
My use case I am using the PDF function that was released as experimental last year. I set it as a variable and then pass that variable to flow to use in the SharePoint API call you demo in the video.
@OptimalTrainingGroup
10 ай бұрын
@@dankirchner4460 Thanks for the use case. I'll see what I can find
@dankirchner4460
10 ай бұрын
I'll give it a shot on my end as well and see what I get
@dankirchner4460
10 ай бұрын
Update: I tried to send an email with an attachment and it didn't work sadly 😕. Maybe I did something wrong in the body, but I couldn't get it to work.
@olatemide
2 жыл бұрын
Hi, thanks for this Video. It was highly helpful. How do I get to attach a file from sharepoint to an email. Appreciate.
@OptimalTrainingGroup
2 жыл бұрын
Try this vblogs.in/send-email-with-attachments-in-power-automatems-flow/
@olatemide
2 жыл бұрын
@@OptimalTrainingGroup thank you.
@phuongchau6800
10 ай бұрын
Hi guy, where is the Uri "_api/..." code? Hope u reply. Thank you
@OptimalTrainingGroup
10 ай бұрын
I'll get it to you shortly
@OptimalTrainingGroup
10 ай бұрын
Apologies this took so long. _api/web/sitegroups(21)/users The 21 is the SharePoint group ID. Just make sure you replace it with yours. Hope that helps.
@sri2900
3 ай бұрын
I want the FROM email id from the different action where it takes email id based the response received.can you pls suggest?
@buddhidayawansa6304
Жыл бұрын
Hello, how to send e mail with attachment Send Email with HTTP-Request so from is 'no-reply
@mariankallo3668
2 жыл бұрын
Hi, I wander how do I send to more recipients.
@OptimalTrainingGroup
2 жыл бұрын
I don't have a video showing how to do that yet but this might help. kzitem.info/news/bejne/lm1quGWMq3dmano
@OptimalTrainingGroup
Жыл бұрын
Here's my video of how to send to a SP group, if you haven't figured it out yet. kzitem.info/news/bejne/2G1vu6JmqKBng20
Пікірлер: 23