The ChangeCurrentCustomerActor
allows an agent to select a customer and make them the current customer in the Commerce Service Center global context area. This enables an agent to work on the customer and any associated tickets. This actor uses the selectCustomer
actor-chain to obtain customer information.
Additionally, this actor can be configured to present ticket disposition information. This actor is located at: /atg/svc/agent/ui/formhandlers/ChangeCurrentCustomerActor
.
Parameter | Description |
---|---|
| The ID of the customer to select. |
| If set to |
| If set to |
| If |
| If |
| Used to provide a note associated with the ticket. |
| Identifies if the ticket note is public. |
Select Customer to Work On Example
This example confirms the ticket disposition.
curl -x 127.0.0.1:8888 -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ \"customerId\" : \"480010\", \"doWarnings\":true, \"doTicketDispositionPrompt\":true, \"dispositionOption\":\"save\" }" "http://localhost:8280/rest/model/atg/svc/agent/ui/formhandlers/ ChangeCurrentCustomerActor/selectCustomer"
This example makes changes to the ticket disposition.
curl -x 127.0.0.1:8888 -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ \"customerId\" : \"480010\", \"doWarnings\":false, \"doTicketDispositionPrompt\":false, \"ticketNote\":\"Junk mail\", \"reasonCode\":\"spam\", \"dispositionOption\":\"close\" }" "http://localhost:8280/rest/model/atg/svc/agent/ui/formhandlers/ ChangeCurrentCustomerActor/selectCustomer"
The server response may be similar to this:
{ "isDiscardable": false, "allWarnings": [], "activeTicketDisposition": true }