Forum Discussion
JayJay11
2 years agoResolver II
Problem with variables and dynamic API query
Hello all, so I am trying to use OData with a specific URL to retrieve data from SAP HANA. The URL string that I want to send looks as the following: $select=CompanyCode,AccountingDocument,Le...
- 2 years ago
Again, this is not producing what I want, as it is adding things at the end of the string.
I solved it like that:
@concat('&$filter=PostingDate gt datetime''',substring(variables('vReferenceDateTime'), 0, 10), 'T00:00:00''')
JayJay11
2 years agoResolver II
Anonymous thank you - actually adding the "@" solved it. Great!
Now only the problem with the datetime. How can I get exactly the format "2024-02-21T00:00:00" as a string starting from the function utcnow()? The pipeline always adds this "Z" at the end, why?
Anonymous
2 years agoNot applicable
Hi JayJay11 ,
@formatDateTime(utcnow(),'yyyy-MM-ddTHH:mm:ss zzz')
Can you check this format and let me know if that works?
- JayJay112 years agoResolver II
Again, this is not producing what I want, as it is adding things at the end of the string.
I solved it like that:
@concat('&$filter=PostingDate gt datetime''',substring(variables('vReferenceDateTime'), 0, 10), 'T00:00:00''')- Anonymous2 years agoNot applicable
Hi JayJay11 ,
Glad to know that your query got resolved. Please continue using Fabric Community for your further queries.