I am trying to create an AMPScript that creates EmailSend Record in Salesforce that is associated to a Contact (the way they are connected by CustomerID and the ExternalID on the Person Account; ideally, we would like all emails to be launched through Salesforce but they are currently triggered from Exact Target, we are on a tight timeline and looking for some assistance. I have gotten pretty far with the following. The record creates but it doesn't relate exactly to the jobid in ET, is there any way to do this?
Below is how far I could get:-
set @SFid = RetrieveSalesforceObjects("Account", "PersonContactId", "SampleExternal_Id__c", "=", @CustomerId) set @SFidRow = Row(@SFid,1) set @Contact_Id = Field(@SFidRow,"PersonContactId") set @updateresult = CreateSalesforceObject("et4ae5__SendDefinition__c",3,"et4ae5__SendStatus__c","Sent","et4ae5__Contact__c", @Contact_Id,"et4ae5__EmailName__c", "Sample Subject")