Search found 358 matches

by Padawan
Fri Feb 17, 2023 1:55 pm
Forum: Switch
Topic: Find a folder inside workflow
Replies: 3
Views: 4623

Re: Find a folder inside workflow

I usually do this by using the search in the flows pane. Depending on what you search you might need to enable some of the options:
Screenshot 2023-02-17 at 13.52.30.png
Screenshot 2023-02-17 at 13.52.30.png (97.58 KiB) Viewed 4603 times
(The more enabled options and the bigger your flows, the slower the search will be)
by Padawan
Tue Feb 14, 2023 2:48 pm
Forum: Flows
Topic: Archive hierarchy (offline paths)
Replies: 7
Views: 2403

Re: Archive hierarchy (offline paths)

In xcopy you have to provide the full path (including filename )to the source file and the path to the destination folder (excluding the resulting filename). You can avoid this if you have a command where you have to provide the filename in both the source and the target path, this way you can combi...
by Padawan
Mon Feb 13, 2023 9:45 am
Forum: Flows
Topic: Archive hierarchy (offline paths)
Replies: 7
Views: 2403

Re: Archive hierarchy (offline paths)

I have a done a quick and dirty workaround for this by removing the folder elements and using Execute Command/Run Command to move the job to the output folder. Since the actual output folder is not in the flow Switch will allow you to activate the flow. Of course, it is possible to have a Switch scr...
by Padawan
Fri Jan 06, 2023 8:36 am
Forum: Switch
Topic: SMTP config Gmail
Replies: 5
Views: 4799

Re: SMTP config Gmail

Mailjet will only allow you to send mails. (I assumed you only needed sending since you talked about SMTP which is only sending)

If the oauth app doesn't work for receiving mails with gmail, then I would suggest to contact Enfocus support to have it investigated.
by Padawan
Thu Jan 05, 2023 12:08 pm
Forum: Switch
Topic: SMTP config Gmail
Replies: 5
Views: 4799

Re: SMTP config Gmail

If you have a mail send element, then you can use this app: https://www.enfocus.com/en/appstore/product/mail-auth20 However, that won't work for Switch alert mails.In that case you can use a service like https://www.mailjet.com/ . You can link your email address to mailjet and then use the mailjet s...
by Padawan
Tue Dec 13, 2022 10:39 am
Forum: Switch
Topic: Customize Email Template
Replies: 8
Views: 16981

Re: Customize Email Template

To my knowledge the built in email template is not stored on disk, so you can't simply find it and adjust it.

As other people have mentioned before, you can simply take any html email template and copy paste Switch variables in it. You can find a minimal (and ugly) example attached.
by Padawan
Thu Dec 01, 2022 11:45 am
Forum: Flows
Topic: HTML-table as variable in HTML-mail?
Replies: 13
Views: 6226

Re: HTML-table as variable in HTML-mail?

Thanks! The solution is not very elegant, but it works :)
by Padawan
Thu Dec 01, 2022 8:49 am
Forum: Flows
Topic: HTML-table as variable in HTML-mail?
Replies: 13
Views: 6226

Re: HTML-table as variable in HTML-mail?

You can use the "Run Command" App to achieve this. You can use either Cmd or PowerShell: In Cmd using the type command: Screenshot 2022-12-01 at 08.46.58.png In powershell using the Get-Content command: Screenshot 2022-12-01 at 08.47.06.png The path to the text file can be set via variable...
by Padawan
Wed Nov 30, 2022 10:27 pm
Forum: Flows
Topic: HTML-table as variable in HTML-mail?
Replies: 13
Views: 6226

Re: HTML-table as variable in HTML-mail?

Are you on windows or mac?
by Padawan
Sun Nov 27, 2022 4:59 pm
Forum: Flows
Topic: EasyDataTransform (CSV to HTML table)
Replies: 7
Views: 1643

Re: EasyDataTransform (CSV to HTML table)

I don't have the tool, so I can't test to be sure, but the following should also work and avoid the need for the inject job. "C:\Program Files\EasyDataTransform_1_35_0\EasyDataTransform_1_35_0.exe" "D:\EasyDataTransform\graphware-efterkalkulation.transform" -file "input=%%In...
by Padawan
Tue Nov 22, 2022 9:11 pm
Forum: Appstore
Topic: Flow Links App crashes on JSON datasets
Replies: 3
Views: 5065

Re: Flow Links App crashes on JSON datasets

There is now a new version (v7) of flow links, rewritten in NodeJs and with support for JSON datasets. There are also some Data Mapper functionality added. There also is a known issue: On mac it will be slower compared to v6, if you are on Mac, do heavy processing and are tight on processing speed, ...
by Padawan
Sat Nov 19, 2022 2:25 pm
Forum: Flows
Topic: Submit job with API
Replies: 4
Views: 1264

Re: Submit job with API

I assume you did use the token you received from the login api call in your subsequent calls? This is the relevant extract from the documentation: The token must be put in the HTTP Authorization header for each subsequent REST call, so the header looks like: Authorization: Bearer ab43e62fbbd5ea541ef...
by Padawan
Sat Nov 12, 2022 11:52 am
Forum: Switch
Topic: HTTP Request's response can only be opaque dataset?
Replies: 3
Views: 7392

Re: HTTP Request's response can only be opaque dataset?

If you run the latest version of Switch, then you can update the HTTP Request tool via the Switch Appstore. You'll get a completely rewritten app in Nodejs, one of the new features is just what you are looking for: New Property for Response and Input job dataset model This property subordinate prope...
by Padawan
Tue Nov 08, 2022 2:13 pm
Forum: Node.js scripting
Topic: updating switch nodejs sripting capabilities
Replies: 2
Views: 2838

Re: updating switch nodejs sripting capabilities

The Switch typings are added by the SwitchScriptingTool when the project is created. To update the typings to version 2022 you can run the following command in the folder of your project: npm i "https://github.com/enfocus-switch/types-switch-scripting/archive/22.0.0.tar.gz" For future vers...
by Padawan
Tue Oct 18, 2022 12:02 pm
Forum: Node.js scripting
Topic: mssql - async function or callback not finished
Replies: 5
Views: 3151

Re: mssql - async function or callback not finished

Is it possible you have to close the connection to the database?
https://tediousjs.github.io/node-mssql/#close

If that doesn't work, I've used this successfully in the past, but outside of Switch:
(I'm not sure if it will be useful in Switch)
https://github.com/mafintosh/why-is-node-running