Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Import Data from CDS(Contact) entity to csv file using power automate flows

(0) ShareShare
ReportReport
Posted on by 96

Hello Everyone, 

 

I want to know the process on How to Import data from CDS(Contact) entity to csv file. 

  • Verified answer
    MJain Profile Picture
    2,450 on at
    Re: Import Data from CDS(Contact) entity to csv file using power automate flows

    In compose select value from the list that you see . Once you run this it will give you output in JSON format , which you can parse if you like to.

     

    Thanks

  • Rafia Mohammed Profile Picture
    96 on at
    Re: Import Data from CDS(Contact) entity to csv file using power automate flows

    Thanks for the reply. I just have changed the header part and modified value part as well. But in the compose(After list records), do we want to take compose as parse json or select or filter array. please apologize, Am new to PowerApps, so plz tell this point clear. 

  • MJain Profile Picture
    2,450 on at
    Re: Import Data from CDS(Contact) entity to csv file using power automate flows

    Hi @Dishen ,

     

    Thanks for updating . I see that while creating the CSV table you have to provide your header name instead of selecting LastName / Email  and in Value part use item()?['email'] . You can do compose first after list records to view the JSON schema of the output you are getting. This will help you putting the values in Value portion using item()?['json schema name'].

     

    Thanks

  • Rafia Mohammed Profile Picture
    96 on at
    Re: Import Data from CDS(Contact) entity to csv file using power automate flows

    Flow.png

    DifferentFormat.png

  • Rafia Mohammed Profile Picture
    96 on at
    Re: Import Data from CDS(Contact) entity to csv file using power automate flows

    Hi, After creating the CSV table, I just want to create file in the one drive for business. Am able to see the file but if i download it am not able to see the records. Instead am able to see in the different format. Am attaching the screenshots below. Very thanks in advance.

  • Rafia Mohammed Profile Picture
    96 on at
    Re: Import Data from CDS(Contact) entity to csv file using power automate flows

    Really thank you so much, I will try this and if i have any queries i will get back to you.

  • MJain Profile Picture
    2,450 on at
    Re: Import Data from CDS(Contact) entity to csv file using power automate flows

    Hi @Dishen ,

     

    Following are the steps I would follow: 

    1. Define the contacts criteria which needs to be exported and use advanced find to get the data.

    2. Once this is done and you are getting fetch xml correctly download it (Or if you have xrmtoolbox and your filter conditions are simple then use this tool to get OData Web api query )

    3. Create a flow and use List Records action in CDS(Current environment) 

    4. In the Fetch XML query parameter put the fetch xml you downloaded in step 2.

    5. Since the records you might be pulling is more than 5000 , click on the ellipsis button the right and it will open pop up window . in this window select pagination to true and set your threshold value.

    6. Use Create CSV table action after this , use output of List Records (Value) as input. Select Custom mapping from show advanced options and set your header and in column value grab the columns you want in CSV one at a time.

     

     

    Thanks

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow