I'm connecting to an API and in the Body I need to specify the date range for the data. Is it possible to make this dynamic so it will show today's date instead of the static "2022-06-10T16:30:34.516Z", as shown below?
$body= @"
{"sort":[{"field":"createdOn","direction":"desc"}],"filter":{"operator":"gt","field":"createdOn","value":"2022-06-10T16:30:34.516Z"},"fields":[],"page":{"length":100,"offset":0}}
"@