Hello I have a problem with an ampscript code I can not get the online version and send it in salesforce cf the following code:
%%[var @contactId, @campaignId, @id, @contactRows, @limitRow, @nom, @HTMLset @id = id_etudiantset @nom = 'Alerte'set @campaignId = '7011t000000Hl6AAAS'set @contactRows = RetrieveSalesforceObjects('Account', 'PersonContactId','Id', '=', @id)set @limitRow = Row(@contactRows, 1)set @contactId= Field(@limitRow, 'PersonContactId')IF _messagecontext == "SEND" Thenset @HTML = HTTPGet(view_email_url) CreateSalesforceObject('CampaignMember', 3,'CampaignId',@campaignId,'ContactId',@contactId,'Status','Sent') CreateSalesforceObject('Tracking_automation__c',3 ,'MessageName__c ',@nom,'Contact__c',@contactId,'Version_en_ligne__c',@HTML)EndIF ]%%
The version without the online url works :
%%[var @contactId, @campaignId, @id, @contactRows, @limitRow, @nomset @id = id_etudiantset @nom = 'Alerte'set @campaignId = '7011t000000Hl6AAAS'set @contactRows = RetrieveSalesforceObjects('Account', 'PersonContactId','Id', '=', @id)set @limitRow = Row(@contactRows, 1)set @contactId= Field(@limitRow, 'PersonContactId')IF _messagecontext == "SEND" Then CreateSalesforceObject('CampaignMember', 3,'CampaignId',@campaignId,'ContactId',@contactId,'Status','Sent') CreateSalesforceObject('Tracking_automation__c',2 ,'MessageName__c ',@nom,'Contact__c',@contactId)EndIF ]%%
Thanks in advance.