Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 2016 case status showing additional values in the custom portal

(0) ShareShare
ReportReport
Posted on by

Hi Team,
We recently upgraded our CRM version to 2016. After up gradation we are facing some with the case status. Case status list is showing additional values in the custom portal we implemented but not showing in CRM as shown below. It is showing one additional value in custom portal as "Merged". Could any one help me to resolve this issue.

CRM:
6138.admin.png

Custom Portal
4571.portal.png



We have written following code for retrieving case status in the custom portal we implemented
RetrieveAttributeRequest _Request = new RetrieveAttributeRequest
            {

                EntityLogicalName = Incident.EntityLogicalName,

                LogicalName = PicklistName,

                RetrieveAsIfPublished = true

            };

            RetrieveAttributeResponse _Response = (RetrieveAttributeResponse)_iOgranizationService.Execute(_Request);

            StatusAttributeMetadata _StatusAttributeMetadata = (StatusAttributeMetadata)_Response.AttributeMetadata;

            OptionMetadata[] optionList = _StatusAttributeMetadata.OptionSet.Options.ToArray();


*This post is locked for comments

  • ashlega Profile Picture
    ashlega 34,477 on at
    RE: CRM 2016 case status showing additional values in the custom portal

    Also, have a look at the thread below:

    stackoverflow.com/.../dynamics-crm-get-metadata-for-statuscode-statecode-mapping

    You can use that approach to get statusreasons matching some particular statecode only.

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,477 on at
    RE: CRM 2016 case status showing additional values in the custom portal

    Hi Satish,

      "Merged" statusreason corresponds to the "Cancelled" statecode in the latest versions of CRM:

    24506.Capture.PNG

    There was no "Merged" in 2011:

    http://mostlymscrm.blogspot.ca/2012/06/entity-statecodes-and-statuscodes.html

    That C# code you are using - it does not care about the statecodes, it just takes all status reasons and adds them to the list, and that includes merged, canceled, etc

  • RE: CRM 2016 case status showing additional values in the custom portal

    Hi Alex

    i did not got your point clearly could you elaborate it. Why this issue i am facing with the CRM 2016 with older version CRM 2011 same code is working with out any issues . Is there any change in case status list between 2011 and 2016

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,477 on at
    RE: CRM 2016 case status showing additional values in the custom portal

    Hi,

     it seems you are not filtering statuscodes by statecode, so, in that C# code, you are getting all statuscodes in the array (for open, resolved, and cancelled cases). In CRM, on the other hand, you will see statuscodes filtered by statecodes. I would think "merged" is a statuscode for "cancelled" statecode, so that's why you don't see it in CRM when looking at the still active case.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans