on 2023 Nov 22 3:56 PM
With my REST Adapter I need to poll every 24h from a Microsoft API. In the API URL I need the date form 2 days ago. For example if I poll my data on the 22.11.23, the timestamp in the URL needs to be the 20.11.23. The Incremental Token lets me use the Timestamp from the last poll, which would be the stamp from 24h ago (21.11.23).
What would be the best way to get the date from 48h ago?
Request clarification before answering.
Hi Aris,
You could use graphical mapping. If you have B2B addon then you can use getDateAfterDays from UDFDateTimePool. Current date you can get with standard date function currentDate. If you don't have B2B addon, then with some simple java you can create own UDF to do the task, there are multiple examples how to do it online (e.g. https://stackoverflow.com/questions/11882926/how-to-subtract-x-day-from-a-date-object-in-java).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
58 | |
8 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.