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
Did you try creating a pv of type Document instead?
Yes, and also saving the generated PDF in one of our folder also. But my requirement is to get the generated PDF document in the same process model, and I need to utilize that ID for an integration.
Yeah,
1. there are no errors, and I am trying to save the errors too for reference.
2. I am already saving the PDF in a document but I need the ID of that PDF document.
3. Yeah, the nodes are not overriding.
Yes,
I want the generated PDF document ID in a separate process variable.
creating a process variable of type integer and saving the generated document ID worked well for excel documents but for PDF it's not working. Let me know how to get ID of PDF into a process variable. Is their any other way?
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:
Did you try doing document(pv!newPDF, "documentId")?
You don't even need that. tointeger() will also work