Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Setting unresolved email as recipient via JavaScript

Posted on by Microsoft Employee

Hi,

I would like to populate the "To" field of an email entity via JavaScript. In detail I want to populate the field with a simple email-address as string (e.g. "somebody@provider.com") an not with an activity party (lookup). As far as I know there's only one workaround to do this: http://mscrmbi.blogspot.com/2014/03/set-unresolved-email-ids-in-party-list.html

I tried it, but it does not really work - it leads to some ugly side effects. For example an error message will be thrown if try to send the email afterwards ("Cannot update parties unless email is in draft status").

I would like to know, is there another way to populate the "To" field with an email-address via JavaScript?

With best regards,

Michael

*This post is locked for comments

  • Rashi Saxena Profile Picture
    Rashi Saxena 95 on at
    RE: Setting unresolved email as recipient via JavaScript

    Hi,

    I need to implement the same. Have you got any workaround? Please share.

    Thanks,

    Rashi

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Setting unresolved email as recipient via JavaScript

    I already tried it. Unfortunately it does not work since basically it is the same approach as the URL I provided in my first post.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Setting unresolved email as recipient via JavaScript

    Hello Michael,

    Check this - crmtipoftheday.com/.../add-email-address-to-recipients-in-javascript

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