cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Yoshimitsu411
Helper I
Helper I

Two Compose Actions - First one succeeds but the second fails

Hi All

 

I have two compose actions in my flow, one for Scheduled Date and one for Actual Release Date with the following code:

 

if(empty(items('Apply_to_each')?['Scheduled Date']),'',addDays('1899-12-30',int(items('Apply_to_each')?['Scheduled Date']),'MM/dd/yyyy'))

 

if(empty(items('Apply_to_each')?['Actual Release Date']),'',addDays('1899-12-30',int(items('Apply_to_each')?['Actual Release Date']),'MM/dd/yyyy'))

 

The first one for Scheduled date works perfectly but the secone one for Actual Release Date fails.

 

PowerAutomateComposeIssue2.PNG

 

 

 

PowerAutomateComposeIssue3.PNG

 

Output

 

PowerAutomateComposeIssue1.PNG

 

 I have come across a similar issue here, but it hasn't helped me solve my problem

 

Any suggesions?

 

Thank you.

2 ACCEPTED SOLUTIONS

Accepted Solutions
DamoBird365
Super User
Super User

@Yoshimitsu411 

 

Why are you not using the variables that you have set?  VarActualReleasedDate in your Compose?  You've highlighted them as output but then don't call them in the compose? 

 

Damien

View solution in original post

gabibalaban
Super User
Super User

Hi @Yoshimitsu411 ,

May be this aproach will work ...

if(empty(variables('varScheduledDate')),'',addDays('1899-12-30',int(variables('varScheduledDate')),'MM/dd/yyyy'))

 

if(empty(variables('varActualReleaseDate')),'',addDays('1899-12-30',int(variables('varActualReleaseDate')),'MM/dd/yyyy'))

 

On the other hand, please check if ['Actual Release Date'] column name isn't somehow misspelled.

 

Hope it helps !

View solution in original post

3 REPLIES 3
DamoBird365
Super User
Super User

@Yoshimitsu411 

 

Why are you not using the variables that you have set?  VarActualReleasedDate in your Compose?  You've highlighted them as output but then don't call them in the compose? 

 

Damien

View solution in original post

gabibalaban
Super User
Super User

Hi @Yoshimitsu411 ,

May be this aproach will work ...

if(empty(variables('varScheduledDate')),'',addDays('1899-12-30',int(variables('varScheduledDate')),'MM/dd/yyyy'))

 

if(empty(variables('varActualReleaseDate')),'',addDays('1899-12-30',int(variables('varActualReleaseDate')),'MM/dd/yyyy'))

 

On the other hand, please check if ['Actual Release Date'] column name isn't somehow misspelled.

 

Hope it helps !

View solution in original post

Yoshimitsu411
Helper I
Helper I

Thanks @gabibalaban , but it turns out I misspelled the name of the Actual Release Date column.

 

I could have also used the variable solution pointed out by @DamoBird365 

 

Thanks again.

 

Yoshi

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,372)