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 / PowerAutomate to searc...
Power Automate
Unanswered

PowerAutomate to search for users v2 with filtering and update and create data in sharepoint list

(0) ShareShare
ReportReport
Posted on by 10

Hi,

I'm trying to create a flow which will search users office 365 and than apply a filter array to filter all those users which has a jobtitle and if there is no jobtitle with any user than ignore that record. (it is bringing system accounts also)

Than i want to add those users, name, email, accuntenabled?, jobtitle in  a sharepoint list. 

also it should update the information if a user already exists in sharepoint list and if not exists than add that user information in the list. 

can some one suggest the flow with screenshot would be really helpful.

Regards

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @syedtufailshah ,

     

    Please try this

    SudeepGhatakNZ_0-1703750832352.png

     

  • syedtufailshah Profile Picture
    10 on at

    @sud 

    many thanks Sudeep for creating the flow. 

    Can you please attach each control values what you have configured. eg "Job title is not null" what value to put for select an output from previous steps. etc 
    Would be really helpful to see all the controls.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    SudeepGhatakNZ_0-1703757916805.png

    SudeepGhatakNZ_1-1703757977484.png

     

    SudeepGhatakNZ_2-1703758044515.png

     

     

  • syedtufailshah Profile Picture
    10 on at

    @SudeepGhatakNZ 

    hi Sudeep i am getting below error while running the flow. i have also attached my all flow


    Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Apply_to_each' at line '1 and column '1006' cannot reference action 'Get_items'. Action 'Get_items' must either be in 'runAfter' path or within a scope action on the 'runAfter' path of action 'Apply_to_each', or be a Trigger.'.'.

    1-update item.png
    2-create item.png
    3-first apply to each.png
  • syedtufailshah Profile Picture
    10 on at

    @SudeepGhatakNZ 

    hi Sudeep, now that error is fixed and the flow is running since 30 minutes but data is not getting populated in sharepoint list.  attached screenshot.

    flowrunning.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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 604

#2
Valantis Profile Picture

Valantis 502

#3
Vish WR Profile Picture

Vish WR 417

Last 30 days Overall leaderboard