Search found 422 matches

by jan_suhr
Tue May 18, 2021 11:18 pm
Forum: Flows
Topic: HTTP request parameters
Replies: 6
Views: 1317

Re: HTTP request parameters

Do you have double quotes around the variables?

Like this:

Code: Select all

"Items": "[Metadata.Text:Path='/dn:OrderInfo/dn:OrderItems[1]/dn:PresseroOrderItem/dn:ItemId[1]',Dataset='Original',Model='XML']"
Note the single quotes inside the variable!
by jan_suhr
Fri Apr 30, 2021 12:22 am
Forum: Flows
Topic: Question about Set Hierarchy Path coming from XML
Replies: 1
Views: 276

Re: Question about Set Hierarchy Path coming from XML

It is probably an encoding issue on the NAS-server. In some cases the XML has to be iso-8859 encoded for certain characters to work.
by jan_suhr
Thu Apr 15, 2021 8:09 am
Forum: Flows
Topic: Compress all files in folder when newest file is older than 30 min
Replies: 4
Views: 540

Re: Compress all files in folder when newest file is older than 30 min

Inject Job with "Time of day" as the trigger, could that work for you?
by jan_suhr
Tue Apr 13, 2021 7:47 pm
Forum: LEGACY scripting
Topic: excel data merge to indesign
Replies: 3
Views: 4707

Re: excel data merge to indesign

With the app Excel to XML you get a good start. Then you set up an InDesign template with XML - import in the InDesign configurator.
That is basically it.
by jan_suhr
Tue Apr 13, 2021 7:47 pm
Forum: LEGACY scripting
Topic: excel data merge to indesign
Replies: 3
Views: 4707

Re: excel data merge to indesign

With the app Excel to XML you get a good start. Then you set up an InDesign template with XML - import in the InDesign configurator.
That is basically it.
by jan_suhr
Tue Apr 13, 2021 2:00 pm
Forum: Flows
Topic: How can I view when a Switch Flow was last used?
Replies: 5
Views: 644

Re: How can I view when a Switch Flow was last used?

You can set up an database like MySQL and send an HTPP-Request to it (over PHP) and store data that way.
You have the Switch variables [Switch.FlowName] and [Switch.Date:TimeZone="UTC"] that give you the data you need to see when it last was used.
by jan_suhr
Mon Apr 12, 2021 5:42 pm
Forum: Flows
Topic: PDFTK does not output PDFs in Switch unless manual folder scan is invoked
Replies: 5
Views: 630

Re: PDFTK does not output PDFs in Switch unless manual folder scan is invoked

Arthur wrote:
Mon Apr 12, 2021 3:06 pm
Will check that later. I chose a defined path however as the "%2" never worked for me....
Will report after the changes.
Interesting though....
Sounds like the Output property is set to None
by jan_suhr
Mon Apr 12, 2021 2:40 pm
Forum: Flows
Topic: PDFTK does not output PDFs in Switch unless manual folder scan is invoked
Replies: 5
Views: 630

Re: PDFTK does not output PDFs in Switch unless manual folder scan is invoked

And also set the Output property to "File at path" it is by default None and will there fore not output anything
by jan_suhr
Thu Apr 01, 2021 7:49 am
Forum: Node.js scripting
Topic: Issue With job.getPath()
Replies: 2
Views: 520

Re: Issue With job.getPath()

You don't have any job.getPath() function in Node.js for Switch. BTW the manual you link to is a really old one from Switch 11 and for the old Legacy scripting. Try this one which have an example on how to get the job path. https://www.enfocus.com/manuals/DeveloperGuide/SW/20/home.html#en-us/common/...
by jan_suhr
Wed Mar 31, 2021 7:51 am
Forum: Flows
Topic: Word configurator
Replies: 2
Views: 1580

Re: Word configurator

How does the PDF look if you save as PDF from within Word?
by jan_suhr
Fri Mar 12, 2021 3:34 pm
Forum: Flows
Topic: How to set text file contents as email body
Replies: 11
Views: 2452

Re: How to set text file contents as email body

I see that you are from Sweden, call me at 0707490774 and I can take a look at it.
by jan_suhr
Thu Mar 11, 2021 6:00 pm
Forum: Flows
Topic: How to set text file contents as email body
Replies: 11
Views: 2452

Re: How to set text file contents as email body

In your own HTML-template you insert Switch variables with the information you want to display in the email.
by jan_suhr
Wed Mar 10, 2021 11:00 am
Forum: Flows
Topic: Calculate date from [weeknumber]-[weekdaynumber]?
Replies: 3
Views: 765

Re: Calculate date from [weeknumber]-[weekdaynumber]?

It can be even simpler

Code: Select all

const moment = require("moment");

var myDay = moment("2021-W05-4").format("YYYY-MM-DD");

console.log(myDay);
In this case the 05 and 4 will be replaced by variables or maybe just one variable for the 05-4
by jan_suhr
Tue Feb 23, 2021 8:55 pm
Forum: Appstore
Topic: String Replace
Replies: 3
Views: 4348

Re: String Replace

Great