cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CLetona
Level: Powered On

Flow Condition Error Invalid Template

I am getting an error on a condition, and I dont understand it.

Please help me. First image the error and second image how I have it in the flow.

 

Flow Compose.PNGFlow Condition.PNG

3 REPLIES 3
Community Support Team
Community Support Team

Re: Flow Condition Error Invalid Template

Hi CLetona,

 

I have seen your similar issue on another thread.

 

The thread link is:
https://powerusers.microsoft.com/t5/Using-Flows/Flow-condition/m-p/37277/highlight/false#M1137

 

In the similar thread, I suggested you submit an idea about using function to count how many items have got from the “get items” action.

 

I assume that you want to check if a column is empty or not, if yes, you could consider to use empty function. About empty function, please check it at here.
3.PNG

 

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
CLetona
Level: Powered On

Re: Flow Condition Error Invalid Template

No, I am not checking if the column is empty, I am trying to get a count some how.

I guess I am mixing the Power Apps functions and MS Flow functions. If MS Flow only uses  what it is in https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language then we are in trouble. Very limited..

 

 

Super User
Super User

Re: Flow Condition Error Invalid Template

In "Compose" action for functions you need to start and finish with "

Copy this and put in your compose: "@Value(CountIf(body('Get items'),['DiscountIssued'] <1))"

 

 

Reggards,

 

Gustavo Moraes

 


Did I answer your question? Mark my post as a solution!

Gustavo Moraes, o astronauta brasileiro do Flow!


Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Kudoed Authors
Users online (8,825)