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...
0
Comments
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.
You are wellcome.
Nice to meet you.
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...
http://vjeko.com/