s_stein
1
Hi all, I am building a custom app and the request to server I need to send the information in the following way
{
“568394”,
“567923”
}
The information comes from a rpc like this
{
568394,
567923
}
If I had to do this within an existing scenario, I would for example make such a formula
"{{join(split(1.
1; ","); """,""")}}"
how can I implement this in the custom app (Communication) as well?
s_stein
2
Ok, I managed to solve the problem and for the benefit of the community I will explain the solution to my problem
What is needed is to add in rpc request - a string function (tostring) as in the example here.
{
"url": "/Lists?",
"method": "GET",
"qs": {},
"body": {},
"headers": {},
"response": {
"iterate": "{{body}}",
"output": {
"label": "{{toString(item.name)}}",
"value": "{{toString(item.id)}}"
}
}
}
If you set this and choose in the select list in model, it will be sent this way
“959302”,
“959302”
Hope this helps you too in the process of building the app. If it helped, I’d love to know.
2 Likes
system
This topic was automatically closed because it's resolved or inactive. Please, start a new topic.
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.