cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Read custom status of sap c4c ticket in CAS

krishna1502
Participant
0 Likes
759

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member226
Employee
Employee
0 Likes

Hi,

Yes you can retrieve even the custom status using following path:

ServiceRequest-->ServiceTerms-->ServiceRequestUserLifeCycleStatusCode.

Thanks

Saurabh

krishna1502
Participant
0 Likes

Hi Saurabh,
Thank You. It worked.

Answers (0)