0

I'm sending a mail using automation studio. In the mail content I included this line of AMPscript:

UpdateDE('Orders',1,'FactSalesHeaderSurrkey',FactSalesHeaderSurrkey,'InvoiceSentDate',NOW())

After sending, nothing has changed inside the data extension. I didn't find any errors in preview and the mail is sent succesfully.

I have no clue why the AMPscript is not working.

  • Based on FactSalesHeaderSurrkey you need update InvoiceSentDate ? – pkharries Jun 13 '18 at 9:36
  • 1
    Based on the code, I am assuming you want the InvoiceSentDate to be updated. Is this showing as blank in the DE, even after preview/send or is there already an existing default value that is not changing? – Gortonington Jun 13 '18 at 13:06
  • That's correct. It is showing as blank in the DE. Before and after send. – Edwin van der Palen Jun 14 '18 at 10:37
0

use like this

set @FactSalesHeaderSurrkey='somevalue'
  %%=UpdateDE('Orders',1,'FactSalesHeaderSurrkey',@FactSalesHeaderSurrkey,'InvoiceSentDate',NOW())=%%

based on this one @FactSalesHeaderSurrkey it will update

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.