Which connector is the appropriate to use for Micr...
# replication-troubleshooting
c
Which connector is the appropriate to use for Microsoft Dynamics 365? It isn't backed by an MSSQL database that is accessible.
w
Good news and bad news, MS Dynamics is certainly backed by an MSSQL database. There is a way to enable the TCP point to access MS Dynamics via MSSQL Server with your Dynamic login credentials. https://dynamics-chronicles.com/article/how-access-dynamics-365-online-sql-server-database#:~:text=Open%20your%20Microsoft%20Sql%20Server%20Management%20studio%20and%20connect%20to%20your%20environment.&text=Click%20on%20Connect.,right%20set%20in%20the%20CRM. The bad news is, in my attempts, the SQL Server Airbyte Connector cant access it because you need the ActiveDirectory clause and the java libraries are missing.
c
Thanks for the reply @Walker Philips, really didn't expect to be able to connect to a 365 mssql database. I'll give it a try. I think a connector specifically for 365 using the api might be the answer.
w
I've built my own one and it works fine, but utilizing a Sqlalchemy and pandas to get any table out of dynamics. I do believe there would be an API approach as well, I was more comfortable being able to hit the data using SQL and then could run monitoring pipelines that can connect between Dynamics Database and the Destination database to ensure the data made it across as anticipated
I will say this, if you have not yet looked under the hood of your dynamics instance, you may (or may not) want to. Some of the tables can turn into sprawling nightmares. Some of our tables were well over 600 columns from various customizations over the years. Maybe the API makes things nice and only pulls relevant data, but I am not sure how the API accomodates any customized implementations
c
Interesting approach.
I'll bare that in mind! This is for a client, and the dynamics instance is new, so hopefully not too bad on the custom fields front. I'm assuming the API would allow for custom fields like the other CRMs out there.
w
It probably could, however, either way you'll have to build a custom connector and any future customizations to Dynamics would potentially need modifications to the Connector to handle the API/data schema changes. I made it so my data schemas are generated dynamically from MSSQL information_schema so it can automatically handle any table definition changes or easily onboard new tables to the ingestion process
j
@Callum McCaffery, @Walker Philips Do you perhaps know if connecting with airbyte to MSSQL with Active Directory is possible?