After a submission, it’s possible for the user to get access to the PDF receipt of an application – also, using TM, you can obviously access the PDF of an application at any stage. What I’m wanting to do is have a button on screen which emails the current version of the PDF to our support team so that they can help a user without the need for a TM logon.

In a Dynamic Data service, I have the following included to add the PDF as an attachment to an email:

import com.avoka.fc.core.service.ReceiptDataService;

import com.avoka.fc.core.entity.RequestLog;

I am getting an error logged for the service call: "No signature of method: static com.avoka.fc.core.service.ReceiptDataService.getReceiptPdf() is applicable for argument types: (com.avoka.fc.core.entity.Submission, java.lang.String)".... I'm sure that this actually should work so I'm now unsure as to how to continue with this.

Any ideas? If there is an easier way to access the receipt PDF than the above then more than happy to try it!

I have another tiny issue with this; I am writing this as a Dynamic Data script - so attachmentMap doesn't exist and needs initialising as a new Map - I can't get this to work either. Obviously if I did it as an EmailService I could refer to it directly but I need to pull in data from the form fields...