A web service question...

Franklin
Member Posts: 253
Good morning,
I wonder if, using the NAV web services, you can call a function (codeunit) and it can return a value.
The example is as follows:
In an external database (web store) it creates a client, if there is not exist in NAV is also created but it must return the NAV client code to update the web store.
Is this possible? I have never used an external web service and i would like to know if you can return values and read them without having to make the call to another function.
Thx a lot...
I wonder if, using the NAV web services, you can call a function (codeunit) and it can return a value.
The example is as follows:
In an external database (web store) it creates a client, if there is not exist in NAV is also created but it must return the NAV client code to update the web store.
Is this possible? I have never used an external web service and i would like to know if you can return values and read them without having to make the call to another function.
Thx a lot...
0
Comments
-
Franklin wrote:Good morning,
I wonder if, using the NAV web services, you can call a function (codeunit) and it can return a value.
The example is as follows:
In an external database (web store) it creates a client, if there is not exist in NAV is also created but it must return the NAV client code to update the web store.
Is this possible? I have never used an external web service and i would like to know if you can return values and read them without having to make the call to another function.
Thx a lot...
Hi Franklin,
Yes you can. You can publish a NAV web service Codeunit and return a code with "Customer No.".
This is a great example by Freddy :
http://blogs.msdn.com/b/freddyk/archive ... 9-sp1.aspx
Greetings.0 -
Thxs a lot JAJ... a new spanish friend :P0
-
Hi again,
Finally i´ll trying to use the example of Freddy but i´m in troubles with DISPLAY function. NAV don´t detect this function.
Why my code is wrong?
TReparation.RESET;
TReparation.SETRANGE("Numero de orden",vCodReparation);
IF TReparation.FINDFIRST THEN
BEGIN
vEstado := FORMAT(TReparation.Situacion);
DISPLAY(vEstado);
END;
NAV says me that is an invalid variable...0 -
Read Freddy's post to the end. It is a pseudocode function and Freddy explains it.(Co-)author of "Implementing Microsoft Dynamics NAV 2009"
http://vjeko.com/0 -
Ok, i´ll try to do it again. :thumbsup:0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions