Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Flow to create csv file and save in sharepoint

Posted on by 220
guys,
 
I am trying to create a flow so that it runs everyday and creates a file in sharepoint with data that meets the criteria. Scenario: I want csv file to be created on daily basis which contains contacts whose birthday is in 1 day. File needs to contain name and address.
 
Hope it makes sense.
 
Many thanks in advance 
  • Ralf Pi Profile Picture
    Ralf Pi 29 on at
    Flow to create csv file and save in sharepoint

    Here's a simplified example of how your flow might look in Power Automate:

    1. Trigger:

      • Recurrence: Daily at a specific time (e.g., 8:00 AM).
    2. Get Contacts:

      • Connect to your data source (e.g., CRM system or database).
      • Use the appropriate action to retrieve contacts whose birthday is in 1 day.
    3. Prepare CSV Data:

      • Use the "Create CSV table" action.
      • Map the contact attributes (name and address) to the appropriate columns in the CSV table.
    4. Create SharePoint File:

      • Connect to your SharePoint site and document library.
      • Use the "Create file" action.
      • Set the file name and specify the file content using the CSV data from the previous step.
    5. End Flow:

      • Your flow can now end, and you can set up notifications or additional steps as needed.
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Flow to create csv file and save in sharepoint
    Hi Partner,
    Please refer to the following steps:
    1.Create one scheduled flow:
    2.Retrieve all contacts to get someone whose birthday is in 1 day.
    3.Select action:
    4.Create CSV table action:
    5.Create file in sharepoint:
    Test:

    I hope you can verify my answer if it helps you! If you have any questions, please feel free to contact me.
    Regards,
    Leah
  • Martin Dráb Profile Picture
    Martin Dráb 230,149 Most Valuable Professional on at
    Flow to create csv file and save in sharepoint
    Are you talking about Power Automate? If so, please ask in Power Automate Community.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans