cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Using expression in reference to array or excel value data to populate lable/Colour fields in Planner 'Create a task' if match return 'True'

Hello,

 

Status:

- In Planner I have Labels setup as such:  Red = Toast , Green = Bread, Blue= Burnt  (examples)

- I have a flow functioning that uses 'List rows present in table' and using output value 'Create a task' and 'Update task details'

            It is working great and populates Planner tasks as desired in reference to an Excel table.

 

Issue:

I am seeking to use the dropdown 'Enter custom value' for each colours field in the 'Create a task'.  Using an array that took the cell data from excel, or in reference to the value data from my ingested Excel table, I would like the expression to match and return 'true' based on a manual entry in the expression and against the cell in the tables row.

 

As such:

Expression in Red field of 'Create a task' will look for 'Toast' in the corresponding row of the table, it may have Toast, Bread, no data, or Burnt.  Only Toast will return true.

Expression in Green field of 'Create a task' will look for ' Bread' in the corresponding row of the table, only 'Bread' will = true.

 

And so on.

 

If this expression, or expression along with creating an array ahead of it would provide some functionality to the labels / colours section I think it could help answer a few other posts I came across when looking for help.

 

I tip my hat to the programmers, two weeks into Power Automate and I have not yet got an array to work correctly, and my expression string skill is junk.

 

Any and all help welcome,  Thank you!

 

Cheers,

NK

1 REPLY 1
Anonymous
Not applicable

UPDATE:

 

So I have managed to put together the following expression, with no errors when I save and run the flow.

 

if(equals(outputs('List_rows_present_in_a_table')?['Name'], 'My Name'), True, False)

 

It returns False no matter what.

 

The drop down for the label section is - Yes, No, Enter custom value   ( and the default text says True if task has category)

 

Using in the label/colour area as such:

label expression.PNG

 

Each expression for yellow, green, blue, has a different entry in the expression for 'My Name' .

 

I require that when each label/colour matches its corresponding name from the tables Name column, it returns a True value to the field.

 

 

Any and all help with this concept is much appricated.

 

Thank you,

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (46,821)