You are viewing limited content. For full access, please sign in.

Question

Question

Web Request Rules with Multiple Values

asked on March 13, 2024 Show version history

I have this Web Request rule. For the Items, Quantity, and Lot I want to be able to send multiple values. 

 

Currently, when I make the call I get the following out:

 

[
    {
        "Item": "8523994913",
        "Quantity": "6,600",
        "PurchaseOrderNumber": "40432",
        "Address": "1411 Continental Blvd",
        "Name": "Mario Camacho Foods C/o Dist Tech Inc.",
        "TotalWeight": "6,930",
        "Lot": "",
        "OrderNumber": "TCKU6139334",
        "Date": "03/25/2024"
    }
]

I also tried putting brackets around the item value which didn't work either. 

Any suggestions?

0 0

Replies

replied on March 24, 2024

Hi Jack, 

Without seeing what integrator.io is expecting it's tough to be completely sure.

You are sending values but some of those values are an array. In the example of "quantity", you are sending "6" and "600". Integrator.io probably thinks this is one quantity "6,600". Can you perform a transformation on integrator io that will parse the values for quantity?

I cannot think of a way to parse this from the laserfiche side... because you likely have an unknown number of quantities it would be easier to parse from the integrator side. 

This may get hacky but if you were to do it from the laserfiche side (content body)you could hard code variables e.g. 

%(Name: quantity01; Type: Text)
%(Name: quantity02; Type: Text)

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.