Hi,
First part of chained app, I want to write to temp folder.
I use output data like this -
%temp%..\filename1.yxdb
but how to import this to my 2nd page of my chained app?
is it as simple as input data ?
%temp%..\filename1.yxdb
all users who access this on the server will have to be able to do this.
assuming your chained app is saved in the same location as the initial app (not s sub-folder), you don't have to specify file paths. So our output would just be ".\filename1.yxdb" and you chained app would be configured to also read ".\filename1.yxdb". it's also explained in the link below.
https://help.alteryx.com/20231/designer/app-building-guidelines#%25temp%25
@jrgo even if Im exporting headers to another chained app? w here should these headers file reside?
Hi @wonka1234
Sorry, not sure if I'm following... can you describe what type of output file the first app is generating and how it's intended to be used in the next app? If you're able to share screenshot or (preferably) desensitized copies of the apps, that would really help to fill in some of the gaps.
@wonka1234 I stumble across this, it might help from App Building Guidelines (alteryx.com)
%temp%
Do not use %temp% to write to the temp directory when you build workflows or apps to be saved to Server. Keep all file paths within the workflow. If you develop a chained app, use only the file name rather than any file path, for example, .\fileOutput.yxdb and not %temp%\fileOutput.yxdb or something similar. Select a file by browsing to it and then change the file dependency path to a relative path via the Workflow Dependencies window.
In previous chained apps that I've build, App1 writes a temp file : tempfile.yxdb (no path) App 2 in the chain input data tools or interface calls tempfile.yxdb (no path).
HTH.
@Tam -- Just seeing this now, as I struggle through setting up chained apps that are passing datasets. I looked at the link provided and it feels to me like those comments are about putting things on Public Gallery (or whatever it is called now). If you do that on your own server, it will create files that will not be swept up and deleted out of temporary folders. The temp folders should have a retention period setup in basic Server settings so you don't have to handle that manually. I could be wrong, as I am not a server admin but I think it might be a potential compliance issue depending on the data being handled by Alteryx as potentially sensitive data could end up sitting out there after the fact for an indeterminant amount of time unknown and unmanaged.
This:
I could be wrong, as I am not a server admin but I think it might be a potential compliance issue depending on the data being handled by Alteryx as potentially sensitive data could end up sitting out there after the fact for an indeterminant amount of time unknown and unmanaged.
Is 100% true. I'd also recommend that you monitor what data you push as template files (workflow dependecies) when creating .yxzp files in Server. Server workflows should (should) be like Docker containers (Promote correctly uses this for containerization) and self-delete when done.