Today I have a client that wants me to provide an incremented SOP Master Number. In the past, I've just written my own code to increment the SOP40100.NXTMSTNO field.
That's always seemed heavy handed to me, and I knew that there must be a native function to do it... so I went looking.
This article is a code example for how to call the taSopGetMasterNumber stored procedure and get an incremented number.
As soon as I got this all documented, I went to install it at the client. Who didn't have eConnect. So... I had to revert to the stored proc method. I've included the full text of that proc at the bottom of the article.
This article will be listed in the SQL - Scripts specific to Dynamics menu