Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Create Email where to field is not related to any record in Dynamics CRM using web api

Posted on by Microsoft Employee

Hi All,

I Created Email using below query and it gets created successfully. 

{
"description" : "Test Email Created",
"regardingobjectid_account@odata.bind" : "/accounts(69C38067-EDB7-E811-A961-000D3A363C81)",
"subject" : "Test Email Creation",
"email_activity_parties" : [
{
"partyid_systemuser@odata.bind" : "/systemusers(CED2E02D-188E-4AA8-B6E2-D746E9B370C1)",
"participationtypemask" : 1
},
{
"partyid_account@odata.bind" : "/accounts(69C38067-EDB7-E811-A961-000D3A363C81)",
"participationtypemask" : 2
}]
}

But in CRM we can also send emails to those who are not related to any record. 

How can we create emails using web api where "to" field is not related to any record in Dynamics 365. 

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Create Email where to field is not related to any record in Dynamics CRM using web api

    Hi,

    I haven't tried this but looks like you need to first change the system setting to "Allow messages with unresolved email recipients to be sent". Refer below blog on this-

    community.dynamics.com/.../send-an-email-to-the-user-who-is-not-associated-with-any-record-in-dynamics-crm

    In the web api request, you instead of party id you need to set the address used field. Refer the below sample on C# (you need to convert this into web api)-

    paul-way.com/sending-unresolved-emails

    if you still face issues, please share you complete code with the changes so that we can suggest further.

    Hope this helps.

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Create Email where to field is not related to any record in Dynamics CRM using web api

    Hi Vaishali,

    I dont think we can do that because, if we think logically, To field is a party list of type "lookup" and you know that lookup field has to be an entity reference/record.

  • AllanDeCastro Profile Picture
    AllanDeCastro 156 on at
    RE: Create Email where to field is not related to any record in Dynamics CRM using web api

    You need to only set an external email ?

    Pease, give an example of the value you want in this field

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create Email where to field is not related to any record in Dynamics CRM using web api

    I want to create Email  record where "To" field is not necessarily any type of record in CRM. 

  • AllanDeCastro Profile Picture
    AllanDeCastro 156 on at
    RE: Create Email where to field is not related to any record in Dynamics CRM using web api

    Hello vaishali vyas ,
    I'm sorry but i'm not sure to understand your needs.
    You just want to create an email without fill in the "To" field ?

    How are you executing this query ?

    Regards,

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