Friday, November 3

AX 2012 - Returning Positive Next continuous Number Sequence in X++ code

Following below code show how we can get continuous number from the number sequences in Microsoft dynamics ax 2012.



SL_PositionReqNum   positionReqNum;
SysLastValue nextNumSeq;

ttsBegin;
positionReqNum = NumberSeq::newGetNumFromId(NumberSeqReference::findReference(extendedTypeNum(SL_PositionReqNum)).NumberSequenceId).num();
ttsCommit;

return positionReqNum;

2 comments:

  1. hi i am new to ax, and i am looking for the code to get the number sequence for a column in a report like (1,2,3,4...) can you tell me the x++ code for that.

    Thanks
    Priya

    ReplyDelete
    Replies
    1. Yeah sure!!! @priya Narula

      you can reference one of my blog which have all the nesscary details on your question. check the mention link below:

      https://360dynamics.blogspot.com/2018/02/ssrs-report-serial-number-in-report.html

      Delete

Popular Posts