How to get ID by generating PDF document!!!

Certified Associate Developer

Hi all,

Actually, by using Dynamic DOCX Template I am generating a PDF.

Now I want that PDF ID to save in a process model.

I tried by creating a process variable of type number integer and tried saving the generated document from the plugin into the process variable and didn't work out!!

Can someone suggest me how can I achieve this.

Thanks In Advance.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to Shaik Gousi

    The "Document" type PV already (actually) contains the document ID - Appian just shows us the document's name to be "user friendly" - but this can be cast to INTEGER type at any time we need - you could just use a subsequent script task to save that PV directly into an INTEGER type variable and you'd have it.

    But yes if you want/need to save the ID directly at save time, all you need to do is add an extra node output entry, just below the place you (already) have it configured to save into pv!newDocumentCreatedPDF: