Is Allowed

The below API is used to get work order.

Request: GET

Signature: api/mobile/IsAllowed?Token={Login_Token}&Section={Section_Name}

Sample: api/mobile/IsAllowed?Token=VomYEMiECFFyAQ3==&Section=Warehouse

Response:

{
    "Code": 1,
    "Info": "",
    "RowsAffected": 0,
    "Scalar": 31813,
    "Identity": 0,
    "RetInfo": [
        {
            "Code": "R",
            "Desc": "Read",
            "Requires": null,
            "Filter": null,
            "Enabled": true,
            "FilterList": null,
            "CanDo": true,
            "Cannot": false
        },
        {
            "Code": "C",
            "Desc": "Create",
            "Requires": "R",
            "Filter": null,
            "Enabled": true,
            "FilterList": null,
            "CanDo": false,
            "Cannot": true
        },
        {
            "Code": "U",
            "Desc": "Update",
            "Requires": "R",
            "Filter": null,
            "Enabled": true,
            "FilterList": null,
            "CanDo": false,
            "Cannot": true
        },
        {
            "Code": "D",
            "Desc": "Delete",
            "Requires": "R",
            "Filter": null,
            "Enabled": true,
            "FilterList": null,
            "CanDo": false,
            "Cannot": true
        },
        {
            "Code": "EX",
            "Desc": "Export",
            "Requires": "R",
            "Filter": null,
            "Enabled": true,
            "FilterList": null,
            "CanDo": false,
            "Cannot": true
        }
    ]
}

Things to know about this API:

    1. Token - You can use Login API to get token displayed under Info
    2. Section displays if the user has access to modify the actions:
        • WorkOrder
        • Asset
        • Entity
        • User
        • Warehouse