Skip Navigation
Expand
Selectively import configuration elements from Validate Package page in Element Manager
Answer ID 12611   |   Last Review Date 04/20/2023

How do I unselect unwanted or elements with error from Validate Package in Element Manager?

Environment:

Oracle B2C Service Browser User Interface (BUI), Element Manager

Resolution:

Currently Element Manager does not allow to select or unselect elements from a package during import process. If there is an unwanted element or an element with error in the package, the admins have to discard the package and create a new package without the unwanted element or element with error from the source site.

Element Manager now allows the admins to remove the unwanted elements or elements with error from the ‘Validate Package’ page. A new column ‘Selection’ is added and provides the ability to unselect (remove) the elements with error or unwanted elements. Once the admins ‘Apply Changes’ the unselected elements and its dependent elements are removed from the list of the elements.

The same capability is available via Element Manager REST APIs. The PATCH operation to import a package should have the attribute isExcludeItemsRequest to true and should pass the list of element ids and type of the element to be removed from the package to the attribute excludedItems.

Click the plus sign  to expand example.

Request Headers:
{
"USERSESSION": "{{USERSESSION-Token}}",
"API_VERSION": "1",
                    "Content-Type": "application/json"
}
Request Body:
{
    "action": "import",
    "id": 100044,
    "isExcludeItemsRequest": "true",
    "excludedItems": [
        {
            "id": 1370,
            "type": "BusinessRule"
        },
        {
            "id": 1372,
            "type": "ObjectEventHandler"
        },
        {
            "id": 1374,
            "type": "StandardText"
        }
    ]
}
Response Body:

{

    "id": 100044,

    "name": "test-api",

    "href":

"https://mysite.example.com/AgentWeb/api/elementmanager/import/EMPackages/100044"

}

 

 

Additional Information:

Answer ID 12584: Remove configuration elements from Review Package page in Element Manager