-2
これは電子メールを送信するためのコードです。アカウントエンティティからの活動でCRMから電子メールを取得する
private void SendEmail(Guid accountToGuid)
{
string name = GetName(service, accountToGuid);
#region Email
Entity fromParty = new Entity("activityparty");
fromParty["partyid"] = new EntityReference("systemuser", ownerId);
Entity toParty = new Entity("activityparty");
toParty["partyid"] = new EntityReference("account", accountToGuid);
Entity Email = new Entity("email");
Email.Attributes["from"] = new Entity[] { fromParty };
Email.Attributes["to"] = new Entity[] { toParty };
Email.Attributes["subject"] = "Hello " + name;
Email.Attributes["description"] = "Your account has been confirmed by Admin";
Email.Attributes["ownerid"] = new EntityReference("systemuser", ownerId);
Guid EmailId = service.Create(Email);
SendEmailRequest req = new SendEmailRequest();
req.EmailId = EmailId;
req.IssueSend = true;
req.TrackingToken = "";
SendEmailResponse res = (SendEmailResponse)service.Execute(req);
#endregion
}
私は既にアカウントに電子メールを送っています。アクティビティセクションにメールが表示されます。 SDK
から検索するには?
どのSDKですか?何を試しましたか? –
crm sdk 2016 ..私はcrmに直接接続するウェブサイトを作成することを意味します。どのようにそれを行うにはどのようなアイデア?またはプラグイン? –