Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to export CRM data in an entity to MySQL

(0) ShareShare
ReportReport
Posted on by

Hello guys,

I have a problem, How to export CRM data in an entity to MySQL (through API) ? The example is if i want to export data at Case/Incident Entity to MySql database. What should i do?

Thank you.

*This post is locked for comments

  • Suggested answer
    Mike Larson Profile Picture
    Mike Larson on at
    RE: How to export CRM data in an entity to MySQL

    Summarizing all that have been said, 2 options seem to be the most evident:

    1. You can either use SSIS connectors. There are plenty of providers like Kingswaysoft or Devart, for example.

    2. For simplicity you can try 3rd party ETL tools, like Skyvia or Scribe.

  • Suggested answer
    Luke Sartain Profile Picture
    Luke Sartain 1,266 on at
    RE: How to export CRM data in an entity to MySQL

    How about using Microsoft Flow?  Use the button to set a flag on the Case (new_exporttosql = true) and then have the flow run on Update of record.  Once you're on V9 you should be able to do away with the flag and instead run the flow directly from the Flow ribbon button.

  • RE: How to export CRM data in an entity to MySQL

    Agree with Aric, why do not you use some 3rd-party tools?They can make your entire data life much easier.

    If you don`t like Kingswaysoft (I agree, it can be difficult for some users), there are dozens of alternatives, for example, Skyvia.

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 Moderator on at
    RE: How to export CRM data in an entity to MySQL

    Why not use SSIS with Kingswaysoft Dynamics CRM Connector.

    You can have CRM as your source data and MySQL can be your target. For MySQL, you can probably use ODBC or one of the available connections.

    Here are the links to both product options:

    www.kingswaysoft.com/.../download

    blogs.msdn.microsoft.com/.../connecting-to-mysql-from-ssis

    This will probably be much easier than any custom development solution.

    Hope this helps.

  • EmployeeOcta Profile Picture
    EmployeeOcta 2 on at
    RE: How to export CRM data in an entity to MySQL

    You Need to create Asp.net web api and call it from the CRM.

  • Khanza Profile Picture
    Khanza on at
    RE: How to export CRM data in an entity to MySQL

    if i want make it with Web API, what should i do?

  • EmployeeOcta Profile Picture
    EmployeeOcta 2 on at
    RE: How to export CRM data in an entity to MySQL

    Take the help from the SDK examples , which contains all c# codes .

    adjust that as per your requirement.

    for any operation we need , credentials , connectivity to the environment.

    code will do it's work.

  • Khanza Profile Picture
    Khanza on at
    RE: How to export CRM data in an entity to MySQL

    Thankyou before, Octa. can you make example for the c# code and i can send to mysql?

  • EmployeeOcta Profile Picture
    EmployeeOcta 2 on at
    RE: How to export CRM data in an entity to MySQL

    Create the Connectivity to the custom c# code through your button

    fetch data of case/incident and send to mysql.

    or create the web api and connect via delegate user to crm and on button click on crm do your operation.

  • Khanza Profile Picture
    Khanza on at
    RE: How to export CRM data in an entity to MySQL

    Oh, and  i want if i click a button at ribbon at the "case" menu, the data will exported to MySQL, thankyou.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans