125
Views
1
Comments
I want to pass a json into my api, but have it as text rather than JSON in outsystems
Application Type
Traditional Web, Mobile, Reactive
Service Studio Version
11.54.36 (Build 62983)
Platform Version
11.25.0 (Build 41743)

I have a API, where I want to pass a JSON into it as, text since the JSON might change based on values I recieve I want it dynamic and not fixed as a structure, but since outsystems takes any JSON in request and converts it into Structure I want to pass an json there and not a structure. how can I fix this ?

What I did:


What happened:

What I need:
is that the datum list must be a text value but be sent in the action itself as JSON but not structure so I have freedom to modify the keys and not just the values.
Please help me with this as I am on a very short deadline

2023-02-20 05-20-57
Nam Nguyen

Hi Faizan Ul Haq,
You need to right click to you method -> add input parameter -> Change the Send In property to Body


Also , you need to change Request Format property to Text/plain




Cheers,

Nam



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