web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

statecode attribute of incident entity - change the option label

(0) ShareShare
ReportReport
Posted on by 395

Hello everyone,

I'm curious to find out how it would be possible to change the option labels of the statecode of the incident entity.

As far as I know that is not possible (I'm aware of the changes possible in the statuscode) but Microsoft mentions that it is actually possible.

I'm referring here on a msdn article:

http://msdn.microsoft.com/en-us/library/dn689032.aspx

statecode

Status

Represents the state of the record. For custom entities this is Active or Inactive. The Incident (case) entity uses ActiveResolved, and Canceled. You can’t add more state options but you can change the option labels.

I couldn't find any way to accomplish that through the GUI of crm, maybe somebody achieved that programmaticaly in a supported way?

Thanks in advance

John

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Royal King Profile Picture
    27,686 on at

    you could c# code to update label of the statecode in case entity .

    UpdateStateValueRequest updateStateValue = new UpdateStateValueRequest
    {
    AttributeLogicalName = "statecode",
    EntityLogicalName = "incident",
    Value = 1, // Resolved
    Label = new Label("MyResolved", 1033)
    };

    UpdateStateValueRequest updateStateValue = new UpdateStateValueRequest
    {
    AttributeLogicalName = "statecode",
    EntityLogicalName = "incident",
    Value = 0, // Active
    Label = new Label("MyActive", 1033)
    };

    UpdateStateValueRequest updateStateValue = new UpdateStateValueRequest
    {
    AttributeLogicalName = "statecode",
    EntityLogicalName = "incident",
    Value = 2, // Cancelled
    Label = new Label("MyCancelled", 1033)
    };

    service.Execute(updateStateValue);

  • Community Member Profile Picture
    on at

    https://community.dynamics.com/crm/f/117/t/178883 Can be done through Crm translations.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans