Consuming a Dynamics NAV Web Service from Excel 2007

Today we was on Microsoft to see a little "pre-sales" preview of the upcoming Microsoft Dynamics NAV 2009.

The new release of the Microsoft's ERP is really exciting and one of the coolest feature of the new 3-tier platform is the native support for web services. One of the demo we saw today shows an interesting scenario that will be available with the new NAV release: you can import NAV data into Microsoft Excel, modify them directly on Excel (with all the validation and NAV logic available) and then return the data to NAV.

But how to do this with Excel? Microsoft doesn't show this during these partner's preview and I've observed that on forums there are questions regarding this topic.

With Excel 2007 this operation is simple and doesn't requires macros or similar:

Just open Excel 2007, select the Data tab, click on the Get External Data button, then select From Other Sources and then select From XML Data Import:

WS_Excel1

On the window that opens, enter the web service url (the method url, not only the .asmx) into the File Name box, then click on the Open button. Excel will open the XML schema (if the web service does not have an associated XML Schema, Excel will prompt you to create one for you) and then it will prompt to select the cell range where to import the data that comes from the service.

That's all!!

Technorati Tags: ,

Print | posted on Thursday, October 23, 2008 9:40 PM

Comments on this post

# re: Consuming a Dynamics NAV Web Service from Excel 2007

Requesting Gravatar...
What would the method URL be? I tried the following:
localhost:7047/.../Read
Can you please provide more detail.
Thanks.
Left by BINUM on Oct 26, 2008 1:37 PM

# re: Consuming a Dynamics NAV Web Service from Excel 2007

Requesting Gravatar...
You should see your newly created web service from this url:
http://[machinename]:[port]/InstanceName/ws/CompanyName/Services.
This will list available web services.
If you can't see your new web service here, then first check if the "Microsoft Dynamics NAV Business Web Services" service is running (the service name is "MicrosoftDynamicsNavWs" and by default this is set to start manually.
Left by Stefano Demiliani on Oct 29, 2008 9:23 PM

# re: Consuming a Dynamics NAV Web Service from Excel 2007

Requesting Gravatar...
I can successful see the webservice. I can use it in my VS project. I created a small app to read customers. But when I view the service in the browser - it is just the xml with the method names etc - just as expected. No data. The demo I saw from Microsoft (slide show - not a real demo). They were able to view the list of customers in excel and modify data directly from excel.
You said use the method URL. Can you explain that please.
Am I misunderstanding your blog?
Thanks - and you have some great posts
Left by BINUM on Oct 30, 2008 1:57 AM

# re: Consuming a Dynamics NAV Web Service from Excel 2007

Requesting Gravatar...
Can you please explain the syntax for the method url?

localhost:7047/DynamicsNAV/WS/Page/Customers ?

We can see the web service
Left by mark on Aug 05, 2009 9:06 AM

# re: Consuming a Dynamics NAV Web Service from Excel 2007

Requesting Gravatar...
osoft's ERP is really exciting and one of the coolest feature of the new 3-tier platform is the native support for web services. One of the demo we saw today shows an interesting scenario that will be available with the new NAV release: you can import NAV data into Microsoft Excel, modify tnotebook battery manufacturer and notebook adapter manufacturer.
Left by wholesale laptop adapter on May 23, 2010 2:28 PM

# wholesale bracelets

Requesting Gravatar...
make you shine!Expression of the two heart-shaped sweet love earrings,gifts for girls’ most like to receive,do you like it?Classic design of the earrings,pretty flying earrings,elegant earrings,elegant <h3>charms for bracelets cheap</h3> earrings,elegant and wild temperament,is a rare beautiful butterfly earrings.Leader of a heart-shaped sweet favorite silver earrings,elegant colors to create a charming aristocratic feel,beautiful shine for
Left by wholesale bracelets on Mar 18, 2011 3:30 AM

Your comment:

 (will show your gravatar)
 
Please add 6 and 1 and type the answer here: