Search items for export
post
/AgentWeb/api/elementmanager/search/EMElements
Gives list of filtered items
Request
Header Parameters
-
API_VERSION(optional): string
API VERSION for the headerDefault Value:
1
Allowed Values:[ "1" ]
-
USERSESSION: string
Authentication token for the header
Specify the parameters on items to be searched
Root Schema : EMSearchParam
Type:
Show Source
object
-
filter(optional):
object EMFilter
-
limit(optional):
integer
-
searchString(optional):
string
-
searchTypes(optional):
array searchTypes
-
startingIndex(optional):
integer
-
updatedTime(optional):
object EMFilter
Example:
{
"limit":100,
"searchTypes":[
"Report",
"Workspace"
],
"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"
}
}
]
}
}
Nested Schema : EMFilter
Type:
Show Source
object
-
children(optional):
array children
-
filterOperator:
string
Allowed Values:
[ "and", "or", "none", "between", "lessThan", "greaterThan" ]
-
filterTerm(optional):
object EMFilterTerm
Nested Schema : searchTypes
Type:
Show Source
array
-
Array of:
string
Allowed Values:
[ "Report", "Workspace", "Profile", "Interface", "AddIn", "NavigationSet", "CustomObject", "SystemAttribute", "StandardText", "Variable", "ObjectEventHandler", "WorkspaceScript", "ExternalObject", "CustomScript" ]
Nested Schema : EMFilterTerm
Type:
Show Source
object
-
condition:
string
Allowed Values:
[ "isNotNull", "isNull", "isEqual", "isNotEqual", "isIn", "isNotIn", "between", "greaterThan", "lessThan" ]
-
name:
string
Allowed Values:
[ "Id", "ParentId", "label", "typeId" ]
-
value:
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 } ] } ] }