WEBContactRequestGetPriorities
| Initial Build | 2008.01 |
| xWeb | Web Method |
| Response Type | XML results |
The WEBContactRequestGetPriorities web method gets a list of customer request priorities. The priority codes are used to set values in the cor_crp_code element in the request of WEBContactRequestInsert.
Parameters
None.
Response
XML Results
The fields in the response are:
| Name | Description | Datatype | Notes |
|---|---|---|---|
| crp_key | Primary Key | string (in guid format) | |
| crp_code | Priority Code | string |
Sample Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<ns:Token>6e9b1f2e-a3ab-4a8f-8590-534c9ff54406</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBContactRequestGetPriorities/>
</soapenv:Body>
</soapenv:Envelope>
Sample Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>6e9b1f2e-a3ab-4a8f-8590-534c9ff54406</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<WEBContactRequestGetPrioritiesResponse xmlns="http://www.avectra.com/2005/">
<WEBContactRequestGetPrioritiesResult>
<Results recordReturn="4">
<Result>
<crp_key>99d5c3da-e772-4c3a-868e-7cb21d338c8a</crp_key>
<crp_code>Critical</crp_code>
</Result>
<Result>
<crp_key>659182f4-272f-401f-b391-c07aaf873e6a</crp_key>
<crp_code>High</crp_code>
</Result>
<Result>
<crp_key>cb50c561-efd9-461b-bc76-d23acaa8ce4b</crp_key>
<crp_code>Low</crp_code>
</Result>
<Result>
<crp_key>1eb0e3cf-b3a6-479a-a18b-aa41c638d87e</crp_key>
<crp_code>Medium</crp_code>
</Result>
</Results>
</WEBContactRequestGetPrioritiesResult>
</WEBContactRequestGetPrioritiesResponse>
</soap:Body>
</soap:Envelope>
JSON Method
POST /xWeb/JSON/WEBContactRequestGetPriorities
DATA: JSON
{
"WEBContactRequestGetPriorities": null
}
SAMPLE RESULT
HTTP STATUS: 200
DATA: JSON
{
"Results": {
"@recordReturn": "37",
"Result": [
{
"crp_key": "010e9fbc-df2d-4ae8-b2b7-6c8989cc74a8",
"crp_code": "1032"
},
{
"crp_key": "2d986cb5-a3f4-49f3-b67f-614f4eb3a157",
"crp_code": "2014.01 RP"
},
{
"crp_key": "56903a48-d3e4-4dee-93d3-516534366a22",
"crp_code": "alex_test"
},
{
"crp_key": "53301d0c-0106-4f4b-8eff-55c5769c206c",
"crp_code": "Alexandra"
},
{
"crp_key": "99d5c3da-e772-4c3a-868e-7cb21d338c8a",
"crp_code": "Critical"
},
{
"crp_key": "fddc717a-65de-4551-8699-dd79e042007c",
"crp_code": "cs236QW2"
},
{
"crp_key": "707efab2-b585-4ce2-9449-907533a9906f",
"crp_code": "cs2lOEFM"
},
{
"crp_key": "796bcecc-2694-4f2e-8893-eeaf31ebd80e",
"crp_code": "cs2T3F1w"
},
{
"crp_key": "ee0cca2b-a4d0-4ec8-a522-b9710d4c29f7",
"crp_code": "dag prio01"
},
{
"crp_key": "0529bbdd-6eca-4c07-9c38-f6472faf1ba6",
"crp_code": "dag prio02"
},
{
"crp_key": "659182f4-272f-401f-b391-c07aaf873e6a",
"crp_code": "High"
},
{
"crp_key": "da10a6c1-08ce-4d4f-9008-e6374a2a3c9f",
"crp_code": "High15KOoj"
},
{
"crp_key": "9a372008-17bb-4a4e-9ed0-5ec4814a9cc5",
"crp_code": "High2vFR9D"
},
{
"crp_key": "c03b8230-3ea6-4044-a0df-f3347d91cd0d",
"crp_code": "High56HkLL"
},
{
"crp_key": "94e673c9-7265-47da-83ef-cf6627d1cf4e",
"crp_code": "High9wmfFs"
},
{
"crp_key": "57fa319d-73f2-4ee5-b3ea-6b9a11e460d3",
"crp_code": "HighA88ykY"
},
{
"crp_key": "a04fc779-155e-48bd-9fbd-4c0b56fd79bf",
"crp_code": "HighA9XUt3"
},
{
"crp_key": "2a0c1d6b-e717-4ed2-b94a-70bf5e35d5a5",
"crp_code": "HighgdxXDy"
},
{
"crp_key": "dfa7e79d-9ccd-4273-8bb0-29773cda3fcb",
"crp_code": "HighH0JDIw"
},
{
"crp_key": "f64f1b15-16a5-4022-acc6-b810980e08e5",
"crp_code": "Highh6m3V6"
},
{
"crp_key": "45cbf65d-25c2-47c5-8a4d-186db0d1f941",
"crp_code": "Highhf6HWv"
},
{
"crp_key": "8cec594d-d5e6-4d7f-b47a-1c2f0884f174",
"crp_code": "HighirdacQ"
},
{
"crp_key": "ef9f2685-c8de-4551-9edd-53e3bdab5feb",
"crp_code": "HighJ4Y1ax"
},
{
"crp_key": "e199dcf9-5125-4a5b-bd2f-c3d66f381e9b",
"crp_code": "HighJoMWk2"
},
{
"crp_key": "29a29cfb-ea63-4a55-a10c-dbcf495dd389",
"crp_code": "HighKoE4PW"
},
{
"crp_key": "d2296ae9-3e21-4f9b-b8d6-325ed99cde92",
"crp_code": "HighKqUKXS"
},
{
"crp_key": "6aae2cfc-fd3d-4119-b52a-d5bb6fbc0364",
"crp_code": "HighpZR8bF"
},
{
"crp_key": "1758ee64-4827-4c0b-b8b7-d436cccc3cbb",
"crp_code": "HighrEoYtb"
},
{
"crp_key": "9c2420e3-b6af-44fd-857d-d4a16b15d6fe",
"crp_code": "HightxMAuf"
},
{
"crp_key": "4b0d506c-3ab7-414f-8990-99cc5604273a",
"crp_code": "Highvs3z7w"
},
{
"crp_key": "049ca8be-e213-481e-a543-042576d33b65",
"crp_code": "HighYYgZxg"
},
{
"crp_key": "cb50c561-efd9-461b-bc76-d23acaa8ce4b",
"crp_code": "Low"
},
{
"crp_key": "1eb0e3cf-b3a6-479a-a18b-aa41c638d87e",
"crp_code": "Medium"
},
{
"crp_key": "f3ea3910-ed15-4148-a059-8b55b3ae4eb4",
"crp_code": "MM - High"
},
{
"crp_key": "7f2efead-309f-4dab-8de7-4bc56d2eff39",
"crp_code": "Normal"
},
{
"crp_key": "8864e139-c827-470e-8a97-8d4cb59ea6fa",
"crp_code": "RS-Nopri"
},
{
"crp_key": "f0df6176-b892-4943-bc2d-eeb8b4c4ade2",
"crp_code": "urgent"
}
]
}
}
Related Web Methods
Related Functionality
Recommendations
This data rarely changes. Therefore we recommend you cache these results and get a new list on a regular interval, especially in a high-traffic application that calls this method frequently.