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?
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).