Search found 40 matches

by automation
Fri Jun 18, 2021 5:51 pm
Forum: Flows
Topic: Sort folder based on filename inside the folder?
Replies: 1
Views: 2502

Sort folder based on filename inside the folder?

I have folders with one XML-file and two PDF-files like this -Folder1 --AAA_I.pdf --AAA_C.pdf --CCC.xml -Folder2 --BBB_I_Lex.pdf --BBB_C_Lex.pdf --CCC.xml As you can se Folder1 does not have "_Lex" in the end of the pdf-files. But the pdf-files in Folder2 have "_Lex" in the end. ...
by automation
Fri Jun 18, 2021 2:24 pm
Forum: Flows
Topic: Name "job folder name" in "Assemble Job" from one of the files?
Replies: 1
Views: 2529

Name "job folder name" in "Assemble Job" from one of the files?

I use "Inject wildcard". Incoming job is an XML and I inject several pdf files from a path according to a tag in the XML file. The next step in the flow I use "Assemble Job" to put all the files in a folder and use "private data key" from "Inject wildcard" to ...
by automation
Fri May 21, 2021 11:41 am
Forum: Forum Guidelines / Forum Feature requests / Forum Bug reports?
Topic: Search for shorter words is ignored.
Replies: 0
Views: 19938

Search for shorter words is ignored.

The search in the forum ignores shorter words, which in many cases makes it useless. If I want to convert an XML to an Excel and search for "XML to Excel", I get the result.

Search: +Excel
Ignored: "XML" and "to"

I'm not just interested in Excel!
by automation
Tue May 04, 2021 1:54 pm
Forum: LEGACY scripting
Topic: Loop XML with namespace is not working
Replies: 3
Views: 7366

Re: Loop XML with namespace is not working

Thanks it worked!
by automation
Tue May 04, 2021 12:48 pm
Forum: LEGACY scripting
Topic: Loop XML with namespace is not working
Replies: 3
Views: 7366

Loop XML with namespace is not working

I have this XML with namespace and I want to get e.g all the numbers in the Number tag. But the loop is not working with the namespace. I need to use a loop like this because I'am doing other stuff as well in the loop. <xx.yy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schema...
by automation
Mon May 03, 2021 4:54 pm
Forum: LEGACY scripting
Topic: Export CSV file?
Replies: 0
Views: 9092

Export CSV file?

I loop an XML and for each criterion that matches I want to add it to a csv file. How can I create and export what matches to a CSV file in Switchscripter with code?
by automation
Thu Apr 29, 2021 9:24 pm
Forum: LEGACY scripting
Topic: Any problems to loop XML with 15K lines?
Replies: 1
Views: 3137

Any problems to loop XML with 15K lines?

I have two XML:s, XML 1 with 200 lines and XML 2 with 15.000 lines. I need to compare every specifik node in XML 1 with every specifik node in XML 2. I do this with in nested foreach loop in PowerShell today and it takes less than a second. How can Swithscripter handle this? Something like this fore...
by automation
Thu Apr 29, 2021 1:51 pm
Forum: Flows
Topic: Running a Windows *.bat-file in Switch 2018? Where can I find "Execute Command"?
Replies: 3
Views: 4145

Re: Running a Windows *.bat-file in Switch 2018? Where can I find "Execute Command"?

laurentd wrote: Thu Apr 29, 2021 1:39 pm In Switch 2018, you need the Configurator Module to use Execute Command.
Execute Command is now part of the Switch Core Engine since Switch 2019 Fall.
Is "Configurator Module" part of Switch 2018 or in appstore? Can't find it when I search in in Switch.
by automation
Thu Apr 29, 2021 1:30 pm
Forum: Flows
Topic: Running a Windows *.bat-file in Switch 2018? Where can I find "Execute Command"?
Replies: 3
Views: 4145

Running a Windows *.bat-file in Switch 2018? Where can I find "Execute Command"?

We use Switch 2018 and I want to run a Windows *.bat-file. I have read that many recommend "Execute Command". However, I can not find it in Switch among the tools and not when I seach in Enfocus Appstore.
by automation
Thu Apr 29, 2021 1:19 pm
Forum: Switch
Topic: Running a Windows *.bat-file in Switch 2018? Where can I find "Execute Command"?
Replies: 1
Views: 4682

Running a Windows *.bat-file in Switch 2018? Where can I find "Execute Command"?

We use Switch 2018 and I want to run a Windows *.bat-file. I have read that many recommend "Execute Command". However, I can not find it in Switch among the tools and not when I seach in Enfocus Appstore.
by automation
Tue Feb 09, 2021 9:12 am
Forum: Flows
Topic: Clean up files/folders after X days from network drive/folder?
Replies: 2
Views: 3187

Clean up files/folders after X days from network drive/folder?

I save files and folders on a network drive (shared internal network). Now I want to clean up/delete all files/folder older than X days. This should be automatic, e.g only keep files/folders 30 days. I have only found this, but "The root folder must be a local folder, network folders are not al...
by automation
Fri Oct 30, 2020 11:24 am
Forum: Flows
Topic: Dummy Job Clock
Replies: 6
Views: 6801

Re: Dummy Job Clock

Hi Jimmy, I agree that time constraint options would be a useful addition to it. With the current version, would a workaround work where Dummy Job Clock triggers every 5 minutes 24/7 and you then route the resulting file to Trash if current time is between 23:01 and 04:59? ;-) edit: had to try it m...
by automation
Mon Sep 28, 2020 11:55 am
Forum: Applications
Topic: Inject dummy job with more selectable intervals
Replies: 0
Views: 7920

Inject dummy job with more selectable intervals

I am looking for a module with more selectable intervals to inject a dummy job. For example, two specific days a week, at the end of a month, specific times on certain days, etc. Is there one. You should also not have to change the configuration when you stop the flow (e.g set a new start time). I f...
by automation
Wed Sep 09, 2020 11:29 am
Forum: LEGACY scripting
Topic: loop xml nodes?
Replies: 3
Views: 5579

Re: loop xml nodes?

To get to the "code" nodes you need to use this Xpath expression: /Orders/Order/Product/code Then to loop through them your for loop needs to start from 0 and you need to use the getFirstChild() function to be able to get to the value of the node. See below code that loops through logs th...
by automation
Wed Sep 09, 2020 10:12 am
Forum: LEGACY scripting
Topic: loop xml nodes?
Replies: 3
Views: 5579

loop xml nodes?

I have this XML. How can I loop the XML and get all values in <code>? <?xml version="1.0" encoding="UTF-8"?> <Orders> <Order> <Product> <Line_Id>1</Line_Id> <Product_Id>9831</Product_Id> <Name>Pontus</Name> <Qty>1</Qty> <code>AAAAA</code> </Product> <Product> <Line_Id>2</Line_Id>...