0
を.NETSalesforceはリードに活動履歴要素(API)が私の目標は、idでリードを見つけると、このリードの活動履歴(SendedEmailタイプ)に追加することです
を追加し、私は(のidのリードとHTMLボディ電子メールのリストを持っています)私はsalesforceから送られたので、この電子メールを鉛の活動履歴に追加する必要があります。
どのように私は活動履歴(SendedEmailタイプ)要素を構築し、私がここで行方不明です何私のリード
//This what i am tried
SF.QueryResult _ExistingLead = m_SalesForceReference.query("Select Lead_ID__c FROM Lead where Email='[email protected]'");
if (_ExistingLead.records.Count() != 0)
{
//going throw all my leads
foreach (SF.Lead item in _ExistingLead.records)
{
SF.ActivityHistory Activitymail = new SF.ActivityHistory();
Activitymail.Id = item.Lead_ID__c;//here i added lead id to my ActivityHistory
Activitymail.Mobile__c = "123456";
SF.SaveResult[] _SaveResults = m_SalesForceReference.create(new SF.sObject[] { Activitymail });
//not working
//No errors but i cant see it in the lead
}
}
に追加することができますか?
アクティビティ履歴(SendedEmailタイプ)要素を作成してそれを私のリードに追加するにはどうすればよいですか?