We are saving the Form Data to Transaction Manager. And the PDF Receipt is getting generated on the TM. If I need the PDF File on the Front End( for example the Form Data needs to be saved as PDF File). How can I access it. I am trying to use Local Save Button. But it does not show up on the Screen.
Thank you Miro for the quick response.
But when I generate the link using the above code the link generated is https://avokadev.company.com/us1-demo/servlet/FormDynamicDataServlet?sfmRequestKey=f92d4f0b0d520d8d27cdf31e5a011df0&sfmOperationName=renderReceipt with the below error.
What am I missing here?
Thanks in advance,
I just noticed your other question where you state that you are using quite an old TM version 4.0 ?
What is the best approach to create a Client to call a REST Webservice? Using Transaction Manager or Java Script in Composer?
The code above I provided was from a recent Composer form version which expects a newer TM version. It seems that your TM version doesnt support the renderReceipt operation yet and hence you'd need to built the render receipt URL for TM 4.0 like the first one in your previous message (https://avokatmdev.company.com/manager/servlet/FormReceipt.pdf?submitKey=ddbacc72a25d67f97a9734842f8bac9a#zoom=100).
I thought so, that the version is not supporting. I tried what you have suggested to replace 'FormReceipt.pdf'. But that does not help. I tried below two ways. Can you suggest any other possibility that I can try with current version. We have plans to move to next one. But for now I need to work with the existing.
Thanks so much for your help.
TM should be able to generate and provide a PDF receipt in the Saved form status at anytime using the download web receipt servlet url. Its the same one you can normally see on the form's submission confirmation modal page (actually a button's JS code - bellow).
To construct the URL dynamically you can use the same code already in all forms by default (if not customized via datapacks) as seen in the picture bellow. I am wondering whether you could just programaticaly click the same button which would do the entire job for you without much of coding.