Thanks Robert.

Worked great!!

From: Robert Shubert <[email protected]>
Sent: Friday, December 21, 2018 12:04 PM
To: [email protected]
Subject: RE: TeraScript-Talk: Web Call action question

Easiest way to do what you need is to use the Argument Array option at the top 
of the Post Data pane.

Create an array beforehand with each row being an argument pair. Column 1 is 
the Name and Column 2 is the Value.

The structure is identical to the Arguments block you're using now.

Only you gain the benefit that you can dynamically change the structure of the 
array by selectively adding/removing rows, which will solve your problem.

It can also ease debugging since you can output the array if you need to see 
its contents.

Merry Christmas to you as well.

Robert

From: Fogelson, Steve [mailto:[email protected]]
Sent: Thursday, December 20, 2018 12:11 PM
To: [email protected]<mailto:[email protected]>
Subject: TeraScript-Talk: Web Call action question

First of all. Merry Christmas to all and have a Happy and Prosperous New Year

I have a Web Call action that I have always use to transmit Purchase Orders to 
a manufacturer. Now we have to update the Web Call to their version 4 requiring 
a POST Form.

Easy enough except that they have three lines for addresses. I thought I could 
just leave address lines 2 and 3 blank when necessary, but their API throws an 
error if you include it in the form if it is blank.

In the prior Web Call, I used the “Data” part of the “Post Data” tab to submit 
a URL of the necessary data. BTW I was doing a GET. And I was able to use 
if/then for the address lines when constructing the URL and it worked great.

For this version, I am using the “Arguments” part of the “Post Data” tab to 
submit. But I can’t use if/then to add or remove “Arguments”.

This is probably something simple, but I have never done this before.

Can someone give me some suggestions?

Thanks

Steve Fogelson



________________________________
To unsubscribe from this list, please send an email to 
[email protected]<mailto:[email protected]> with "unsubscribe 
terascript-talk" in the body.

________________________________
To unsubscribe from this list, please send an email to 
[email protected]<mailto:[email protected]> with "unsubscribe 
terascript-talk" in the body.


----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.

Reply via email to