Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Power automate create email, add attachment from notes and send (Dynamics 365)

Posted on by

Hi

I have an attachment in Notes on my timeline - a word document.

I need to create an email, add the attachment and then send the email in Power Automate to a team from a user (owner).

The 'To' field is from a team, The 'From' field is a User, both records are already added to the form on the entity record when created. 

It errors saying 'Relationship between activityparty and team doesn't exist'.

I have tried

teams(triggerOutputs()?['body/_ehl_ehlteam_value'])

and

systemusers(triggerOutputs()?['body/_ownerid_value'])

I dont have access to any other tools in Power Automate other than the Dataverse.

Is there an easy way to do this. 

Many thanks,

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Power automate create email, add attachment from notes and send (Dynamics 365)

    Hi,

    Glad that it worked.

    Please mark my answer verified by clicking 'Yes' under 'Did this answer your question?'

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • dsammied Profile Picture
    dsammied on at
    RE: Power automate create email, add attachment from notes and send (Dynamics 365)

    I solved it, eventually, you have to add 'es' to make it plural when it ends in 's'

  • dsammied Profile Picture
    dsammied on at
    RE: Power automate create email, add attachment from notes and send (Dynamics 365)

    Hi, 

    I have updated the email to using the Queues

    Now my problem is the regarding entity, this is a custom entity and have notes and activity enabled.

    My error is 'Resource not found for the segment 'ehl_ehllicenceapplications' . '

    Any ideas?

    pastedimage1643020205090v1.png

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Power automate create email, add attachment from notes and send (Dynamics 365)

    Hi,

    You can not actually send email to Team because team does not have any Email Address field.

    Please see below post for more information -

    community.dynamics.com/.../how-to-send-email-to-team

    Suggestion is to use Queue instead of Team.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans