web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 4HHcrw8tiY/xZDtug4Zomy
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 1 Sep 2023 06:25:48 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.

I have the same question (0)
  • ParomitaDas2916 Profile Picture
    on 01 Sep 2023 at 07:30:18
    Re: Power Automate to get all the Distinct Department & Country from Office365 in a SharePoint list

    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.

  • ParomitaDas2916 Profile Picture
    on 01 Sep 2023 at 07:18:23
    Re: Power Automate to get all the Distinct Department & Country from Office365 in a SharePoint list

    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

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 01 Sep 2023 at 07:12:17
    Re: Power Automate to get all the Distinct Department & Country from Office365 in a SharePoint list

    Hi @ParomitaDas2916,

    vqiaqimsft_0-1693552311597.png

     

  • ParomitaDas2916 Profile Picture
    on 01 Sep 2023 at 07:03:04
    Re: Power Automate to get all the Distinct Department & Country from Office365 in a SharePoint list

    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
    on 01 Sep 2023 at 06:38:10
    Re: Power Automate to get all the Distinct Department & Country from Office365 in a SharePoint list

    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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 736 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 396 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard
Loading started