Search items for export
post
/AgentWeb/api/elementmanager/search/EMElements
Gives list of filtered items
Request
Header Parameters
-
API_VERSION: string
API VERSION for the headerDefault Value:
1
Allowed Values:[ "1" ]
-
USERSESSION(required): string
Authentication token for the header
Specify the parameters on items to be searched
Root Schema : EMSearchParam
Type:
Show Source
object
-
filter:
object EMFilter
-
limit:
integer
-
rulePath:
string
-
searchString:
string
Full or part of the name of the item to be searched for
-
searchTypes:
array searchTypes
Type of the item to be searched
-
startingIndex:
integer
-
updatedTime:
object EMFilter
Example:
{
"limit":100,
"searchTypes":[
"Report",
"Workspace",
"BusinessRule"
],
"searchString":"%",
"startingIndex":0,
"filter":{
"filterOperator":"and",
"children":[
{
"filterOperator":"none",
"filterTerm":{
"name":"ParentId",
"condition":"isEqual",
"value":100485
}
},
{
"filterOperator":"none",
"filterTerm":{
"name":"Id",
"condition":"isGreater",
"value":101435
}
}
]
},
"updatedTime":{
"filterOperator":"between",
"children":[
{
"filterOperator":"none",
"filterTerm":{
"name":"updatedTime",
"value":"2021-02-01T00:00:00.000Z"
}
},
{
"filterOperator":"none",
"filterTerm":{
"name":"updatedTime",
"value":"2021-06-02T00:00:00.000Z"
}
}
]
},
"rulePath":"Incident/States/%"
}
Nested Schema : EMFilter
Type:
Show Source
object
-
children:
array children
-
filterOperator(required):
string
Allowed Values:
[ "and", "or", "none", "between", "lessThan", "greaterThan" ]
-
filterTerm:
object EMFilterTerm
Nested Schema : searchTypes
Type:
array
Type of the item to be searched
Show Source
-
Array of:
string
Allowed Values:
[ "Report", "Workspace", "Profile", "Interface", "AddIn", "NavigationSet", "CustomObject", "SystemAttribute", "StandardText", "Variable", "ObjectEventHandler", "WorkspaceScript", "ExternalObject", "CustomScript", "CustomizableMenu", "Product", "Category", "Disposition", "CustomBusinessEvent" ]
Nested Schema : EMFilterTerm
Type:
Show Source
object
-
condition(required):
string
Allowed Values:
[ "isNotNull", "isNull", "isEqual", "isNotEqual", "isIn", "isNotIn", "between", "greaterThan", "lessThan" ]
-
name(required):
string
Allowed Values:
[ "Id", "ParentId", "label", "typeId" ]
-
value(required):
string
Response
Supported Media Types
- application/json
200 Response
Search results of items to be exported
Examples
The following example shows how to search for EM packages using the
searchString
parameter.
cURL Command Example
curl -X POST https://mysite.example.com/AgentWeb/api/elementmanager/search/EMElements -H "USERSESSION: feihg98GnT7i" -H "API_VERSION: 1" -H "Content-Type: application/json" -d "{ \"limit\": 10, \"searchString\": \"AutomationServerAddIn\", \"startingIndex\": 0 }"
Request Body Example
The following shows an example of the request body in JSON format.
{ "limit": 10, "searchString": "AutomationServerAddIn", "startingIndex": 0 }
Response Body Example
The following shows an example of the response body in JSON format.
{ "description": "Search results", "resultSet": [ { "type": "AddIn", "hasMoreItems": false, "items": [ { "id": 100000, "type": { "id": 271, "name": "AddIn" }, "name": "Agent Desktop Add-Ins", "level": 1, "hasMoreChildren": true, "sequence": 0, "children": [ { "id": 3, "type": { "id": 0, "name": "DesktopAddIn" }, "name": "AutomationServerAddIn.zip", "level": 2, "hasMoreChildren": false, "sequence": 2, "children": [], "isParent": false } ], "isParent": true } ] } ] }