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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help with flow unique ...
Power Automate
Unanswered

Help with flow unique value and filter

(0) ShareShare
ReportReport
Posted on by 125


Hi, I need help with a flow. I have an entity called AUDICAT with a field called PLATE and another called FORMATION. The entity has more than 20,000 rows. The flow I need is to send an email with a csv file attached with the unique values ​​of the PLATE column and that in the FORMATION column it has an "YES". Thank you very much for the help

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @antonio_piernav 

     

    Please see the screenshot below: I1.PNG

     

    i2.PNG

    Here, i am using the CDS connector to get the records and using the filter query to filter the results accordingly. You need to get the logical name of the PLATE and the FORMATION fields and replace that up in the filter query. Note that if the FORMATION field is of type two options or option set, you need to find the value of the YES label (usually 0) and then update the expression as eq 0 instead of eq YES. 

     

    Next use the create a CSV action to create the CSV table and use the custom headers option to get only the values you need in the table and use that in the email attachment. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • antonio_piernav Profile Picture
    125 on at

    Thank you very much for your help, I created the flow and it works but I only receive the empty csv file, with the column headings but without any data. Do you know what I am doing wrong?

     

    Thanks and best regardsImagen sin título.png

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @antonio_piernav 

     

    Can you please post the expanded screenshot of the Create Table CSV action?

     

    From the run history, can you check if there are records being returned in the Dynamics get records action? 

  • antonio_piernav Profile Picture
    125 on at

    If there are records. If I change the expression "uniquevalue" to a plate if I obtain a csv file with the dataImagen sin título.png

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @antonio_piernav 

     

    The CSV action is fine. When you run the flow, please check the flow run outputs in the Dyanmics action. Can you see any records over there? You can also expand the CSV table action in the run outputs to check what data has been populalted in the table. That way, we can know if the ODATA filter query has worked fine. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • antonio_piernav Profile Picture
    125 on at

    There is no record. but 700 should appear, which are what I get if I open the entity in excel and the filterImagen sin título.png

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @antonio_piernav 

     

    the 'uniquevalue' in the ODATA flter is what i put just for a sample. Here you will have to put the actual unique value that you are looking for. Can you try updating that filter query? 

     

    Also, can you share what is the dataype of these fields that you want to apply the filters on?

  • antonio_piernav Profile Picture
    125 on at

    Now I understand. but what I want to obtain is a csv with the values ​​only once, although in the data source they are repeated many timesImagen sin título.png

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @antonio_piernav 

     

    Looks like you have duplicate records in the data source. In that case, you will have to first get rid of the duplicate records and then create the CSV table flow. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • antonio_piernav Profile Picture
    125 on at

    I cannot delete duplicate records from the data source since they contain other much information that I need. What I need is to extract the information without the duplicates but without deleting them.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard