Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

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

$
0
0

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;
}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images