Hi @Chris Hackett, thanks for checking, looks like I just found it with some help from ChatGPT 😅
I couldn’t find anywhere docs on a helper class for using the Numbering Sequences in Acumatica so I asked ChatGPT and it immediately returned the AutoNumberAttribute class with the GetNextNumber method. Since the AI tool’s information is outdated (last refreshed 2021 September) and the method now requires different/more parameters I had to just do some additional research and experimenting with the function to figure a way to use it. I ended up passing it a “fake”/empty new PXCache<Numbering>(PXGraph.CreateInstance<NumberingMaint>()) as it was a required parameter and in the Export method of a data provider there’s no graph or cache instance, null as ‘data’, the Numbering ID I created (pulled from a data provider parameter) and just DateTime.Now as the dateTime parameter.
This seems to be working, after processing it every time I can see the Last Number is incremented to the next number on the Numbering Sequences screen.