Search items for export

post

/AgentWeb/api/elementmanager/search/EMElements

Gives list of filtered items

Request

Header Parameters
Body ()
Specify the parameters on items to be searched
Root Schema : EMSearchParam
Type: object
Show Source
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: object
Show Source
Nested Schema : searchTypes
Type: array
Show Source
  • Allowed Values: [ "Report", "Workspace", "Profile", "Interface", "AddIn", "NavigationSet", "CustomObject", "SystemAttribute", "StandardText", "Variable", "ObjectEventHandler", "WorkspaceScript", "ExternalObject", "CustomScript" ]
Nested Schema : children
Type: array
Show Source
Nested Schema : EMFilterTerm
Type: object
Show Source
  • Allowed Values: [ "isNotNull", "isNull", "isEqual", "isNotEqual", "isIn", "isNotIn", "between", "greaterThan", "lessThan" ]
  • Allowed Values: [ "Id", "ParentId", "label", "typeId" ]
Back to Top

Response

Supported Media Types

200 Response

Search results of items to be exported
Body ()
Root Schema : EMSearchResult
Type: object
Show Source
Nested Schema : resultSet
Type: array
Show Source
Nested Schema : EMResultSet
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : EMSearchResultItem
Type: object
Show Source
Nested Schema : children
Type: array
Show Source
Nested Schema : EMIdNamePair
Type: object
Show Source
Back to Top

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
                }
            ]
        }
    ]
}
Back to Top