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 / Power Automate to get ...
Power Automate
Answered

Power Automate to get all the Distinct Department & Country from Office365 in a SharePoint list

(0) ShareShare
ReportReport
Posted on by

Hi folks,

Need help to create a Power Automate flow to get all & only the Distinct Country & Department names from Office365 in two different SharePoint list .one name as "Department_list" & another "Country_list"

Note : Office 365 has 30k+ users record, also Department & County field must have distinct values with no blank values in SharePoint.

 

It would be grateful if someone share a solution.

Thanks in Advance.

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @ParomitaDas2916,

    Here is a detailed flow:

    vqiaqimsft_0-1693551480968.png

     

     

    vqiaqimsft_1-1693551480818.png

     

     

    Update here:

    Sorry for the previous mistake.

    So you already have two listes including duplicated departments and countries?

     

    You need to list the distinct departments and countries?

  • ParomitaDas2916 Profile Picture
    on at

    Thanks ,Qi for the solution it is working .

     

     

    But I need another help .it also showing a "null" in compose .I wants to remove null value & create item in a SharePoint list in a department column.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @ParomitaDas2916,

    vqiaqimsft_0-1693552311597.png

     

  • ParomitaDas2916 Profile Picture
    on at

    Ok & please correct me the next step will be "apply to each action"  output will be [body] of filter array then "Create item" action for SharePoint list department value will also be filter array value.

     

    Please correct me ,if I am wrong

  • ParomitaDas2916 Profile Picture
    on at

    tmp_728dd2df-6f46-48ae-9351-2cc0fc8afd8a.png

     

    Please correct me ,what wrong I have done in the flow step as I am getting "HR",in a SharePoint column with special characters not only the name HR

     

    Please help me to resolve this issue.

     

    Thanks in advance.

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 569

#2
Valantis Profile Picture

Valantis 484

#3
Vish WR Profile Picture

Vish WR 460

Last 30 days Overall leaderboard