Search found 99 matches
- Fri Nov 20, 2020 9:41 am
- Forum: LEGACY scripting
- Topic: Select a file from the beginning of a flow
- Replies: 20
- Views: 21191
Re: Select a file from the beginning of a flow
So you mean the Flow Element "Export Metadata"? So I cant use job.getVariableAsString( '[Metadata.Rational:Path="Opaque"] ')? In My Flow I get a JSON from a WebHook within the JSON is the name of the PDF-File I want to print via "Flux Server API" and various information...
- Fri Nov 20, 2020 9:07 am
- Forum: LEGACY scripting
- Topic: Select a file from the beginning of a flow
- Replies: 20
- Views: 21191
Re: Select a file from the beginning of a flow
Is there a way to "File.read()" a File thats not in the actual Job-Folder of the Script? How can I refer to such a file? For Example the JSON file is in Folder 11 how can I read it by refering to it like File.read('Ordner 11/filename.json')!?
- Thu Nov 19, 2020 9:09 am
- Forum: LEGACY scripting
- Topic: Select a file from the beginning of a flow
- Replies: 20
- Views: 21191
Re: Select a file from the beginning of a flow
You renamed the payload file and also changed the extension. The filename before the extension must be alike but different extensions. The filetype you want to embed as an opaque datatype i specified in the properties. You you need two files as this: myfilename.pdf and myfilename.json okay thanks. ...
- Mon Nov 16, 2020 9:40 am
- Forum: LEGACY scripting
- Topic: Select a file from the beginning of a flow
- Replies: 20
- Views: 21191
- Sun Nov 15, 2020 1:26 pm
- Forum: LEGACY scripting
- Topic: Select a file from the beginning of a flow
- Replies: 20
- Views: 21191
- Sun Nov 15, 2020 9:48 am
- Forum: LEGACY scripting
- Topic: Select a file from the beginning of a flow
- Replies: 20
- Views: 21191
- Sun Nov 15, 2020 9:47 am
- Forum: LEGACY scripting
- Topic: Select a file from the beginning of a flow
- Replies: 20
- Views: 21191
Re: Select a file from the beginning of a flow
One way is to embed the text file or the PDF as an Opaque dataset in the other file and in the script access that dataset. It will then be saved as a temp file that you can read from the script. For Example I have this flow where I want to opaque pickup a *.json file in a *.pdf file but it stucks b...
- Sat Nov 14, 2020 9:18 am
- Forum: LEGACY scripting
- Topic: Select a file from the beginning of a flow
- Replies: 20
- Views: 21191
Re: Select a file from the beginning of a flow
Branch of to one folder before the pdfToolbox element and then from that folder back to the folder before the script, then both the PDf and the TXT will be going in to the script. In the script you have to pick up both the PDF and the TXT file. How can I select the textfile and the pdf file in the ...
- Tue Sep 29, 2020 10:09 am
- Forum: LEGACY scripting
- Topic: Switch Webhooks
- Replies: 13
- Views: 19078
Re: Switch Webhooks
Okay, I have the Webserver up and running with the following javascript. function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); if(pair[0] == variable...
- Mon Sep 28, 2020 4:20 pm
- Forum: LEGACY scripting
- Topic: Switch Webhooks
- Replies: 13
- Views: 19078
Re: Switch Webhooks
Your URL needs to include the data like what is suggested before. https://yoururl?jobnumber=123456&filename=GES.pdf&numberOfCopies=150 That will then be picked up on the webserver and from there you can send it to Switch. So you QR-code should include the URL with variables. There is a lot ...
- Mon Sep 28, 2020 1:54 pm
- Forum: LEGACY scripting
- Topic: Switch Webhooks
- Replies: 13
- Views: 19078
Re: Switch Webhooks
In Switch you need a webhook element with this Path property: /Switch/ReleaseJob (or anything else of course if you edit the code) If the php file is hosted on the Switch server, the url in the code is "http://localhost:51080/Switch/ReleaseJob", otherwise replace "localhost" wit...
- Mon Sep 28, 2020 1:39 pm
- Forum: LEGACY scripting
- Topic: Switch Webhooks
- Replies: 13
- Views: 19078
Re: Switch Webhooks
Where is the QR-code? Is it on printed paper. How are they scanning it? Phone or scanner attached to computer? In any case the scanning software is the one who sends the POST, right? Yes its printed on paper. And to scan it could be really any device within our IP-Range but we use IPads scanning wi...
- Mon Sep 28, 2020 12:12 pm
- Forum: LEGACY scripting
- Topic: Switch Webhooks
- Replies: 13
- Views: 19078
Re: Switch Webhooks
I want a QR-Code that triggers the webhook. When I create a Webhook in Integromat this works. And it loads a website where it spits out the Status code. I want the people in the production to scan the QR-Code when they finished the job.
- Mon Sep 28, 2020 11:40 am
- Forum: LEGACY scripting
- Topic: Switch Webhooks
- Replies: 13
- Views: 19078
Re: Switch Webhooks
Okay and since there is no way to listen for a GET request in Switch it does not work. Maybe there is a way to pack stuff in a URL do make the browser do a post on this webhook?!
- Fri Sep 25, 2020 1:59 pm
- Forum: LEGACY scripting
- Topic: Switch Webhooks
- Replies: 13
- Views: 19078
Switch Webhooks
Hey everyone, I am reading the documentation trying to figure out how WebHooks work in Switch. The HTTP-Listener is activated and the configured port is open and points to the switch server. When I create a flow with a WebHook Flow Element with protocol HTTP and Method POST and sending a JSON to the...