XML port - create value list

KNOKNO Member Posts: 2
I have a couple of times had the need to create a simple value list with an XML port.

A sample output would belike is:
<TestAPI>
..<brandId>622b300e4b18948f3e71679a</brandId>
.. <productIds>
....<productId>9702820189648</productId>
....<productId>9702820189649</productId>
..</productIds>
</TestAPI>

Is there any way, that we can get an value output included in an XML port line with the "Source Type" = Table ?

If yes, then I can see how the simple list could be produced with something like this:
spzcmmwk8n0d.png

Answers

  • ftorneroftornero Member Posts: 524
    Hello @KNO,

    You need to change the XMLport a little.

    productIds-> Source Type = Table
    productId->Source Type = Field

    Regards
  • KNOKNO Member Posts: 2
    edited 2023-06-08
    Hi Tornero,
    Sorry, but your suggestion will generate a different XML strukturer.
    That dos not solve the required output.
    Br KNO.
  • ftorneroftornero Member Posts: 524
    Hello @KNO,

    Yes, you are right, the structure is different.

    I am afraid that with an XMLPort is not possible to get what you want.

    In this case you need to create the XML with code.

    Regards.
Sign In or Register to comment.