hello I'm new to Appian and i have a task to generate a pdf from word template i used DOCX From Dynamic Template smart service then PDF From DOCX i checked every thing but the document isn't generated i will attach the xml code and the word template
Stationery Request templete test.docx
here is the xml generated
<orders><createdBy>sliman.izz</createdBy><createdOn>4/7/2025 3:50 PM GMT+02:00</createdOn><items><orderDetails itemName='test' itemCode='54' requestedQuantity='100' receivedQuantity='50' notes='not done' /><orderDetails itemName='test' itemCode='45' requestedQuantity='20' receivedQuantity='10' notes='not done' /><orderDetails itemName='test' itemCode='85' requestedQuantity='50' receivedQuantity='50' notes='done' /><orderDetails itemName='test' itemCode='75' requestedQuantity='40' receivedQuantity='40' notes='done' /></items></orders>
what could be the problem?
Discussion posts and replies are publicly visible
Hi slimani666046 ,can you try this code and let me know?
<orders> <createdBy>sliman.izz</createdBy> <createdOn>2025-04-07T15:50:00+02:00</createdOn> <items> <orderDetails itemName="test" itemCode="54" requestedQuantity="100" receivedQuantity="50" notes="not done" /> <orderDetails itemName="test" itemCode="45" requestedQuantity="20" receivedQuantity="10" notes="not done" /> <orderDetails itemName="test" itemCode="85" requestedQuantity="50" receivedQuantity="50" notes="done" /> <orderDetails itemName="test" itemCode="75" requestedQuantity="40" receivedQuantity="40" notes="done" /> </items> </orders>
I tried with double quotes and still it won't generate the docx file.
Did you read the documentation included in the download from the app market? I think that you cannot just dump XML into the document and hope it renders.
Just to add to the thread, if you are generating your own Word document on the fly via XML (not relying on something already in existence etc) and having issues, you might have better luck with generating an HTML Doc From Template instead and converting to PDF with the PDF from HTML service, if this fits your case. That's what we use primarily to create PDFs from scratch and typically works pretty well.
I agree: appian.rocks/.../