Skip to main content
Question

Using HTTP caller, how can I automatically fill-in the upload body? I am able to post the any test I paste in the upload body field, but I would like to fill in automatically the text of the upload body, with the output of an attribute manager.


Using HTTP caller, how can I automatically fill-in the upload body? I am able to post the any test I paste in the upload body field, but I would like to fill in automatically the text of the upload body, with the output of an attribute manager.

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

When you open the "Upload Body" text editor, you can double click in the attributes on the left side to insert them.

2023-03-22_16h16_44


Unfortunately, I cannot get results. I am trying to upload 4 columns of data with +100 rows. When I do as you suggest, I manage to upload one row only. Do you have any advise on the text edition?

 

Thanks a million Niels!


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • March 23, 2023

If you have 100 features with 4 attributes (imo,mmsi,ship_name,call_sign) use StringConcatenator or

AttributeManager or AttributeCreator to concatenate them in a single attribute then in an Aggregator select the concatenated attribute in Attributes to Concatenate (and set the necessary Separator Character - ENTER/LF).

The result will be your Upload Body string. Or at least part of it.

You can also type in your Content Type as text/csv instead of setting it via Header


Thank you all! I am still fine tuning to get the desired results, but your answers unblocked my workspace.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings