How I can Push customer’s information from Nav to external website.
-
How I can Push customer’s information from Nav to external website.
Posted by DSC Communities on May 4, 2020 at 5:38 pm-
Aymane azizi
MemberMay 4, 2020 at 5:38 PM
Hi Experts,
Please I need your help.I want to send the customer’s information from Dynamics Nav 2016 to an external website. This should be happened in case of creation of a new customer in Nav or if any modification in customer’s information happend this should be operate in website too.
The website owner send to me this:
MethodeĀ (JSON):
setClient:request
{
“EntId”: 5,
“EntKey”: “TEST3D”,
“DMSId”: 3,
“CliDMSId”: “355177”,
“CliTitle”: “”,
“CliFamName”: ” BRITEL”,
“CliFirName”: “Marie”,
“CliAddr1”: “5, ALLEE DE L ABBE GREGOIRE”,
“CliAddr2”: “”,
“CliPC”: “75000”,
“CliCity”: “PARIS”,
“CliHomePhone”: “”,
“CliCellPhone”: “0606979706”,
“CliWorkPhone”: “”,
“CliFax”: “”,
“CliEmail”: “marie@xxx.fr”,
“CliAccountType”: “1”,
“CliState”: “”,
“CliCountry”: “”,
“CliTags”: “”,
“CliDoNotText”: “”,
“CliDoNotEmail”: “”,
“CliDoNotPhone”: “”,
“CliCashPaymen “: “”,
“CliLocked”: “”,
“CliLanguage”: “”,
“CliActive”: 1,
“ProviderName”: “3”,
“ProviderCliId”: “”,
“CliId”: -1}Response
{ “ErrorMessage”: “”,
“ResultCode”: 0,
“ResultID”: 158246
}Please, I need to know the big steps to respect in order to make this possible.
Thank you——————————
Aymane azizi
kmm
—————————— -
Have you considered web services?
——————————
Jon Long
Director of ArcherPoint-Upgrades
ArcherPoint Inc.
GA
——————————
——————————————- -
Aymane azizi
MemberMay 4, 2020 at 6:15 PM
Hi Jon,
Thank you for replay
I Know ho to create and to publish web services but I stuck in the next steps to follow.
what I need is just steps to follow because i have confusion between object that I should use and publish. I don’t know if it is good to use web services (page, query and codeunit) with WCF as middle part or there is another approach I should follow?
Again thank you——————————
Aymane azizi
KIA
——————————
——————————————- -
Mike Ashley
MemberMay 5, 2020 at 11:46 AM
Web services published from Nav are good when an external application canĀ pull information from Nav. This is the simplest from a Nav perspective. But, it also possible to have Nav “push” notificationsĀ to external applications using JSON via http requests. It is a bit more of a complex codingĀ effort although Nav 2018 and newer makes this a little easier with codeunit 5459 – JSON Management. Im not sure for Nav 2016, but guessing you could use newtonsoft.json dotnet object instead of the codeunit to accomplishy the same things.Without getting to far in the weeds, you would have a Nav codeunit method that creates a json object, adds all the properties and values to your json object (like “EntId”,”EntKey”,”DMSId”),converts that json to a string, then does a http POST or PUT to send the json to an external application.
We have done something similar with our integration to Avalara Avatax so that when an Item’s Tax Group Code field is validated (OnAfterValidateEvent), we send that information to Avalara’s integration API as JSON via http POST.
——————————
Mike Ashley
Arbor Day Foundation
Lincoln NE
——————————
——————————————- -
Aymane azizi
MemberMay 5, 2020 at 5:38 PM
HiĀ Mike,
I appreciate a lot your recommendations. Now, I can see a little of light.
I ll start to group pieces of puzzle.
Thank you again
——————————
Aymane azizi
KIA
barcelona
——————————
——————————————- -
We have an API library that we use in our Channel Sales Manager product that provides a framework for NAV/BC initiated API communication. Ā One of our use cases is to push customer information from NAV/BC to E-commerce systems such as Magento and Shopify.
——————————
Matt Street
ArcherPoint Inc.
south bend IN
mstreet@archerpoint.com
——————————
——————————————-
DSC Communities replied 5 years, 11 months ago 1 Member · 0 Replies -
-
0 Replies
Sorry, there were no replies found.
The discussion ‘How I can Push customer’s information from Nav to external website.’ is closed to new replies.