WEBContactRequestGetRequestTypes

 

WEBContactRequestGetRequestTypes

Initial Build 2008.01
xWeb Web Method
Response Type XML results

 

This method can be used to get the customer request Activity Type codes. The values of rat_code in the response of the method will be used to set the value of the cor_rat_code in the request of WEBContactRequestInsert.

Parameters

None

Response

XML Results. The fields in the response are:

Name Description Datatype
rat_key Primary Key string (in guid format)
rat_code Activity Type 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:WEBContactRequestGetRequestTypes/>
</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>
<WEBContactRequestGetRequestTypesResponse xmlns="http://www.avectra.com/2005/">
<WEBContactRequestGetRequestTypesResult>
<Results recordReturn="2">
<Result>
<rat_key>eefc7f2c-a68e-4a45-89df-0f4993f5bbd2</rat_key>
<rat_code>Membership</rat_code>
</Result>
<Result>
<rat_key>ggfc7f2c-a68e-4a45-89df-0f4993f5bbd2</rat_key>
<rat_code>Events</rat_code>
</Result>
</Results>
</WEBContactRequestGetRequestTypesResult>
</WEBContactRequestGetRequestTypesResponse>
</soap:Body>
</soap:Envelope>

 

JSON Method

POST /xWeb/JSON/WEBContactRequestGetRequestTypes

DATA: JSON
{
    "WEBContactRequestGetRequestTypes": null
}

SAMPLE RESULT
HTTP STATUS: 200
DATA: JSON
{
    "Results": {
        "@recordReturn": "6",
        "Result": [
            {
                "rat_key": "52ce3e2d-4335-43cf-9739-110b5b5e7cb4",
                "rat_code": "General"
            },
            {
                "rat_key": "e91662d7-ee29-4f08-a772-eed78a5f1880",
                "rat_code": "Notify Staff"
            },
            {
                "rat_key": "f721106a-5bb7-4390-9980-413e15f521b2",
                "rat_code": "Online"
            },
            {
                "rat_key": "5d9837f4-52d8-479c-a37d-96f3524b9bda",
                "rat_code": "Organization Change Request"
            },
            {
                "rat_key": "8e103aaa-08e0-4b1e-b565-3918d857bfc4",
                "rat_code": "Send Membership Information"
            },
            {
                "rat_key": "c97d5035-db20-4efa-a009-f334fe5c163f",
                "rat_code": "Web Request"
            }
        ]
    }
}

 

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.
  • Combine this data with the data returned by WEBContactRequestGetRequestTypeReasons.
Was this article helpful?
0 out of 0 found this helpful