Batch Query Update Items operation

The Batch Query Update Items operation updates fields in the BMC Remedy Action Request (AR) System datastore with a new value for each item in the XML document.

The following table describes the input elements for the Batch Query Update Items operation:

Input elements for the Batch Query Update Items operation

Element

Description

Required

<adapter name>

Specifies the name of the adapter in the adapter configuration that is used to execute the operation

Default value: ARSAdapter

No

<items>

Specifies the XML document containing the elements required to update all the records matching the query for the specified fields in the BMC Remedy AR System schema

Note

You must specify values for each field required by BMC Remedy AR System to update a complete record.

Yes

The following figure shows an XML sample of the input elements for the Batch Query Update Items operation:

<items> XML for the input elements for the Batch Query Update Items operation


<items>
      <item>
        <field-id>xxx</field-id>
        <schema>Alert Events</schema>
        <id>Batch process test-1</id>
        <fields>
          <field name="Source"></field>
          <field name="Request" space="preserve"></field>
        </fields>
      </item>
      <item>
        <schema>Alert Events</schema>
        <field-id>Alert Text</field-id>
        <id>Batch process test-2</id>
        <fields>
          <field name="Source"></field>
          <field name="Request" space="preserve"></field>
        </fields>
      </item>
</items>

The following table describes the output element for the Batch Query Update Items operation:

Output element for the Batch Query Update Items operation

Output

Description

<adapter response>

Specifies the XML document returned by the adapter request executed on BMC Remedy AR System

The following figure illustrates an XML sample of the output elements for the Batch Update Items operation:

XML sample for output element for the Batch Update Items operation


<query-update-action-result>
  <entries>
    <entry>
      <query>'xxx'="Batch process test-1"</query>
      <entry-count>yy</entry-count>
    </entry>
    <entry>
      <query>'Alert Text'="Batch process test-2"</query>
      <entry-count>yy</entry-count>
    </entry>
  </entries>
</query-update-action-result>
Was this page helpful? Yes No Submitting... Thank you

Comments