Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Is it possible to create a service, which initiates download to my local directory?
So far I see only an option to write a service to download/write CSV file to server as below:
let params = {
path: "anyPath" /* STRING */,
data: anyInfotable /* INFOTABLE */,
fileRepository: "SystemRepository" /* THINGNAME */,
withHeader: true /* BOOLEAN */
};
Resources["CSVParserFunctions"].WriteCSVFile(params);
Solved! Go to Solution.
When you run GetFileListingWithLinks on a repository, you'll get a link that can be used to download the file.
But you must make sure to execute the link client side (ie in a mashup)
I believe a 'link' widget should be able to do this for you.
When you run GetFileListingWithLinks on a repository, you'll get a link that can be used to download the file.
But you must make sure to execute the link client side (ie in a mashup)
I believe a 'link' widget should be able to do this for you.
where can I find the service GetFileListingwithLinks? I can't find it either in Snippets or in Me/Entities
Hello,
You will find it on a repository thing:
// result: INFOTABLE dataShape: "FileSystemFileWithLinks"
let result = Things["SystemRepository"].GetFileListingWithLinks({
path: undefined /* STRING */,
nameMask: undefined /* STRING */
});