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

Need to set status short closed in service ticket C4C through SDK action code

former_member690694
Participant
0 Kudos
224

Dear Team,,

I need to set status short closed and i have passed short closed status value code in sdk code. but when i am calling my action through workflow rule then status getting set in -progress instead of short closed.

As i have tried to set manually through before save method then it's working fine but when we tried to call action/sdk script code through workflow rule then it's setting in-progress Z1 instead of Z5- Short closed.

Could you please help me in it. is it because of standard status something or how to handle it. PFB my action code for it.

var sender this.ServiceRequestInteraction.OrderByDescending(n=>n.SystemAdministrativeData.CreationDateTime).GetFirst().MessageFromParty; var CustomerEmailID = this.ZEMailOData.content;

if (sender.IsSet())

{ var fromid = sender.EmailURI.Substring(0);

if(!( fromid == CustomerEmailID ))

{

this.ServiceTerms.ServiceRequestUserLifeCycleStatusCode = "Z5"; "" Z5 for short closed in system but setting Z1 with this line code...."""

}

Thanks and Regards,

MD.

Accepted Solutions (0)

Answers (0)