Working with Exclusive Split

1
There is a scenario in my app where I want to parse a date and evaluate which month it belongs to (Jan to Dec). I have used exclusive split for that. Expression that I have used  is something like this: parseInteger((formatDateTime($Record/CreationDate,'MM')))=01 Above expression returns boolean so I have to add 12 exclusive splits for checking date and deciding if it belongs to January or belongs to Feb or March and so on… Is there any way by which I can evaluate: parseInteger((formatDateTime($Record/CreationDate,'MM'))) And apply switch case ?  Due to the lac of knowledge of using exclusive split, my microflow has became complex.    Thanks, Rushikesh.
asked
1 answers
0

At first;

I would parse the month into a single integer variable

Create integer variable; default value

parseInteger((formatDateTime($Record/CreationDate,'MM')))

Then a create string variable where I would determine the string for ‘Cost’

if

$MonthInteger = 1

then

'Jan’

else

if

…..

And use this variable to set the value in the change object

→ Anyone with better solution regarding the integer to string conversion??

answered