web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adding a line in a tab...
Power Automate
Answered

Adding a line in a table(excel) for each category in a task(Planner) - it is possible?

(1) ShareShare
ReportReport
Posted on by 12

Hello all!

 

I am trying to register every label on my tasks in a excel table:

 

GustavoAlves_0-1656710779585.png

Sorry about the Portugueses i dont know how to change it..

 

This model is returning a error "ExpressionEvaluationFailed" Appliedcategories is a object, and it should be a valid matrix...

 

Can somebody help me?

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,692 Moderator on at

    Hi there, 

     

    Are you using the Get Task Details to get the AppliedCategories? And then you're trying to loop through each category it brings back, and create a new entry in your Excel sheet?

    Based on this, it looks like the categories will come back with a true / false next to them -- are you able to show us some example outputs with what you have so far?

     

    https://docs.microsoft.com/en-us/graph/api/resources/plannerappliedcategories?view=graph-rest-1.0

  • GustavoAlves Profile Picture
    12 on at

    Hi @Rhiassuring !

     

    Thanks for the response!

     

    Yes for the first question. I need to register a line in a excel table for each category that returns "true".

     

    Something like:

    Plan ID | Bucket ID | Task ID | "Category 3"

    Plan ID | Bucket ID | Task ID | "Category 9"

     

    Following the output:

    GustavoAlves_0-1656867538332.png

     

    Thanks again

     

  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    Gotcha. Okay, so, we know that the info comes back as an object with only the "true" categories in it. And we know there are 23 categories. (Unless they've changed that again .... I remember when there were only 6...)

    So you could do something like this as you loop through each of your items:

     

    Rhiassuring_0-1656917600305.png


    That means you'll get a hit if there's a matching category, and then you can also get the actual name from your own array.

    The condition is "appliedConditions" contains items('Apply_to_each')?['label']

     

  • GustavoAlves Profile Picture
    12 on at

    Thank you very much @Rhiassuring !!

     

    😃 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard