Hi, iām new to flows so aplogies if this is simple but i couldnāt see an answer anywhere.
As part of my flow, i need to use todayās date, as a string in format YYYY-MM-DD, as a variable in an If block. In the screenshot i need to replace ā2024-02-26ā with a varibale for current date
I was able to set a global variable in a pre-request script for a GET API call using:
const moment = require(āmomentā);
pm.globals.set(ācurrentDateā, moment().format(āYYYY-MM-DDā));
However, it doesnāt appear that i can reference the global variable in the IF block and i canāt see how to set a local variable from the global.
Any help would be much appreciated
Thanks
Andrew