I used the add attachment feature on self service. The files are stored in the record. When the file is added , the workflow should be triggered and send the attachment to some role users.
But i found that after the file is uploaded , MY_DOC data is populated by the delivery code. But the data in MY_ATT would be populated after the user click the save button. Even after i added the DoSaveNow peoplecode. Cionfused why the savenow code did not take affect.
My requirement : the user needs to add an attachmen/attachements and workflow should be triggered (the files would be sent out for approval) when clicking the save button.
My questions, when i add the attachment and the file should be saved in the XX_DOC record but the data of XX_ATT would be saved after the user click the save button. The save action of data does not sync although i added the DoSaveNow peoplecode.
That would cause that the workflow would not find the new added attachement when the email is sending out.