cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Supersan123
Helper II
Helper II

Default switch case

Hello everyone, I have a question and I'm sure that here I will learn and understand what happened, in my flow I put a switch evaluating the channel (sportv, canal1) that is filled in a form and inside it another switch that for a expression would take the date (if day 01, if day 16) that is working but I would like to catch exceptions, that is, days 02 ... 15 and 17 ... 31 so I used the default of the switch but in the default my expression that read the date and get the day (dd) does not work, it has the error of being string and not int but in my expression to work in case 01 and 16 I convert to int. follows my expression:
int (formatDateTime (outputs ('Get_response_details')? ['body / reb5a6ea683a04966ac76ef5e66f94be2'], 'dd')). why doesn't the default use the expression equal to case 1 and case 2?

forum.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @Supersan123 ,

 

Could you please share the screenshot of the Create a task 4 action in your flow?

Please make sure the value in the Start Date time and the Due Date time column should be with type below:

yyyy-MM-ddTHH:mm:ssZ

1.png

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Mira_Ghaly
Dual Super User II
Dual Super User II

@Supersan123 

The error on the Create Task 4 step , as the error suggests you are passing the date in an incorrect format.

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
v-alzhan-msft
Community Support
Community Support

Hi @Supersan123 ,

 

Could you please share the screenshot of the Create a task 4 action in your flow?

Please make sure the value in the Start Date time and the Due Date time column should be with type below:

yyyy-MM-ddTHH:mm:ssZ

1.png

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,989)