Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Create Document Task : Flow action generates document task but gives attachment not found error all

Kachu
Mega Sage

All the time when  i try create Document task in flow designer it generates the document task but  when i try to fill document it says attachment is missing. does any one know how to resolve this issue ?

6 REPLIES 6

Iam using PDf template and my document templates are published, when i create them usingsc ript includ using Below script 

 var docApi = new sn_doc.GenerateDocumentAPI();
            var docTaskId = docApi.initiateDocumentTasks(
                incidentGr, // taskGr: parent record for the doc task
                htmlBody, // html body (empty to use template)
                template_type, // template sys_id
                generatedPdfName, // output file name
                incidentGr.getUniqueValue() // documentId (tie to incident)
            );
it creates as expected but when it resturns true or false not record sysid  adn creates async'ly . I need to create  and get me back sysid. I do glide it doesnot work  because of async, i want to use flow action to generate but then again attachment not found issue comes up.

Prinssi
Mega Sage

Hi @Kachu  ,

I was having the same issue you are experiencing here. There is more to signing a document than the Document Task (like Document Task Execution record). Instead of using the Create Document Task action, I recommend using the Automatic Document Task Creation Subflow:

Prinssi_0-1784062316468.png

 

When I started using this subflow, the documents were appearing in the To-Dos widget in my Employee Center, and I was able to sign the documents successfully.

 

Best,

Prinssi