Skip to Content

HANA OData Service Insert Array


Team, is there a way to send array of values to a "POST" method for HANA OData service? I, like everyone else, followed Thomas' youtube video (very Helpful. Thanks!) and was able to successfully insert 1 record into the database using the code shown in the attachment.

I was able to create a Batch entry and do multiple Post Methods as well. However, record comes separately to my "Create" procedure that I have mentioned in the OData Service. I tried to use the json format, shown in the attachment, to enter array values but I get an error "Serialized resource has a an missing value for a member".

Any assistance in this matter will be greatly appreciated!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Apr 01, 2015 at 09:46 AM

    Hey Vasant,

    i think, that this is not possible to send a array to a xsodata-service and insert all records.

    But you can write a xsjs-service.

    You can send (via POST) a JSON-Object (with one or more records) to the service and insert all records into a table.

    A few days ago, i wrote a xsjs that gets json-data via POST method and inserts it into a table by using the hdb.procedure api.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.