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 Apps / Automatic Flow Updates...
Power Apps
Unanswered

Automatic Flow Updates List

(0) ShareShare
ReportReport
Posted on by 5,345 Moderator

I have a 'ParkComplianceList' - which tracks location compliance based on the 'ComplianceList'.

 

I have a 'ComplianceList' - which tracks the compliance of one or more systems at each location in the 'ParkComplianceList'.

 

I have written an automatic flow that kicks off when an item is created or edited in the 'ComplianceList'.

 

The 'ComplianceList' has hundreds of items at dozens of locations. I am using the location alpha code as the unique ID for query purposes between the two lists (and as varParkName in the flow).

 

Each alpha code may appear once or many times in the 'ComplianceList'.

 

Each alpha code ONLY appears once in the 'ParkComplianceList'.

 

The 'ComplianceList' has a 'ComplianceStatus' column, the contents of which is either 'Compliant' or 'Noncompliant'.

 

The 'ComplianceList' has "EngineCompanyPark" and "ActiveEngineCompany" columns, the contents of which are "Yes" or "No".

 

The 'ParkCompliaceList' has a 'ComplianceStatus' column.

 

Flow Action Desired - whenever there is action in the 'ComplianceList' query the list and...
   If EngineCompanyPark = "Yes"
&
If ActiveCompany = "Yes"
&
If ComplianceStatus DOES NOT = "Noncompliant" Then 'ComplianceList' - ComplianceStatus = "Compliant" else "Noncompliant"

 

Flow4.jpg

 

 

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Phineas 

     

    In the flow compare using Equals like

     

    equals(items('apply_to_each')?['booleancolumnname'],true)

     

    Example

    StalinPonnusamy_0-1630783310557.png

     

    Compare string "ComplainceStatuscolumn" and "Complaint"

    equals(toLower(items('apply_to_each')?['compliancestatus']),'complaint')

     

    StalinPonnusamy_1-1630783826575.png

     

  • Phineas Profile Picture
    5,345 Moderator on at

    That didnt work.

     

    Its going through the entire list. One item at a time, with flow after flow.

     

    That takes way too long and waste resources.

     

    Phineas_0-1630788371276.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Phineas 

     

    Need to filter the SP list

    AlphaCode eq 'AlphacodeColumn'

    StalinPonnusamy_0-1630795471940.png

     

  • Phineas Profile Picture
    5,345 Moderator on at

    I did what you suggested. 

     

    The expression "Title = 'GLBA'" is not valid. Creating query failed.
    clientRequestId: ...

     

    Here is the 'ComplianceList' with the location shown. The column is called 'Title'.

     

    Phineas_0-1630810211809.png

     

    Here is the 'ParkComplianceList', also with the location showing. Not sure why I'm getting this error.

    Phineas_1-1630810782526.png

     

    The way the flow should work:

       Query 'ComplainceList' -

         Query for all members that show 'EC Member' = "Yes"

         Query for all members that show 'EC Member Active' - "Yes"

         Query for all that meet one and two for 'ComplianceStatus'; if any member shows "Noncompliant" for any

         items on the 'ComplianceList' the flow shall set the 'ComplianceStatus' of the 'ParkComplianceList' for that

         specific location(s) to "Noncompliant" on the 'ComplianceList' else set to 'Compliant'.

     

    It's a one to many relationship: one location (on the 'ParkComplianceList', many assets associated with the location on the 'ComplianceList'.

     

    If any one asset associated with the location on the 'ComplianceList' is shown as "Noncompliant" the location as a who on the 'ParkComplianceList' shall show 'Noncompliant'. 

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Phineas

     

    Flow full view

    StalinPonnusamy_2-1630895836838.png

     

    1. Set Trigger conditions

     

    @or(equals(triggerBody()?['ECMember'],true),equals(triggerBody()?['ECMemberActive '],true))

     

     

    2. Get the Park Compliance List

    StalinPonnusamy_0-1630895721757.png

     

    3. Formula to check Compliance status on the Park list (Check Non Complaint)

     

    equals(toLower(items('apply_to_each_parkcompliancelist')?['compliancestatus']),'noncomplaint')

     

     

    4. Update Park List status

     

    StalinPonnusamy_1-1630895795524.png

     

     

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Phineas 

     

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    "Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful. "

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard