Hello,
I have published 67 PAGE Sales Comment Sheet as a WEB SERVICE.
Now by using CREATE function I want to create COMMENTS for particular Sales Invoice.
Code is as below.
SaComm.Document_Type = Navweb.Web.db1.Document_Type.Invoice;
SaComm.No = "ER/MT/0175";
SaComm.Document_Line_No = 10000;
SaCommServ.Create(ref SaComm);
I have SaComm is instance of Sales Comment Sheet and SaCommServ is the Service instance.
I have already assigned Document Type to INVOICE. But, after execution of CREATE function,
It has created the Record with,
No. - "ER/MT/0175"
Document Type - Quote (Default of System)
Document Line No - 0
Line No. - 10000.
Anybody guide me, what to do for my above requirement.
Thanks in Advance.
Ravi_Thakkar
Ahmedabad, Gujarat, India
E Mail :
ravi.thakkar@hotmail.com
Comments
http://blogs.msdn.com/freddyk/archive/2 ... d-rtm.aspx
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
You'll need to add the field to the page, and make it by default not visible.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I am on the stage of Creating the record.
Any suggestion?
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
Now, while creating the record, I will not have the Line No. value.
Then also If I am passing other 3 fields values, It is only passing Document No. Value to NAV code execution. And taking other values Default of the system.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
In a situation like this - I would recommend creating a card page for table 44. Page 67 is clearly not designed for exposure as a web service - and shouldn't be made to.
You might still ask why it doesn't work - and I think that has something to do with the properties set on the page:
DelayedInsert = Yes
MultipleNewLines = Yes
AutoSplitKey = Yes
You will probably find that setting these properties to their default values (or some of them) will make the page work through web services, but then it won't work as designed in the RTC.
If you find out what it takes to make it work as WS - I would like to know that - but I still think you should give up changing page 67 and create a card page for the purpose.
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Thanks a Lot for your understabdable reply. Yes, I have already added those fields. May be you are right. But, Still I will try for it and also as your suggestion.
In between, let me know if any new idea.
Thanks.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
Can you share what did you ended up doing on this? We are also struggling to receive order comments from a WS.
-jbra
Since this is a 4 years old post, I will have to see in my data repository and will have to revert back.
Let me see into that. I will let you know.
Regards,
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
I copied the comment page to a new one in my range, then set the defaults for DelayedInsert, MultipleNewLines, and AutoSplitKey.
That seemed to take care of comments.