Using conditions as a Flow Action input - date format issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 11:39 PM
I tried using the Conditions type as an input into a Flow Action. The Conditions type builds an encoded query, but the problem is that the date formats are wrong. The format is MM/DD/YYYY instead of YYYY-MM-DD.
Has anyone experienced this issue? I tried attaching a screenshot but I'm getting an error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 03:31 AM
Hello @erik_gunther ,
Can you try using the below script :
var dt = fd_data._1__get_catalog_variables.variable_name;
var gd = new GlideDate();
gd.setValue(dt);
return gd.getByFormat('YYYY-MM-DD');
If my response finds helpful, please indicate its helpfulness by selecting Accept as Solution and Helpful.
Thanks,
Vaibhav Nikam