Skip to main content
Community site session details

Community site session details

Session Id : fvM6D3PSYOJwJWalpqpdwl
Power Automate - Using Flows
Answered

Update Manager for all Items in List

Like (0) ShareShare
ReportReport
Posted on 27 Apr 2020 07:56:16 by

Dear All, Created a recurring flow to update manager details. Apparently flow is updating all entries with one manager details.

When my flow is executed, it updates all entries with manager email from the latest execution. As per below data, all list items is with updated with manager as 'Manager-1"

 

Appreciate if you could advise where the problem is. Whether in the iteration or passing the manager value

 

Sample Data:

Employee NameEmployee Manager
Person-1Manager-1
Person-2Manager-2
Person-3Manager-1

 

 

 

 

 

 

 

 

 

 

My Flow Snapshot :

MS Flow.JPG

  • Community Power Platform Member Profile Picture
    on 28 Apr 2020 at 06:55:05
    Re: Update Manager for all Items in List

    @efialttes  Thanks. It's Resolved. Not sure if my observation was right. One instance was 'In Progress' at the same time I made amendments. Possibly hence it had not taken effect. After all the execution was completed, amended settings again by changing Top Count it got applied successfully.

  • Community Power Platform Member Profile Picture
    on 28 Apr 2020 at 06:46:04
    Re: Update Manager for all Items in List

    @efialttes  Enabled Pagination and set to 5000. Also tried updating Top count to 5000. Either ways it's going to default and settings are getting vanished

  • efialttes Profile Picture
    14,756 on 28 Apr 2020 at 06:20:45
    Re: Update Manager for all Items in List
    Hi!
    'Get items' by default returns 100 items max.
    You can increase the limits by adding a higher vaue in 'Top Count' or by activating pagination.
    More info in this excellent article
    https://alextofan.com/2019/08/22/how-to-get-more-than-5000-item-from-sharepoint-online-in-flow/
    Hope this helps
  • Community Power Platform Member Profile Picture
    on 28 Apr 2020 at 06:17:01
    Re: Update Manager for all Items in List

    @efialttes When I apply flow against real time SharePoint List, it's updating manager details until 100th row. Is there any restriction as to only No. of row flow can update ? Please advise.

  • efialttes Profile Picture
    14,756 on 27 Apr 2020 at 12:45:48
    Re: Update Manager for all Items in List

    Hi!

    I also struggled with such scenarios for a long time, unfortunatelly Flow editor and Filter array are not good friends.

    THen one day I realized if you first define your 'Apply to each' assigning 'Filter array' input (in your case 'Get items' output) as 'Apply to each' input, and once everything is configured, you replace it and assign 'Filter array' output instead, then the magic is done.

    Glad to help!

  • Community Power Platform Member Profile Picture
    on 27 Apr 2020 at 12:40:07
    Re: Update Manager for all Items in List

    @efialttes Unsure what type of magic is this as you mentioned. It worked like a charm. Thanks a lot

  • Community Power Platform Member Profile Picture
    on 27 Apr 2020 at 12:01:14
    Re: Update Manager for all Items in List

    Any suggestions please ?

  • Community Power Platform Member Profile Picture
    on 27 Apr 2020 at 10:08:46
    Re: Update Manager for all Items in List

    No luck. Here is the modified flow :

    MS Flow_2.JPG

  • Verified answer
    efialttes Profile Picture
    14,756 on 27 Apr 2020 at 09:48:09
    Re: Update Manager for all Items in List

    Hi!

    AS I suggested before:

    -Remove temporarily 'Filter array' output assigned to 'Apply to each' input, assign 'Get items' output instead

    -Now, configure 'Get manager' inputs by selecting dynamic contents from the dynamic content menu. THis way you do not need to add expressions, Flow editor will do the magic

    -Now, configure 'Update item' inputs by selecting dynamic contents from the dynamic content menu. THis way you do not need to add expressions, Flow editor will do the magic

    -Once 'Get manager' and 'Update item' inputs are configured, remove 'Get items' output assigned to 'Apply to each' input, assign 'Filter array' instead

     

    Please also note your Filter Array condition rule looks empty

    Hope this makes sense

  • Community Power Platform Member Profile Picture
    on 27 Apr 2020 at 09:43:41
    Re: Update Manager for all Items in List

    Encountered Error  at 'Get Manager'

        "code""ResourceNotFound",
        "message""User not found"
     
    Updated UPN expression to "items('Apply_to_each')?['EmployeeName']" and other expressions too highlighted by yourself 
     
     MS Flow_1.JPG

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete