i have a table of 6 fields . i am requesting the data with GET request so that i want to show only 3 fields from the table. How can i do that?
Discussion posts and replies are publicly visible
Something like this
docs.appian.com/.../Query_Recipes.html
in the image there is .data.color. it is working fine because we are trying to return only single field. but if i want to return 2 or 3 fields what should i do?
Add more fields to the fields parameter and reduce the last line to just ".data" to return a list of data structures.
can u please explain it briefly. i am newly working on Web API
When you create a new Web API, there is an example to return the data for a record. Did you try this?
Can you share your code?
You should be able to add the "selection" parameter inside of your a!query() function to specify which fields should be returned. Try adding something like this:
selection: { a!queryColumn(field: "field_one"), a!queryColumn(field: "field_two"), a!queryColumn(field: "field_three") }