Search found 586 matches

by jan_suhr
Wed Mar 15, 2023 12:58 pm
Forum: Node.js scripting
Topic: XML2CSV
Replies: 7
Views: 6364

Re: XML2CSV

You can always use XSLT with the Saxonica configurator. It will fix it
by jan_suhr
Wed Mar 15, 2023 10:43 am
Forum: Node.js scripting
Topic: XML2CSV
Replies: 7
Views: 6364

Re: XML2CSV

by jan_suhr
Thu Mar 09, 2023 9:38 pm
Forum: Switch
Topic: Imagemagick
Replies: 7
Views: 6697

Re: Imagemagick

You can try to send them to one folder each on disk and then you add the full path to each file. With the app "Execute command friend" you can construct a .bat or .sh file that you send to Execute command. This file would have the complete execution command in it but it will also allow you...
by jan_suhr
Wed Mar 08, 2023 9:29 am
Forum: Flows
Topic: Switch User Group as Metadata?
Replies: 4
Views: 1305

Re: Switch User Group as Metadata?

Hi Magnus,

You have the [Connection.UserName] variable and with the app Row2Variable you could set it up to get the group as PrivateData.

Might work for you.
by jan_suhr
Fri Feb 17, 2023 8:16 am
Forum: Switch
Topic: Find a folder inside workflow
Replies: 3
Views: 4629

Re: Find a folder inside workflow

You can try the Get Switch Log Message app. It can be set up to send you specific messages from the Switch log. Anything from a flow to one element in a flow and what message type you look for. Meant to be used for finding problems in flows. https://www.enfocus.com/en/appstore/product/get-switch-log...
by jan_suhr
Tue Feb 14, 2023 7:54 pm
Forum: Switch
Topic: Format Date when it is Private Data
Replies: 8
Views: 3968

Re: Format Date when it is Private Data

I did try the date calculator app. That will not work as the date must be yyyy-MM-dd or it will fail. I have the app for string replacement. I am struggling to understand the setup of the app. The instructions are not clear to me. You haven't really told us what the input is, where it come from and...
by jan_suhr
Mon Feb 13, 2023 5:08 pm
Forum: Flows
Topic: Converting Epoch time to Date Time
Replies: 4
Views: 1638

Re: Converting Epoch time to Date Time

Have you tried the Date Calculator app?

https://www.enfocus.com/en/appstore/pro ... calculator
by jan_suhr
Mon Feb 13, 2023 9:47 am
Forum: Switch
Topic: Format Date when it is Private Data
Replies: 8
Views: 3968

Re: Format Date when it is Private Data

Maybe the app Date Calculator can fix it for you. It is possible to calculate with the value zero for the new date. You will get a lot of private data keys for different parts of the date. It will however give it in ISO-format, it meant to be used in Switch. But you can use the string replace app to...
by jan_suhr
Fri Feb 10, 2023 10:36 pm
Forum: Switch
Topic: Format Date when it is Private Data
Replies: 8
Views: 3968

Re: Format Date when it is Private Data

Where do you get your date from? Can it be formatted from that source?
by jan_suhr
Fri Feb 10, 2023 7:47 pm
Forum: Switch
Topic: Format Date when it is Private Data
Replies: 8
Views: 3968

Re: Format Date when it is Private Data

Have you tried this for the current date?

CurrentDate=[Switch.Date:Format="d/MMM/yyyy",TimeZone="UTC"]

It will show 10/feb/2023

https://www.enfocus.com/manuals/UserGui ... tting.html
by jan_suhr
Fri Feb 10, 2023 7:41 pm
Forum: Node.js scripting
Topic: Populate dropdown list in SwitchScripter
Replies: 6
Views: 7739

Re: Populate dropdown list in SwitchScripter

You have the property "Select from library". Then you get a list of values that you can populate from different sources.

You get the values from this Entry point in the script
getLibraryForProperty(s: Switch, flowElement: FlowElement, tag: string): Promise<string[]>
by jan_suhr
Fri Feb 10, 2023 12:27 pm
Forum: Flows
Topic: API auth token
Replies: 7
Views: 1671

Re: API auth token

Yes it is a command line tool and you have to write a Shell script or a BAT file that do the talk with the server you want to connect to.

I have used it for connection to an MIS where HTTP Request didn't work.

You can use Postman to play around with to get the syntax you need to connect correctly
by jan_suhr
Fri Feb 10, 2023 12:11 pm
Forum: Flows
Topic: API auth token
Replies: 7
Views: 1671

Re: API auth token

You can try this app instead of the HTTP Request.
https://www.enfocus.com/en/appstore/product/run-command

The problem with HTTP Request and tokens is that you need to run two calls to the server you want to reach, HTTP Request has problems with that.
by jan_suhr
Wed Jan 11, 2023 1:47 pm
Forum: Flows
Topic: Compare a field in a data file
Replies: 2
Views: 796

Re: Compare a field in a data file

You can format the system date to look like 2023-01-10
Snag_65977388.png
Snag_65977388.png (36.54 KiB) Viewed 793 times
And then you can use that to compare the date in the filename
by jan_suhr
Mon Jan 02, 2023 7:39 pm
Forum: Applications
Topic: String Replace Issue
Replies: 4
Views: 8322

Re: String Replace Issue

In the Property "Data" you should have the name of the Private Data key.

In other words it should just say "description"

Then if there is a value "START" in that Private data value you will get the result "DONE", otherwise nothing will happen.