Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Customer comments

(0) ShareShare
ReportReport
Posted on by 120

Hello

I would like to know how to save Customer comments on Sales Order page with text send with Nav services from C# code.

//Morten

*This post is locked for comments

  • Verified answer
    Aleksandar Totovic Profile Picture
    Aleksandar Totovic 16,765 on at
    RE: Customer comments

    Yes, this field is not on the page by default. You first need to add this field on the page (this field exist in the table). After that, everything will be fine.

  • manmoranti Profile Picture
    manmoranti 120 on at
    RE: Customer comments

    Thanks.. But I don't know where to set the document type to order in the web service call.. The comment sheet object in C# don't have a document type property :/

  • Suggested answer
    Aleksandar Totovic Profile Picture
    Aleksandar Totovic 16,765 on at
    RE: Customer comments

    You can use one of the document types: Quote,Order,Invoice,Credit Memo,Blanket Order,Return Order,Shipment,Posted Invoice,Posted Credit Memo,Posted Return Receipt.

    You need to use Order for Sales Order.

  • manmoranti Profile Picture
    manmoranti 120 on at
    RE: Customer comments

    My c# code:

    commentSheet1 comment = new commentSheet1();

                               comment.Date = head.OrderDate;

                               comment.Comment = head.CustomerComments;

                               commentSheetService.Create(ref comment);

  • manmoranti Profile Picture
    manmoranti 120 on at
    RE: Customer comments

    I am using page 67 and have publish it. When I run my code and call the service the comment ends in the 'Sales Comment Line' table. But with a wrong document type (8)

  • Verified answer
    Aleksandar Totovic Profile Picture
    Aleksandar Totovic 16,765 on at
    RE: Customer comments

    You need to open Web Services page and publish this page (page 67).

  • manmoranti Profile Picture
    manmoranti 120 on at
    RE: Customer comments

    Yes i'm using web services for this integration. What does it means to publish Sales Comment Sheet.. I dont have a service call names like that?

  • Suggested answer
    Aleksandar Totovic Profile Picture
    Aleksandar Totovic 16,765 on at
    RE: Customer comments

    I suppose, you are using web services for this integration. You can use 'Sales Comment Line' table as destination for all comments. You need to publish Sales Comment Sheet.

  • mmv Profile Picture
    mmv 11,465 on at
    RE: Customer comments

    Hi,

    The below link will give you a highlight on how to use the C# and inserting into Sales Order.  You may use the same concept and insert the comments too.

    blogs.msdn.com/.../extending-page-web-services-and-creating-a-sales-order-again.aspx

    Best Regards,

    MMV

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans