Exporting Filemaker generated pdf to DT

I use a Filemaker (v11) database for incidental letters and contacts. Often I will print a document but want to be able to store a pdf version in DT.

I having been trying to script the pdf output to be placed in the DT Inbox using an output file name generated by Filemaker (basically contact name and yyyymmdd).

I can get un-named output into the DT inbox using the Save Records as PDF Fmk script with the following parameters:
Specify Output file = file:…/…/Library/Application Support/DEVONthink Pro 2/Inbox/$filePath

In trying to name the pdf I have been trying to use the Set Variable script step with the following parameters:
Set Variable [$filepath; Value: Get (DesktopPath)&Calls::date_as_text&”.pdf”]
but the script is failing.

Previous posts on Filemaker do not appear to address this question - can anyone assist?

Can you point me to a place where I can get the “Save Record as PDF” FileMaker script?