List of String to String with line break

HI ,

I have a requirement where I need to pass Sting values with separate Line to API .

here is the  List of Sting with 4 items.

“28978937982932090”

“28978937982932091”

“28978937982932092”

“28978937982932093”

I want to send it as single string with line break to API 

“28978937982932090

28978937982932090

28978937982932090

28978937982932090”

Can you help me with this scenario.

Thanks in advance

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Why do you need to transmit them "with line break" as opposed to just transmitting a list and letting the remote end deal with the list in whatever way it needs?  The standard for transmitting lists via a simple single string would be JSON, and you can very easily transform a list of string items to JSON in Appian using a!toJson().  JSON is a standardized format so the remote end should be able to unpack the list with arbitrary difficulty and treat it however is needed.

Reply
  • 0
    Certified Lead Developer

    Why do you need to transmit them "with line break" as opposed to just transmitting a list and letting the remote end deal with the list in whatever way it needs?  The standard for transmitting lists via a simple single string would be JSON, and you can very easily transform a list of string items to JSON in Appian using a!toJson().  JSON is a standardized format so the remote end should be able to unpack the list with arbitrary difficulty and treat it however is needed.

Children