CRM 2015

Get Status Text for a Value in CRM

Posted on

public static string GetStatusTextForValue(IOrganizationService service, string entityName, string attributeName, int selectedValue)
{
var retrieveAttributeRequest = new RetrieveAttributeRequest
{
EntityLogicalName = entityName,
LogicalName = attributeName,
RetrieveAsIfPublished = true
};
string statusCodeLabel = “”;
try
{

RetrieveAttributeResponse attributeResponse =
(RetrieveAttributeResponse)service.Execute(retrieveAttributeRequest);
AttributeMetadata attrMetadata = attributeResponse.AttributeMetadata;

StatusAttributeMetadata statusAttrMetadata = (StatusAttributeMetadata)attrMetadata;

foreach (StatusOptionMetadata statusMeta in statusAttrMetadata.OptionSet.Options)
{
if (statusMeta.Value == selectedValue)
{
statusCodeLabel = statusMeta.Label.UserLocalizedLabel.Label;
break;
}
}
}
catch (Exception ex)
{
var retrieveAttributeResponse =
(RetrieveAttributeResponse)service.Execute(retrieveAttributeRequest);
var retrievedPicklistAttributeMetadata =
(PicklistAttributeMetadata)retrieveAttributeResponse.AttributeMetadata;
OptionMetadata[] optionList = retrievedPicklistAttributeMetadata.OptionSet.Options.ToArray();
foreach (OptionMetadata oMD in optionList)
{
if (oMD.Value == selectedValue)
{
statusCodeLabel = oMD.Label.LocalizedLabels[0].Label;
break;
}
}
}
return statusCodeLabel;
}

Disabling Navigation Tour in CRM 2015

Posted on

In CRM 2013 you see Navigation Tour popup everytime you log on to CRM unless you¬†select “Don’t show me this again”

1

The only problem is this popup still appears if you access CRM on any other machine or in InPrivate browsing the popup appears again.

GOOD NEWS!!!

Navigation Tour can be disabled at System level by performing steps below –

1. Go to Settings -> Administration -> System Settings

2. Scroll to the bottom of General tab

3. Change the value of “Set whether users see navigation tour” to NO

1

On Hold Case Status – Pause SLA calculation in CRM 2015

Posted on

SLA feature was introduced in CRM 2013 but, CRM 2015 has introduced an interesting feature to pause SLA calculation for specific On Hold statuses. This essentially ensures that SLA calculation gets stopped. This can be achieved by

1. Going to to Settings -> Administration

2. System Settings -> Service Tab

3. Select valid On Hold Case Statuses to pause SLA calculation.

1

 

Note – Available Values automatically populate the status reasons added for On Hold status.

Could not publish report ‘Neglected Cases’ when installing reporting services extension for CRM 2015

Posted on

I got this error while installing CRM 2015 reporting services after successfully installing Dynamics CRM 2015. Trick here is to delete the existing Encrypted Content for SQL SSRS Reporting Services. To achieve this –

1. Open Reporting Services Configuration Mangaer

2. Go to Encryption Keys and click on Delete under “Delete Encrypted Content” section –

1