Find Objects process

The Find Objects process retrieves the following objects from the BMC Remedyforce application:

  • Change
  • Incident
  • Task
  • Configuration item


The following table describes the input parameters for the Find Objects process.

Process inputs for the Find Objects process

Input

Description

Required

<adapter name>

Specifies the name of the adapter

Valid value: RemedyforceActor (default)

No

<objects>

Specifies the objects XML to find the required object or multiple objects

Note

When you search for an ID, by default, the BMC Remedyforce adapter returns the <Id> element twice in the adapter response. See the following figure for a sample adapter response with duplicate ID's.

Yes


Sample XML for the objects input parameter


<objects>
  <queryString>Select Id,Name,BMCServiceDesk__Change_Type__c,BMCServiceDesk__Change_Category__c,
BMCServiceDesk__Change_Description__c, BMCServiceDesk__Impact__c,BMCServiceDesk__Open_Date_Time__c,BMCServiceDesk__Priority__c,
BMCServiceDesk__State__c,BMCServiceDesk__Status__c,BMCServiceDesk__Urgency__c,
BMCServiceDesk__Scheduled_Start_Date__c,BMCServiceDesk__Scheduled_End_Date__c from BMCServiceDesk__Change_Request__c where Name = 'CR00000186'</queryString>
</objects>


Sample adapter response for the adapter response output parameter with duplicate <ID> element


<remedyforce-response>
  <metadata>
    <status>success</status>
  </metadata>
  <Envelope xmlns="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:sobject.partner.soap.sforce.com">
 <Body xmlns="">
  <queryResponse>
    <result xsi:type="QueryResult">
     <done>true</done>
      <queryLocator xsi:nil="true" />
      <records xsi:type="sf:sObject">
        <type>BMCServiceDesk__Change_Request__c</type>
        <Id>a1C90000000H8cLEAS</Id>
        <Id>a1C90000000H8cLEAS</Id>
        <Name>CR00000186</Name>
        <BMCServiceDesk__Change_Type__c>Normal</BMCServiceDesk__Change_Type__c>
        <BMCServiceDesk__Change_Category__c>Minor</BMCServiceDesk__Change_Category__c>
        <BMCServiceDesk__Change_Description__c>Updated Change</BMCServiceDesk__Change_Description__c>
        <BMCServiceDesk__Impact__c xsi:nil="true" />
        <BMCServiceDesk__Open_Date_Time__c>2012-06-28T08:40:09.000Z</BMCServiceDesk__Open_Date_Time__c>
        <BMCServiceDesk__Priority__c xsi:nil="true" />
        <BMCServiceDesk__State__c>true</BMCServiceDesk__State__c>
        <BMCServiceDesk__Status__c>OPENED</BMCServiceDesk__Status__c>
        <BMCServiceDesk__Urgency__c xsi:nil="true" />
        <BMCServiceDesk__Scheduled_Start_Date__c xsi:nil="true" />
        <BMCServiceDesk__Scheduled_End_Date__c xsi:nil="true" />
       </records>
      <size>1</size>
     </result>
   </queryResponse>
  </Body>
 </Envelope>
</remedyforce-response>
Was this page helpful? Yes No Submitting... Thank you

Comments