Using an app-script to merge PDF files although the script originally used a Google sheet to pass parameters. However using a Bot to pass parameters to the app-script there is a problem receiving the resulting merged file URL back.
Q: How to you specify a URL path for 3rd party apps like PDF co to store a file, which is relative to where where AppSheet app stores files?
Q: Has anyone had any success using something like PDF.co with AppSheet?
ListPDFURLS: List or URLS (represents the list of PDF files to merge)
MergedURL: Return is the URL to the merged File
To save the merged file somewhere where you can retrieve it, you need to save the file to a specified location. My question was how do you specify a location that is relative to Google Drive where the AppSheet app is running?
[quote=“SkrOYC”]
[/quote]>
Something along the lines of the following:
**
Save file URL to specific location
*/
function uploadFile(fileUrl) {
var fileContent = UrlFetchApp.fetch(fileUrl).getBlob();
var folder= DriveApp.getFolderByIdAndResourceKey("********);
folder.createFile(fileContent);
}