UpdateDocumentNumbers(extDocNo : Code[20]; intDocNo : Code[20]; recId : Text[50]) QueueRecord.RESET; QueueRecord.SETRANGE("Message Id", recId); IF QueueRecord.FINDFIRST() THEN BEGIN QueueRecord."External Doc. No." := extDocNo; QueueRecord."Internal Doc. No." := intDocNo; QueueRecord."Transfer Status" := QueueRecord."Transfer Status"::Done; QueueRecord.MODIFY(TRUE); MESSAGE(extDocNo + ' => ' + QueueRecord."External Doc. No."); END;
Comments
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
I can create second variable QueueRecordTmp, then make TRANSFERFIELDS to this var from QueueRecord, and in this one I have these fields filled. And of course I can insert this new record to Queue.
edit
I've found this in another part of the same codeunit
No comment...