Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Create Quote E-Mail Draft with Power Automate

Posted on by 162

Hi everyone, 

I am trying to create a flow that is manually triggered when clicking on "Create E-Mail" in the entity Quotes. 

I managed to create a random E-Mail with it, but I can't seem to get the TO = contact of the quote, the FROM = User that is starting the flow and REGARDING = the Quote. 

The final goal would be to automatically attach the file, that is stored in the document location of the quote... 

Can someone help me with this?? 

pastedimage1616140835840v1.png

Thank you so much in advance!! 

  • Suggested answer
    LuHao Profile Picture
    LuHao 40,872 on at
    RE: Create Quote E-Mail Draft with Power Automate

    Hi partner,

    1. Please refer to this blog to know how to attach a document of sharepoint to the email.

    https://www.itaintboring.com/dynamics-crm/power-automate-flow-creating-an-email-with-attachment-in-cds/

    2. For the template, you can fill in the ID for template used. (Email Templates) field with the Email template ID.

    pastedimage1617012532790v1.png

    You can open the email template and find its ID in the URL.

    pastedimage1617012740348v2.png

    Or you can add a step "List rows" of Email template to get its ID.

    pastedimage1617012810760v3.png

  • yvka123 Profile Picture
    yvka123 162 on at
    RE: Create Quote E-Mail Draft with Power Automate

    Thank you so much, this worked!! One step closer!

    Now there would be two questions still open:

    How can I attach a document that is stored in the document location?

    And how can I use a e-mail template on this specific e-mail?

    Thank you!

  • Suggested answer
    Wahaj Rashid Profile Picture
    Wahaj Rashid 11,319 on at
    RE: Create Quote E-Mail Draft with Power Automate

    Hi,

    First you need to get the User ID using List User action. You can use the 'User email' as filter:

    pastedimage1616575010551v1.png

    Next, you can use this in From attribute:

    pastedimage1616575081035v2.png

  • yvka123 Profile Picture
    yvka123 162 on at
    RE: Create Quote E-Mail Draft with Power Automate

    Thank you for the reply.

    Okay I managed to auto fill in the contact and the "Regarding" = Quote. But my field for "FROM" always stays blank. How can I insert the user who starts the flow? UserID doesn't seem to work.
    pastedimage1616510016246v1.png

    Also two more questions:

    How can I insert a E-Mail template to be used?

    And how can I add an attachment to this e-mail?

    Thank you for support!

  • Suggested answer
    LuHao Profile Picture
    LuHao 40,872 on at
    RE: Create Quote E-Mail Draft with Power Automate

    Hi partner,

    The ‘Potential Customer’ field of Quote can be either Account or Contact.

    So we need to create emails in two situations.

    1. If the ‘Potential Customer’ is a Contact, then the To field is the Email of Contact.
    2. If the ‘Potential Customer’ is an Account, then the To field is the Email of the Primary Contact of the Account.

    pastedimage1616490480358v1.png

    pastedimage1616490492638v2.png

  • yvka123 Profile Picture
    yvka123 162 on at
    RE: Create Quote E-Mail Draft with Power Automate

    No one here who can help me??

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans