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 / Need Unique array from...
Power Automate
Answered

Need Unique array from List Records

(0) ShareShare
ReportReport
Posted on by 286

From the Invoice entity we need unique array of customers,

we tried using variables and union for the same.

However we are not able to get the array with only Guids.

 

We tried splits function as well

Requirements : get array of unique customers from List of invoices.

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi!

    Is 'List of invoices' a sharepoint list? An excel table?

    If SP, which column type do you want to consolidate their current values? Is it 'single line of text', choice, lookup...?

     

    In case of excel, here you are an example of how to implement it

    https://powerusers.microsoft.com/t5/Building-Flows/Consolidated-email-based-on-date-in-excel/m-p/471936/highlight/false#M57275

    Thanx

  • Achavan Profile Picture
    286 on at

    Hi, 

    we want unique array of Customers from list records (cds connector) 

     
     
  • Verified answer
    Naveen_772 Profile Picture
    208 on at

    Hey @Achavan

     

    I tried to solve your problem by implementing the same scenario using the Account and Contact entity.

     

    Account-->Invoice

    Contact-->Customer

     

    After you list all the invoice records using the List Record action, Use the "Apply to each" action to loop all the records. Try to get the guid of every customer and add it to the array variable.

     

    After the for-each loop usea compose action to get the unique value by below exp.

     

    Expression:-

    union(variables('Array'),variables('Array'))

     

     

    Screenshot of the flow:-

     

    acc.PNG

     For getting the Guid I used following Expression:

    item()?['_primarycontactid_value']

     

     

    I hope I am able to help you to solve the issue. Let me know if I can further help you out.

     

    Accept this as a solution if you think the above content fulfills your request.

     

    Thank You 

    Naveen Gupta

  • Achavan Profile Picture
    286 on at

    Thank you @Naveen_772 

     

    can you help me to create two dimentional array of Account and Contact from Opportunity

  • Naveen_772 Profile Picture
    208 on at

    Hey @Achavan 

     

    I am happy to help.

     

    Thank You

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