Search found 373 matches
- Tue May 07, 2024 10:39 pm
- Forum: Flows
- Topic: Compose XML for HTTP POST using file in hot folder
- Replies: 31
- Views: 330
Re: Compose XML for HTTP POST using file in hot folder
By looking at the script I guess you are doing the following: 1. Fetch a job number containing 6 digits followed by a dash and two more digits from filename 2. Fetch the 6th digit in that job number as case 3. Use that case digit to set the URL If that's correct - here is a flow that does that using...
- Tue May 07, 2024 9:48 pm
- Forum: Flows
- Topic: Compose XML for HTTP POST using file in hot folder
- Replies: 31
- Views: 330
Re: Compose XML for HTTP POST using file in hot folder
Thanks, could you also provide a couple of example jobnames?
- Tue May 07, 2024 7:17 pm
- Forum: Flows
- Topic: Compose XML for HTTP POST using file in hot folder
- Replies: 31
- Views: 330
Re: Compose XML for HTTP POST using file in hot folder
The script does more than send the Post. It also determines which Server out of 5 the POST needs to be sent to and formats the server URL by using Regular Expressions to pull the last digit of the Job name to a select case for the server. I understand your frustration, but we are just trying to hel...
- Tue May 07, 2024 2:53 pm
- Forum: Flows
- Topic: Compose XML for HTTP POST using file in hot folder
- Replies: 31
- Views: 330
- Tue May 07, 2024 2:50 pm
- Forum: Flows
- Topic: Compose XML for HTTP POST using file in hot folder
- Replies: 31
- Views: 330
Re: Compose XML for HTTP POST using file in hot folder
On the output folder there is a property called 'Strip unique name' set that to 'Yes'.
- Thu May 02, 2024 4:43 pm
- Forum: Griffin
- Topic: Griffin Step anf Repeat
- Replies: 5
- Views: 109
- Wed May 01, 2024 9:25 pm
- Forum: Griffin
- Topic: Griffin Step anf Repeat
- Replies: 5
- Views: 109
Re: Griffin Step anf Repeat
Is there also a command that Griffin recognizes and simply fills the sheet with minimal waste without entering the quantity? No :( We would also like to do this when it comes to certain jobs. For example SRA3 digital print jobs that are beeing cut in a sheetfed digital die cutting machine and where...
- Mon Apr 29, 2024 10:51 am
- Forum: Flows
- Topic: JSON - list of files [SOLVED]
- Replies: 14
- Views: 615
Re: JSON - list of files [SOLVED]
Great to hear Jimmy! Another nice thing with using Saxon in Switch is that you get very useful information in Messages if anything fails.JimmyHartington wrote: ↑Fri Apr 26, 2024 12:12 pm I just tested with one of my flows and got it to work.
Like you with a xslt created with the help of ChatGPT.
- Wed Apr 24, 2024 1:20 pm
- Forum: Flows
- Topic: JSON - list of files [SOLVED]
- Replies: 14
- Views: 615
Re: JSON - list of files [SOLVED]
This helps in understanding how. I have not worked with XLSTs in Switch before. It seems a bit daunting to write XLST, but maybe with the help of AI and testing it could work. Some of my flows could surely be optimized in some cases by using XLSTs instead of some of my workarounds. XSLT is very pow...
- Wed Apr 24, 2024 8:01 am
- Forum: Flows
- Topic: JSON - list of files [SOLVED]
- Replies: 14
- Views: 615
Re: JSON - list of files [SOLVED]
I hope that helps Jimmy? Have you been working with XSLT in Switch? And if so how?JimmyHartington wrote: ↑Tue Apr 23, 2024 3:36 pm Ok.
And how do you process the XML with the XLST using Saxon?
- Wed Apr 24, 2024 6:58 am
- Forum: Switch
- Topic: Acrobat Freezing with print command
- Replies: 3
- Views: 675
Re: Acrobat Freezing with print command
I use an CLI app called 2printer together with Execute Command to print documents with Switch. It works very good.
- Tue Apr 23, 2024 3:47 pm
- Forum: Flows
- Topic: JSON - list of files [SOLVED]
- Replies: 14
- Views: 615
Re: JSON - list of files [SOLVED]
Oh sorry!
First I installed Saxon 9HE using Chocolatey (choco install saxonhe). Then I installed the Saxonica Saxon Switch app.
In the Saxon app element you just need to choose the xsl-file that you want to use for transforming the incoming XML.
First I installed Saxon 9HE using Chocolatey (choco install saxonhe). Then I installed the Saxonica Saxon Switch app.
In the Saxon app element you just need to choose the xsl-file that you want to use for transforming the incoming XML.
- Tue Apr 23, 2024 3:32 pm
- Forum: Flows
- Topic: JSON - list of files [SOLVED]
- Replies: 14
- Views: 615
Re: JSON - list of files [SOLVED]
Nowadays I use ChatGPT-4 to create varios XSLT's. In this case my prompt looked like this: Can you please write me an XSLT code that I can use to split my XML in one XML file per array item, the file name of the outgoing XML files should be named with arrays item name, in this case 0.xml and 1.xml. ...
- Tue Apr 23, 2024 11:46 am
- Forum: Flows
- Topic: JSON - list of files [SOLVED]
- Replies: 14
- Views: 615
Re: JSON - list of files
Thanks Laurent and Jimmy for two creative solutions!
I solved it this way:
1. Pickup JSON as Legacy app XML
2. Export meta data as XML file
3. Saxon with a simple XSL to split the XML (one per filename)
4. XML pickup
5. HTTP request
I solved it this way:
1. Pickup JSON as Legacy app XML
2. Export meta data as XML file
3. Saxon with a simple XSL to split the XML (one per filename)
4. XML pickup
5. HTTP request
- Tue Apr 23, 2024 9:36 am
- Forum: Flows
- Topic: JSON - list of files [SOLVED]
- Replies: 14
- Views: 615
JSON - list of files [SOLVED]
Hi, I'm using HTTP request to get a list of files as a JSON response. I then use JSON pickup to pickup the response as a JSON dataset. So far so good. Now I would like to download the files listed in the JSON response using HTTP request . But this part I'm struggling with. If it's only one file in t...