FRAMES | NO FRAMES Description | Parameters | Examples | Response
Search Jobs (Operation)
URL http://<jobs-url>/search
Parent Resource Jobs

Description

This operation is supported from 10.1 onwards.

Performs a freeform text search and returns a set of matching job records.

The search text is matched against the following job properties:

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json
user Optional
Description: The username of the client.
text Required
Description: The text string to search for.

Example Usage

Example 1: URL for searching jobs in the "Workflow" service on sampleserver.

http://sampleserver/arcgis/rest/services/Workflow/WMServer/jobs/search?user=cjones&text=parcels

JSON Response Syntax

{
  "fields": [
    { "name": "<fieldName1>", "alias": "<fieldAlias1>", "type": <fieldType1>, "length": <fieldLength1> },
    { "name": "<fieldName2>", "alias": "<fieldAlias2>", "type": <fieldType2>, "length": <fieldLength2> },
    ...
  ],
  "rows": [
    [ "<value11>", "<value12>", "<value13>", ... ],
    [ "<value21>", "<value22>", "<value23>", ... ],
    [ "<value31>", "<value32>", "<value33>", ... ],
    ...
  ]
}

JSON Response Example

{
  "fields": [
    { "name": "JTX_JOBS.JOB_ID", "alias": "Job ID", "type": 1, "length": 4 },
    { "name": "JTX_JOBS.JOB_NAME", "alias": "Job Name", "type": 4, "length": 100 },
    { "name": "JTX_JOB_TYPES.JOB_TYPE_NAME", "alias": "Job Type Name", "type": 4, "length": 100 },
    { "name": "JTX_JOBS.ASSIGNED_TO", "alias": "Assigned To", "type": 4, "length": 50 },
    { "name": "JTX_JOBS.DESCRIPTION", "alias": "Description", "type": 4, "length": 500 },
    { "name": "JTX_JOBS.DUE_DATE", "alias": "Due Date", "type": 5, "length": 36 }
  ],
  "rows": [
    [ "12", "Job 12", "Parcel Updates", "cjones", "", "5/31/2010" ],
    [ "14", "JOB_14", "Street Data Maintenance", "GIS Analysts", "", "6/15/2010" ],
    [ "19", "Job 19", "Parcel Updates", "", "", "7/1/2010" ]
  ]
}