Document id being generated is different from the actual document id being saved in the knowledge center

Hi, I am using the apply function to call a rule to upload a document. But the document id being generated is different from the actual document id being saved in the knowledge center. Can anyone please explain what could have gone wrong.
Please find the attachment to refer the code.

uploadCode.txt

OriginalPostID-195674

OriginalPostID-195674

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data