Hi All
I am trying to manually create the UserRequest object from the X++ code. However, I am unable to get the next sequence number for the "RequestId" field. I checked the Human resource setup parameters and found that it is using "Basi_3" sequence. Please find the below code and let me know why it is not working.
NumberSequenceTable numt;
NumberSequenceReference numR;
select numt
where numt.NumberSequence=='Basi_3';
select numR
where numR.NumberSequenceId==numt.RecId;
ttsbegin;
num = NumberSeq::newGetNum(numR);
info(num.num());
ttscommit;
Regards
Suresh
*This post is locked for comments
I have the same question (0)