46
Views
3
Comments
Solved
Trying to create a object/structure as payload for REST API POST method
Question
Service Studio Version
11.54.36 (Build 62983)

I have a form which contains various fields like normal text inputs, dropdowns, etc.

I am trying to create a object using all the variables so that it can be passed as a payload for my REST API POST method.

Something like this: (Object variable's expression)

{

"field1" : variable1,

"field2" : {data: variable2},

"field3" : [variable3]

}

Is this possible in OutSystems or how to achieve this task ?


Edit 1:

I tried creating a entity with the payload structure, but the attributes don't support list text data type.

2023-11-22 10-51-50
Jozy Sohail
Solution

Hi Gowrisankar,

Yes it is possible in outsystems by creating the structures.
you can found structures in data tab 

Please let me know if you need any more guidance,

Hope it helps,

Thanks

UserImage.jpg
Gowrisankar JG

Thank you !!

2023-11-22 10-51-50
Jozy Sohail

Hi @Gowrisankar JG ,

If my suggestion solved your problem please mark it as a solution so it will easy for our fellow community members to search for same solution.

Thanks.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.