Switch/Pitstop variables

Post Reply
Chrissigge
Member
Posts: 20
Joined: Mon Jun 01, 2015 8:05 am
Location: Switzerland

Switch/Pitstop variables

Post by Chrissigge »

Hello, as a part of one of my flows i have to print an invoice, there for I need to get Informations from our XML,
and I think I cannot do what I want without scripting.

I use an Pitstop actionlist an a variables set to get the Information from our XML, my problem now is that in our
XML there could be several Products and I have to make a list like

(OrderNr.1)–(OrderID1)
(OrderNr.2)–(OrderID2)
(OrderNr.3)–(OrderID3)

If I have to do it without scripting I need to creat several actionlists for several cases because the character "-" will always be there even there is no Product2 or Product 3 ....

Is there a way to access the products with script? (Language is in German..sorry)
Bildschirmfoto 2017-03-08 um 18.03.40.png
Bildschirmfoto 2017-03-08 um 18.03.40.png (39.4 KiB) Viewed 7730 times
I tried to access the XML node like i did it in our eMail template, bis it doesn't work for scripts the same way it seems...

Thank you very much for any helpful information.
sander
Advanced member
Posts: 276
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Switch/Pitstop variables

Post by sander »

If I get you right I believe this is what you are looking for.

Don't open your Variable Sets via PitStop Server. If you do you can't use Switch variables, open it via Switch instead.

Follow the colors in this order haha: Yellow, Red, Blue :D
As you can notice there's the variable as you wish!
Image
cwswitch
Member
Posts: 78
Joined: Fri Feb 24, 2017 12:25 am

Re: Switch/Pitstop variables

Post by cwswitch »

THANK YOU!!!

2.5 hours of trial error and Googling. This post explains it. So poorly documented by Enfocus.
sander
Advanced member
Posts: 276
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Switch/Pitstop variables

Post by sander »

Haha good to hear! That's exactly what the users try to achieve over here :lol:
Post Reply