web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Delete a record from webservice.

(0) ShareShare
ReportReport
Posted on by 2,390

I have url of a webservice and I am using .net interop(Wrapper class) to access webservice. How can I delete records from navision in the url.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at
  • Verified answer
    4BzSoftware Profile Picture
    6,073 on at

    Hi NavTech,

    This link can be helpful:

    community.dynamics.com/.../125752.aspx

  • Verified answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at

    If you have exposed the page as a webservice it will have a function call 'Delete' which will allow you to delete a single record.

    Easiest way is write a function in a codeunit to delete the record and then expose that function as a web service.  

    From .net side you can add this codeunit reference and then call the function with the required parameters.

  • NavTech Profile Picture
    2,390 on at

    Thanks Khoa Nguyen and Tharanga

  • NavTech Profile Picture
    2,390 on at

    I have write the code to access values from service. I use code like this

    SalesHeader.Description := lModel.GetField('Test Field').GetString;

    Can you help me what code should I write if I want to insert a record in service url.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans