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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Within General Journals is it possible to programmatically call from C# to API WebService - Delete Batch "A"

(0) ShareShare
ReportReport
Posted on by

Hi All,

Within General Journals is it possible to programmatically call from C# to API WebService - Delete Batch "A" Entries

Then I would want to Delete Batch "B" EntriesDelete Batch "C" Entries  for as many times as needed

The reason is for automated uploading ... 409 batches of 2000 or more are needed for 1 million records to be uploaded 

(if I use Excel Column Number starting with A then batch 409 is "OS")

Regards

Mark

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Within General Journals is it possible to programmatically call from C# to API WebService - Delete Batch "A"

    Do you mean from General Journal Batch call a C# class to delete entries (or perform other operations)? If so, yes it’s possible. Create the class, place it in the ad-in folder (server or client), create the DotNet variable for instantiate the class and use the methods. The C# class yes, can use API.

  • Suggested answer
    Olister Rumao Profile Picture
    3,967 on at
    RE: Within General Journals is it possible to programmatically call from C# to API WebService - Delete Batch "A"

    Why don't you create a Page having SourceTable as GenJournalLines, filter these Entries as per batch name and use a Control Add-In to connect C# function to API WebService to trigger the DELETEALL method in NAV.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,237 Super User 2025 Season 2 on at
    RE: Within General Journals is it possible to programmatically call from C# to API WebService - Delete Batch "A"

    Mark,

    Are you planning to upload the entries to Gen. Journal using web service ? and use it for posting ?

  • Community Member Profile Picture
    on at
    RE: Within General Journals is it possible to programmatically call from C# to API WebService - Delete Batch "A"

    Hi Suresh

    Yes ... I have written some C# code to post into a NAV WebService to upload the General Journals

    It looks like I need to create 409 batches of 2000 to 3000 to get my just under a million records in which is 2 years of historical data the client has requested

    Then after initial uploading then they need posting

    To be very honest & from a technical point of view this "L" (Loading") within the ETL end to end process is proving to be a bit of a pain ... normally the challenge is the Extract and Transform

    "Technically" it would be nice to simply provide a file in the right format and say NAV go Upload and Post ....

    Regards

    Mark Dicken

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#3
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans