Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to add a new state to a record

(0) ShareShare
ReportReport
Posted on by

Hi everyone. How can I add a new state to a record? I see "statecode" but there's no place to change anything.

*This post is locked for comments

  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at
    RE: How to add a new state to a record

    Hi CRM,

    Maybe you can take a look on this article:

    crmbusiness.wordpress.com/.../crm-2013-understanding-status-and-status-reason-and-be-careful-deleting-them

    And you can change it but using code:

    community.dynamics.com/.../143054

    But it is said only for some entities.

    Hope this helps

    Thanks

  • Verified answer
    Aiden Kaskela Profile Picture
    19,694 on at
    RE: How to add a new state to a record

    Hi again,

    No, I don't believe you can change the labels of the state codes the way you would with other fields. msdn.microsoft.com/.../dn689032.aspx says you can but that may be through a custom state transition (I haven't used them before though so if it works I'd appreciate if you let me know).

    Thanks,

     Aiden

  • Community Member Profile Picture
    on at
    RE: How to add a new state to a record

    Thanks for the answers. If I wanted to use the builtin states, can I change the labels?

  • Aileen Gusni Profile Picture
    44,524 on at
    RE: How to add a new state to a record

    Hi CRM

    Statecode (active n inactive) you cant change.

    You can only change the status reason.

    So yes you wont be able to change the status.

    To change add new item in the status reason field you can just go to the customization and find the entity and field.

    Hope this helps.

    THanks.

  • Mahendar Pal Profile Picture
    45,095 on at
    RE: How to add a new state to a record

    In addition to that, you could also setup your own custom statecode field (for user perspective) , which will show more status options to your record and internally you can map them with existing statecodes only, you could use workflow for this easily.

    Hope it will help.

    Thanks

  • Verified answer
    Aiden Kaskela Profile Picture
    19,694 on at
    RE: How to add a new state to a record

    Hi CRM,

    I answered this same question a few weeks ago at community.dynamics.com/.../428720

    Details:

    Status and status reason (schema names statecode and statuscode) are tightly linked together. Most entities have two States, Active and Inactive. Within each state there can be many statuses (Active/Pending, Active/Approved, Active/Working, Inactive/Canceled, Inactive/Expired, etc).

    In CRM you are not allowed to add new states, except for sales related entities you'll usually just have active and inactive states to work with. In each state, you can add as many statuses as you like. You should try to organize your statuses so that, when a record gets an Inactive status, there will be no more changes to the record. In you example, I would have the state and status combinations:

    Active: New, Release

    Inactive: Complete, Cancel

    You can customize the status by opening the statusreason field in the customizations and updating them like any other drop down. The only difference is that you'll see a selector for which "status" the new option belongs to (see the screenshot below).

    If this is helpful, I'd appreciate if you could mark this as the verified answer.

    Thanks!

    Aiden

    6663.statuscode.png

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans