Skip to main content

How to sync your Contacts to Business Central using Microsoft Flow

Introduction:

Contacts are important part of our network for our day to day communication.
Although even if we need it everyday, there is also a need for them to be integrated directly into Business Central.
Well, it started from a community question and seems like Microsoft Flow is the fastest and the easiest method to resolve this issue.

Pre-requisites:

Microsoft Dynamics Business Central
Microsoft Flow.

References:

Microsoft Flow's standard 'Daily copy all Outlook contacts to Google Contacts' Flow.

Solution:

1. Creation of Web Services for Contact:
Creating the Web Service
Goto Webservices > New > Fill the Type as Page and ID as 5050. > Give the Webservice Name > Publish.

2. Creation of Microsoft Flow to move you E-mail contacts to Business Central:
Using the 'Daily copy all Outlook contacts to Google Contacts' flow, you can modify the flow to integrate Contacts into Business Central.
Removing the add Contact to Google Contact Action
Adding the HTTP Action to Insert the Contact into Business Central using Web Services
Adding HTTP with POST method will allow you to Insert a Record into Business Central.You can set the body contents as per the fields that you want.

Adding an Email Notification
After your contacts are created in Business Central, in order to provide you with a notification you can send an Email.

3. After creation of Contact in Business Central:
Contact created after running the Flow

Conclusion:

Thus, although pretty straight forward, you can move your contact from your Office 365 Contact List to Business Central.

Comments

Alex N. said…
Unfortunately, the HTTP connector is always a premium connector. This flow used to work in the past with the NAV connector or BC on-premises connector too (as these both access the OData feed) but for some reason, this ins't working anymore with newer BC cloud instances...
Hi Alex,
I agree the HTTP is now a premium connector which wasn't the case before.
I have also made use of Webservices ODATAV4 in Business Central Online.
I had no issues connecting so far.
Let me know if you need any help.

Popular posts from this blog

How Business Central Modern Client Reverse Compatibility With NAV Can Help You Improve Your Work.

Introduction: Today, I was playing around with Business Central Modern Client (Windows App).
Out of curiosity I was trying to login to one of my NAV 2017 through SSO.
Pre-requisites: Microsoft Dynamics NAV with SSO configured
Microsoft Dynamics Business Central
Demonstration: 1. Business Central App - Main Page:

Clicking on locally hosted service and putting in the credentials configured for NAV 2017 SSO, we get.
Still skeptical when Business Central login into NAV.

2. Business Central App - Reverse compatible with NAV 2017:


Well well well...
Look whose here.
NAV disguised as  Dynamics 365 for Financials.

I think we all agree that Business Central Modern Client is a WebApp version of Busines Central Online. Basically just like browser in an App.
The difference is that it can connect to NAV as it is just like a browser.

3. Does Business Central Modern Client follow DynamicsNAV protocol?:
Well, it simply does not.
It would be amazing  if it did, as it would mean that we could deal with runni…

TIP: Working with changing Field DataTypes and Deleting fields in Business Central

Introduction:
Imagine a scenario where as per the requirements provided by your clients, you have set up the Database structure in NAV/Business Central.
Then comes a requirement in Phase 2 which completely redefines the database structure which was provided by you and you need to delete a few fields in a table and move it to another table.

Pre-requisites:
Microsoft Dynamics NAV
Microsoft Dynamics Business Central

Books & References:
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-obsoletestate-property

Solution:
1. In Microsoft Dynamics NAV, there was a flexibility to delete fields, tables, and keys and using  Force-Sync, you can directly delete the field, table, and keys from SQL Database.


2. Whereas in Microsoft Dynamics Business Central, you cannot delete the fields, keys, and tables.
In order to deploy this deleted change, you need to mention this field, table, and keys with Obsolete State Removed.


After you mention the field as…

How to actually use Profile Objects in Business Central

To 'Whomsoever This May Concern',
When I was working on a Production Deployment for one of my clients, I noticed that I could not create a Profile in Business Central Production Tenant. I was able to create new Profile in Sandbox.


Then I tried using configuration Package and modify the contents of 2000000178 Profile Table and as always configuration package blocked it.



There was no way of dealing with this other thancontacting Microsoft Support and this is the answer I get from a Support Engineer

I was on the verge to give my clients a link pointing to a specific page i.e https://businesscentral.dynamics.com/?page=50150

After being a little creative, I figured out that developing profile objects might help.

And this resolved this issue for me.