Hi,
While importing translations we got the below error

On opening the CrmTranslations.xml we saw the translations missing for that row.

On specifying the values for those fields and importing it back fixed the issue.
Hope it helps..
Hi,
While importing translations we got the below error

On opening the CrmTranslations.xml we saw the translations missing for that row.

On specifying the values for those fields and importing it back fixed the issue.
Hope it helps..
Hi,
We were facing one issue recently on creating Quote, where in we were getting exception on our Plugin that was registered in Post Update of Quote Detail.
It was kind of surprise for us that why it was getting triggered.
We removed all our others plugin and workflow on Quote and Quote Line but still that plugin was getting triggered. So we thought of trying it out on Vanilla instance of CRM 2016. In case of CRM 2016 the plugin registered on Post Update of Quote Detail didn’t trigger.
We then tried it on Vanilla instance of CRM 2015 On Premise (no online available), and we saw the same case i.e. Plugin getting triggered.
We were getting the following detail on Context.ParentContext (in case where Plugin on Update of Post Quote Detail is asynchronous)
Message – Update
Stage – 30
EntityReference (Target) – Quote
For Synchronous the message will be Retrieve
Hope it helps..
Hi,
Occasionally while importing the solution to our UAT environment we have faced this issue where the solution hasn’t imported, didn’t give any error but has rolled back.
This issue seems to be occurring when we are facing Network Issues and Internet connection intermittently goes down.
Trying it again once the network is stable resolves this.
Hope it helps..
Hi,
While trying to write Fakes for RetrieveSharedPrincipalsAndAccessResponse we’d realize that PrincipalAccess is read only property and the class itself is sealed.

So to unit test it we need to write a wrapper class as suggested here
The wrapper class
/// <summary>
/// Wrapper class for retrieve response
/// </summary>
[DataContract(Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
public class RetrieveSharedPrincipalsAndAccessResponseWrapper : OrganizationResponse
{
/// <summary>
/// The _entity
/// </summary>
private PrincipalAccess[] _principalaccess;
/// <summary>
/// Initializes a new instance of the <see cref="RetrieveResponseWrapper"/> class.
/// </summary>
/// <param name="response">The response.</param>
public RetrieveSharedPrincipalsAndAccessResponseWrapper(OrganizationResponse response)
{
try
{
this.PrincipalAccesses = ((RetrieveSharedPrincipalsAndAccessResponseWrapper)response).PrincipalAccesses;
}
catch
{
this.PrincipalAccesses = ((RetrieveSharedPrincipalsAndAccessResponse)response).PrincipalAccesses;
}
}
/// <summary>
/// Gets or sets the PrincipalAccesses.
/// </summary>
/// <value>
/// The entity.
/// </value>
public PrincipalAccess[] PrincipalAccesses
{
get
{
return _principalaccess;
}
set
{
_principalaccess = value;
}
}
}
The unit test
organizationService.ExecuteOrganizationRequest = request =>
{
RetrieveSharedPrincipalsAndAccessResponseWrapper retrieveResponseWrapper = new RetrieveSharedPrincipalsAndAccessResponseWrapper(new RetrieveSharedPrincipalsAndAccessResponse());
PrincipalAccess[] principalAccess = new PrincipalAccess[1];
PrincipalAccess pAccess = new PrincipalAccess();
pAccess.AccessMask = AccessRights.CreateAccess;
pAccess.Principal = new EntityReference("team", new Guid("9A69533A-2306-4DFC-9662-65ABFAB41348"));
principalAccess[0] = pAccess;
retrieveResponseWrapper.PrincipalAccesses = principalAccess;
return retrieveResponseWrapper;
};
Change in the Plugin code using Wrapper instead of original class
IOrganizationService orgService = serviceFactory.CreateOrganizationService(context.UserId);
var accessRequest = new RetrieveSharedPrincipalsAndAccessRequest
{
Target = new EntityReference("projectsite", new Guid("CDF30DD5-C64E-4EF5-ABA6-C9715C10A07D"))
};
RetrieveSharedPrincipalsAndAccessResponseWrapper accessResponse = (new RetrieveSharedPrincipalsAndAccessResponseWrapper(orgService.Execute(accessRequest)));
Hope it helps
Hi
We recently had a requirement to open new Task form on click of a ribbon button with Regarding field prefilled.
And as mentioned in the SDK, we can’t set the values for regarding lookups.
https://msdn.microsoft.com/en-us/library/gg334375.aspx#BKMK_SetLookupFieldValues
The workaround is to create custom parameters, set its value in JavaScript and use these values on the onLoad of the Form.
http://www.crmnerd.com/customizations/using-xrm.utility.openentityform-with-custom-parameters/
Hope it helps..
Hi,
After we copied our Dev instance to another Sandbox instance we got this message on opening CRM.

To disable it.
Go to Office 365 Administration Section
Select your sandbox instance.
Select Admin

Uncheck Enable Administration Mode

Hope it helps.