Forum Discussion

PhilippM's avatar
PhilippM
Advocate I
2 years ago
Solved

Adding pipeline extraction date to appended data rows

Hey there,

 

I succesfully managed to connect a REST API and transfer the data to a Lakehouse table. I want to do monthly snapshots and append the data to the table. The REST API does not return an extraction data field, so I am wondering how I can add the extraction date in an extra column to the appended data rows.

 

Any ideas would be appreciated!

  • You can use Copy activity with REST as Source and add UTCNow() as the Additional Column

4 Replies

    • PhilippM's avatar
      PhilippM
      Advocate I

      Thank you! The issue with dataflow is, that I am unable to connect my REST API, because I have to do two queries. First authorize myself and receive a bearer token, 2nd one to use the bearer token as authorization to do the actual query. At least I did not figure out a way to do this with dataflow.

       

      With data pipeline I can chain the two queries properly. What I did now is saving the raw data I get through data pipelines in a Datalake and transforming it with dataflow as well as adding a additional column with the current date. So it is somewhat a workaround, but it is working.

      • NandanHegde's avatar
        NandanHegde
        Super User

        You can use Copy activity with REST as Source and add UTCNow() as the Additional Column