web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

The message can't be sent because at least one recipient isn't valid.

(0) ShareShare
ReportReport
Posted on by 1,562

Hi All,

I am trying to add recipient with email id,its adding but 
when try to send email its showing 
'The message can't be sent because at least one recipient isn't valid.'Below is my JavaScript code please make me correct if wrong in code.
function PrepareActivityPartyto(partyId, partyEntityName) {
var activityParty = new Sdk.Entity("activityparty");
activityParty.addAttribute(new Sdk.String("addressused", "test43@test.com"));
activityParty.addAttribute(new Sdk.Lookup("partyid", new Sdk.EntityReference(partyEntityName, partyId)));
var activityParties = new Sdk.EntityCollection();
activityParties.addEntity(activityParty);
return activityParties;
}

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Harish Das Profile Picture
    on at

    Hi

    1. can you disable your java script and check same scenario to confirm this issue is because of java script or not?

    2. second thing is that, this message will come if sender (From field) don't have valid Email or email ID is not approved for processing. Please check the sender email ID also.

    3. Make sure selected email ID in to field dint enable Do not send Email flag if it is customer or account.

    Please verify this Ans if it help to resolve your query.

    Regards

    Harish

  • Suggested answer
    PS Profile Picture
    23,577 on at

    Email address you are using must be on the email field of your entity on hich you are sending email.

    And from user must also have a primary email address

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans