<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Batch response in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425487#M1997568</link>
    <description>&lt;P&gt;Thanks, I can read the message through MessageManager now, but I have a new problem here, I need to access numericSeverity from the sap-message, cause I need this property to determine whether if it is a success message or an error message, do you how to do this?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 02:29:43 GMT</pubDate>
    <dc:creator>former_member790427</dc:creator>
    <dc:date>2022-04-20T02:29:43Z</dc:date>
    <item>
      <title>Batch response</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425480#M1997561</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;I am requested OData service with the batch request, which includes multiply POST requests in separated changesets.&lt;BR /&gt;&lt;BR /&gt;How it looks:&lt;BR /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;--batchContent-Type: multipart/mixed; boundary=changeset--changesetContent-Type: application/httpContent-Transfer-Encoding: binaryPOST Entity HTTP/1.1Content-type: application/json{   &amp;lt;JSON BODY&amp;gt;}--changeset----batchContent-Type: multipart/mixed; boundary=changeset--changesetContent-Type: application/httpContent-Transfer-Encoding: binaryPOST Entity HTTP/1.1
Content-type: application/json

{
   &amp;lt;JSON BODY&amp;gt;
}--changeset----batch--&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;BR /&gt;Response structure:&lt;BR /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;--7070D8610D18DD62D307574F0D9BD4A30Content-Type: multipart/mixed; boundary=7070D8610D18DD62D307574F0D9BD4A31Content-Length:      7416--7070D8610D18DD62D307574F0D9BD4A31Content-Type: application/httpContent-Length: 7247content-transfer-encoding: binaryHTTP/1.1 201 CreatedContent-Type: application/atom+xml;type=entryContent-Length: 6975dataserviceversion: 2.0location: &amp;lt;path&amp;gt;&amp;lt;xml entry&amp;gt;--7070D8610D18DD62D307574F0D9BD4A31----7070D8610D18DD62D307574F0D9BD4A30Content-Type: multipart/mixed; boundary=7070D8610D18DD62D307574F0D9BD4A31Content-Length:      7416--7070D8610D18DD62D307574F0D9BD4A31Content-Type: application/httpContent-Length: 7247content-transfer-encoding: binaryHTTP/1.1 201 CreatedContent-Type: application/atom+xml;type=entryContent-Length: 6975dataserviceversion: 2.0location: &amp;lt;path&amp;gt;&amp;lt;xml entry&amp;gt;--7070D8610D18DD62D307574F0D9BD4A31----7070D8610D18DD62D307574F0D9BD4A30--&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;QUESTIONS&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;1)Is it possible to parse the response body to an array of separated objects?&lt;BR /&gt;&lt;BR /&gt;2)Are the any options to define key, which returns in response(my case: 7070D8610D18DD62D307574F0D9BD4A30, 7070D8610D18DD62D307574F0D9BD4A31)&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 11:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425480#M1997561</guid>
      <dc:creator>former_member674253</dc:creator>
      <dc:date>2021-06-02T11:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Batch response</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425481#M1997562</link>
      <description>&lt;P&gt;Hi Yauhen,&lt;/P&gt;&lt;P&gt;What language are you proposing to use to build the client application?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 21:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425481#M1997562</guid>
      <dc:creator>evanireland</dc:creator>
      <dc:date>2021-06-02T21:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Batch response</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425482#M1997563</link>
      <description>&lt;P&gt;Hi  Evan,&lt;/P&gt;&lt;P&gt;I am going to use English.&lt;BR /&gt;&lt;BR /&gt;Thank for your response.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 12:01:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425482#M1997563</guid>
      <dc:creator>former_member674253</dc:creator>
      <dc:date>2021-06-03T12:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Batch response</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425483#M1997564</link>
      <description>&lt;P&gt;I'm facing the same problem, seems like SAPUI5 does not have a specific API to deal with it, so sad.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2038741-screenshot-2022-04-14-103525.png" /&gt;&lt;/P&gt;&lt;P&gt;Here I need to read this message.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 09:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425483#M1997564</guid>
      <dc:creator>former_member790427</dc:creator>
      <dc:date>2022-04-14T09:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Batch response</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425484#M1997565</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;tonyhallow&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;you can analyse the responses from the collection oData.__batchResponses&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;this.getModel().submitChanges({
  groupId: 'changes',
  success: oData =&amp;gt; {
if (oData.__batchResponses.some(oResult =&amp;gt; oResult.response &amp;amp;&amp;amp; oResult.response.statusCode === '400')) {&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;RegardsThorsten</description>
      <pubDate>Thu, 14 Apr 2022 09:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425484#M1997565</guid>
      <dc:creator>ThorstenHoefer</dc:creator>
      <dc:date>2022-04-14T09:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Batch response</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425485#M1997566</link>
      <description>&lt;P&gt;Hi, I did something like this, but it does not work.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2038748-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 10:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425485#M1997566</guid>
      <dc:creator>former_member790427</dc:creator>
      <dc:date>2022-04-14T10:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Batch response</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425486#M1997567</link>
      <description>&lt;P&gt;Hi Zoe,&lt;/P&gt;&lt;P&gt;I assume you using this Method?&lt;BR /&gt;&lt;A href="https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.v4.ODataContextBinding%23methods/execute"&gt;sap.ui.model.odata.v4.ODataContextBinding - API Reference - Demo Kit - SAPUI5 SDK (ondemand.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you want to retrieve the message, you can check the Message Model&lt;/P&gt;&lt;P&gt;&lt;A href="https://sapui5.hana.ondemand.com/1.36.6/docs/guide/8956f0a223284d729900ebad4ca88356.html"&gt;Message Model (ondemand.com)&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;			// set message model
			oMessageManager = sap.ui.getCore().getMessageManager();
			this.getView().setModel(oMessageManager.getMessageModel(), "message");&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://sapui5.hana.ondemand.com/sdk/#/entity/sap.ui.core.message.MessageManager/sample/sap.ui.core.sample.MessageManager.BasicODataMessages"&gt;Basic OData Messages - Samples - Demo Kit - SAPUI5 SDK (ondemand.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 11:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425486#M1997567</guid>
      <dc:creator>ThorstenHoefer</dc:creator>
      <dc:date>2022-04-14T11:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Batch response</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425487#M1997568</link>
      <description>&lt;P&gt;Thanks, I can read the message through MessageManager now, but I have a new problem here, I need to access numericSeverity from the sap-message, cause I need this property to determine whether if it is a success message or an error message, do you how to do this?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 02:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-response/m-p/12425487#M1997568</guid>
      <dc:creator>former_member790427</dc:creator>
      <dc:date>2022-04-20T02:29:43Z</dc:date>
    </item>
  </channel>
</rss>

