Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Dynamics creating email torecipients not getting set

(0) ShareShare
ReportReport
Posted on by 4

Hi,

I have created a powerflow to create email in timeline of an account. The email is getting created but recipients is not getting set. Here is the payload

 

 

 

{
 "organization": "https://xxx.crm6.dynamics.com",
 "entityName": "emails",
 "item/description": "Test body",
 "item/regardingobjectid_account_email@odata.bind": "accounts/981e8336-xxx-xxxx-a81c-6045bd3cf716",
 "item/subject": "Test",
 "item/torecipients": "mkxxx@yahoo.com"
}

 

 

 

  • Verified answer
    Re: Dynamics creating email torecipients not getting set

    Hi @mkokabi ,

     

    By default, the 'To' field is associated with 3 tables, 'user' table, 'account' table and the 'contact' table.

    vxiaochenmsft_0-1714358165343.png

    If you want to use account table as the related table, please try to get the set name of account table first.

    In your case, it should be 'accounts'.

    Then you need to get the guid of the record. 

    vxiaochenmsft_1-1714358267580.png

    If you want to associate the first record it should be- accounts(c645ef92-9a09-ee11-8f6e-002248ec6139)

     

    Best Regards,

    Wearsky

  • mkokabi Profile Picture
    mkokabi 4 on at
    Re: Dynamics creating email torecipients not getting set

    Hi Wearsky,

    Thanks foe your help.

    I don't understand the usage of systemusers(<Guid>). Basically, what I want is set the To field. The value is comming from another field which is related to account.

  • Re: Dynamics creating email torecipients not getting set

    Hi @mkokabi ,

     

    Is this what you want?

    {
     "entityName": "emails",
     "item/activitypointer_activity_parties": [
     {
     "participationtypemask": 2,
     "partyid@odata.bind": "systemusers(<guid>)"
     }
     ],
     "item/description": "Test",
     ...
     }

    vxiaochenmsft_0-1714355573219.png

    vxiaochenmsft_1-1714355616841.png

     

    Best Regards,

    Wearsky

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard

Featured topics