Skip to main content
Kinetic Community

Remedy Generic Find

Returns the request ids (field 1) and instance ids (field 179) for all records in the specified form that match the provided query.

Downloads

By downloading this file, you acknowledge that you agree to our Terms of Service

remedy_generic_find_v4.zip

Detailed Description

This handler returns the request ids (field 1) for all records in the specified form that match the provided query.  This is returned in XML format (like below) for use in loops.
 
<Request_Ids>
<RequestId>000000000000013</RequestId>
<RequestId>000000000000381</RequestId>
<RequestId>000000000002582</RequestId>
</Request_Ids>
 
It also returns the instance ids (field 179) in a similar format:

<Instance_Ids>
    <InstanceId>AG0050569A648CU5tSUAUcZMAgc8AC</InstanceId>
    <InstanceId>AG0050569A648ClZtSUAkMVNAgVcYC</InstanceId>
    <InstanceId>AG0050569A648CMZtSUAKUBMAgMrkC</InstanceId>
</Instance_Ids>
 
It also returns a count of the number of records found. It returns zero if there were no matches (not nil).

Parameters

Name Description
Remedy Form Remedy Form Name (not display name), eg. People is CTM:People
Query The query to search by

Sample Configuration

Parameter Example Configuration
Remedy Form User
Query 'Group List' LIKE "%<%=@answers['Group']%>%"

Results

Name Description
RequestIdList The request ids (field 1) of the requested records.
InstanceIdList The instance ids (field 179) of the requested records
Count Number of returned record IDs

Change Log

Version Date Description
1 05/29/2012 Initial Version
2   Added instance Id list to returned values
3 07/16/2013 Fixed bug to allow this handler to be used to access multiple different forms in the same task engine instance.
4 06/09/2014 Added count to returned values