Hi @Manish Patel ,
Welcome to Microsoft Q&A Platform. Thanks for posting the query.
There are two possible approaches to implement the above. As per my understanding, in the above scenario, we would like to generate last hour datetime in UTC.
Approach 1:
To generate the datetime from ADF using variables as below
Expression in Variable :
@concat('SELECT * FROM c where c.date>"',subtractFromTime(utcnow(),1,'Hour'),'"')
Approach 2:
To create an UDF in Cosmos DB and to use the same from ADF in query.
Ref: Issue
Hope this helps! Please let us know if the requirement is not aligned to this solution and we will be glad to assist further.
-------------------------------------------
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.