How to use today's date in the Body of a Web Activity Patch REST Call

Mike Kiser 1,536 Reputation points
2021-03-16T00:41:55.433+00:00

HI!! @Nasreen Akter @MartinJaffer-MSFT @HimanshuSinha-msft

I have the following excerpt from a Body in a Web Activity in my ADF Pipeline. The Requirements call for the following:
"LastModifiedTimestamp": "2021-02-09T16:52:21.284Z" to be todays date. How can I express that in the Body of my Web Activity PATCH call so that "LastModifiedTimestamp": today's datetime whenever the pipeline runs.

    "ElectronicAddress": "",  
    "Extension": "string",  
    "EffectiveStart": "2021-02-09T16:52:21.284Z",  
    "EffectiveEnd": "2022-02-09T16:52:21.284Z",  
    "ContactInformationType": {  
      "ContactInformationTypeGroup": {  
        "XRefCode": "PHONE",  
        "ShortName": "string",  
        "LongName": "string",  
        "LastModifiedTimestamp": "2021-02-09T16:52:21.284Z"  
      },  
      "XRefCode": "@{variables('IfHomePhone')}",  
      "ShortName": "string",  
      "LongName": "string",  
      "LastModifiedTimestamp": "2021-02-09T16:52:21.284Z"  
    },   

Thanks!!
Mike Kiser

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,158 questions
{count} votes

0 additional answers

Sort by: Most helpful