How can pass Record Variable using Webservices ?

SHIV_DYN
Member Posts: 30
Hi everyone,
Is it possible to pass a Record Variable using Webservices(Ex: From Web page to Navision) ?
Could anyone help me out, by providing the related documents or website URL’s.
Is it possible to pass a Record Variable using Webservices(Ex: From Web page to Navision) ?
Could anyone help me out, by providing the related documents or website URL’s.
Thanks & Regards,
Shiv
Shiv
0
Comments
-
Hi
I also tried this. The web reference gives you an error that the parameter is incorrect.
So the next best thing is to pass the primary key values and do a GET in NAV.
If you modified the record, be sure to do .UPDATE(..) before calling your function in NAV.
Hope this helps.
Regards,
EwaldKind Regards,
Ewald Venter0 -
Hi Ewald,
Thanks for your replay. I am doing the same thing (passing the primary key values). But here my doubt is why can’t we send record variable as a parameter?Thanks & Regards,
Shiv0 -
As I understand, the issue is with returning complex data types - which is not even possible within NAV. Why you can't pass it as a parameter by reference to a function from the web side escapes me.
There are however ways to get around it (although I did not have time to try it out as of yet) as described in Implementing Microsoft Dynamics NAV 2009 by David Roys , Vjekoslav BabićKind Regards,
Ewald Venter0 -
you can pass by value record variable, if you publish the codeunit as same name as pages.0
-
I just tried it, got the following error:
pRecCustomer of the type INavRecordHandle in method TestPassRec in service Customer is invalid!Kind Regards,
Ewald Venter0 -
The Page and the codeunit have the same table and not passed by ref?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