0

When I create a new task using ampscript, a Task is created but 2 tasks are creating at a time. here is the code

SET @id=CreateSalesforceObject('task',7,'WhatId',@opportunityid, 'OwnerId',@ID,'CompletedDate__c',@Currentdatereformatted,
'ActivityDate',@Currentdatereformatted, 'Subject',emailname_, 'Status', 'Completed','Priority','Medium')
5
  • 2
    Are you doing this from an email or a CloudPage?
    – zuzannamj
    Commented Nov 7, 2022 at 9:22
  • 3
    Please do check this... Rachid has already answered the reason salesforce.stackexchange.com/questions/389093/… ...... try removing the AMPscript from the Text-version of your email. Commented Nov 7, 2022 at 9:59
  • From an Email @zuzannamj
    – SMS
    Commented Nov 7, 2022 at 15:47
  • In that case check @VishalKumarCV’s comment above
    – zuzannamj
    Commented Nov 7, 2022 at 16:03
  • Worked Thank You
    – SMS
    Commented Nov 10, 2022 at 13:11

0

You must log in to answer this question.