What are you currently using as the file path?
iOS can save/read only to/from documents folder (and temp folder). You can set a variable to something like 'getDocomentsFolder/MyPdf.pdf'
A bit difficult to say what goed wrong in your script because you do not explain what steps it contains. But I've made solutions that email pdfs on iOS so I can confirm it should be possible.
Since I do not know what you're trying to do exactly here some general tips:
- Create a variable that holds the path ($Path=your path)
- Use the Save Records as PDF where in the output file option you use the path variable to specify the path
- Use the Send Email step where you tick the 'attach file' and again you specify the same path variable.
Hope this helps,
All the best, Daniel
EDIT: PS - if your path only contains the filename it will save the pdf in the same location where the filemaker solution resides on an iOS device. In iTunes you can view the created pdfs that way.
still can't see your whole path, but I don't think iOS will recognise this. Try to remove the whole folder and file text (file:basic cake order etc.) and save only using the filename you want to give to the file.
PS if you need to use the path on your desktop you can scan for the OS and then depending on the OS use a different path.
You can use Get (DocumentsPath) to save to your system's documents folder (Desktop or iOS), or you can use Get (TemporaryPath) to save to a session specific temp path (this will be deleted once user logs out of the session).
Either approach will work with iOS.
Your current approach isn't working because iOS has no way to access the desktop path you specified.
You need GetDocumentsPath & "yourFile.pdf" on iOS
Thanks so much for your help.
Can I direct it to a specific file on icloud using the same function?
As mschneider pointed out, you can append your document name to either:
Get (DocumentsPath), which will store your file in your desktop documents folder, or in iOS's documents folder, or
Get (TemporaryPath), which will create a temporary folder that will be deleted when the user logs out but can be used by the OS for the duration of the user's session.
So you could for example, Set Variable [ $filepath ; Value: Get (DocumentsPath) & "yourFilename.pdf" ]
Thanks so much. That worked.
Will you kindly mark my answer as correct?