Page 1 of 1

Switch/Pitstop variables

Posted: Wed Mar 08, 2017 6:08 pm
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 17714 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.

Re: Switch/Pitstop variables

Posted: Wed Mar 08, 2017 6:41 pm
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

Re: Switch/Pitstop variables

Posted: Thu Jul 06, 2017 1:06 am
by cwswitch
THANK YOU!!!

2.5 hours of trial error and Googling. This post explains it. So poorly documented by Enfocus.

Re: Switch/Pitstop variables

Posted: Thu Jul 06, 2017 9:37 am
by sander
Haha good to hear! That's exactly what the users try to achieve over here :lol: