on ‎2020 Feb 17 2:03 PM
Hi,
In Fine tuning of a ticket, I have added a few custom status (say Z1, Z2 and so on). The requirement is to read the custom status code of the ticket in an After Modify event. The custom status (Z1, Z2, etc) have been mapped to both In Process and Completed in the fine tuning.
Apparently, the LifeCycleStatusCode in a ticket is as follows:
Open - 1
In Process - 2
Completed - 3
Closed - 4.
Hence, when I use the below code,
var sr = ServiceRequest.Retrieve(this.ID);
var status = sr.Status.ServiceRequestLifeCycleStatusCode;
I am able to retrieve only LifeCycle Status Code and not the Custom Code defined during fine tuning.
Is there any way to retrieve the custom code?
Any response would be highly appreciated.
Thanks,
Krishna
Request clarification before answering.
Hi,
Yes you can retrieve even the custom status using following path:
ServiceRequest-->ServiceTerms-->ServiceRequestUserLifeCycleStatusCode.
Thanks
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.