Reputation: 1
my query is realted to HTTP linked service (LS) in Azure Data Factory. I have created a HTTP LS and have defined three int type parameters; date, month, and day.
I have using 'add dynamic content' to fetch current day -1 day,month, date and trying to pass these to the HTTP link.
Dynamic content formula for year: @int(substring(getPastTime(1,'Day'),0,4))
Dynamic content formula for month: @int(substring(getPastTime(1,'Day'),5,2))
Dynamic content formula for day: @int(substring(getPastTime(1,'Day'),8,2))
However, this is dynamic content is not working but if I manually pass on year, month and day, it seems to be working fine.
Please can someone idenity the problem with my dynamic content formula.
Upvotes: 0
Views: 1364
Reputation: 6114
https://jsonplaceholder.typicode.com/posts/@{linkedService().year}/@{linkedService().month}/@{linkedService().day}
year : @substring(getPastTime(1,'Day'),0,4)
month : @substring(getPastTime(1,'Day'),5,2)
day : @substring(getPastTime(1,'Day'),8,2)
Upvotes: 0