-
Archives
- May 2025
- August 2023
- June 2023
- July 2022
- November 2021
- October 2021
- July 2021
- February 2021
- February 2020
- January 2020
- November 2019
- October 2019
- June 2019
- September 2018
- August 2018
- July 2018
- June 2018
- April 2018
- March 2018
- January 2018
- December 2017
- September 2017
- August 2017
- July 2017
- June 2017
- April 2017
- February 2017
- January 2017
- December 2016
- August 2016
- July 2016
- April 2016
- March 2016
- February 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- January 2014
- December 2013
- November 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- May 2012
- April 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- February 2010
- January 2010
-
Meta
Category Archives: CRM
Tip for identifying button/command ID in Ribbon Workbench
Ribbon Workbench is a great tool for customising the ribbon in CRM. When you need to customise an OOTB button/command however, it can be a bit difficult to identify the correct button/command to work with. This is particularly true when some of … Continue reading
Posted in CRM
Leave a comment
‘An unexpected error occurred’ and using early-binding in CRM plugins
Our plugin was throwing the error below when creating a new task record: ‘An unexpected error occurred.’ at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters) at Microsoft.Crm.Extensibility.InprocessServiceProxy.CreateCore(Entity entity) … We were not doing anything fancy … Continue reading
Posted in CRM
Leave a comment
How to set EntityCollection property of service response for unit testing purposes [CRM]
When unit testing CRM C# codes, you may find that you need to mock the response of calls to CRM’s Organisation service. A number of response classes in the SDK contain an EntityCollection property. This property however is null and … Continue reading
Posted in CRM, Unit Test
Leave a comment
Getting entity type name, entity code, and entity display name in JavaScript [CRM]
This is a rehash of Michaël Hompus’ post https://blog.hompus.nl/2015/05/28/entity-type-code-using-javascript-only/ to help me remember this very useful trick. Note that the scripts described in this post are unsupported. In JavaScript, use Mscrm.EntityPropUtil.EntityTypeName2CodeMap to retrieve the entity type code for a given entity type … Continue reading
Posted in CRM
2 Comments
Mixing early-binding and late-binding with nameof operator in C# [CRM]
There are many benefits of using early-binding when coding against CRM. There are times however when you need to fall back to late-binding, for example when you need to query relationships, or when you need to call Retrieve to optimise performance … Continue reading
Posted in CRM
2 Comments
Apply filtering to subgrid’s inline lookup in CRM
A common requirement is to apply filtering to a subgrid’s inline lookup on CRM form. For example, you might want to allow users to add only contacts of a particular account (selected in another field) to a contact subgrid on … Continue reading
Posted in CRM
2 Comments
Non-admin users cannot see updated group names in form navigation [CRM]
Recently we renamed the group names in an entity’s form navigation. These are the headings that group navigation links to related entities on an entity’s form. After deploying the solution we found that only users with System Administrator role can … Continue reading
Posted in CRM
Leave a comment
Solving IIS SMTP mails stuck in Queue folder when using Gmail
It is actually quite easy to setup a local SMTP and routing through Gmail to test sending emails from your application. There are a few good posts on this that you can follow: https://fmuntean.wordpress.com/2008/10/26/how-to-configure-iis-smtp-server-to-forward-emails-using-a-gmail-account/ (note that it works for me without … Continue reading
Posted in CRM, SharePoint
Leave a comment
Deploy current project’s assembly to CRM with new shortcut keys in CRMQuickDeploy 2.7
A developer’s time should be spent on the logic/design of the application rather than on the repetitive motion of deploying code to the server during the dev-test-debug cycles. This is why CRMQuickDeploy includes shortcut keys that enable you to quickly deploy … Continue reading
Posted in CRM, CRMQuickDeploy
Leave a comment
Enabling native TypeScript support in other project types in Visual Studio 2015
Native TypeScript support in Visual Studio 2015 is not available for all project types by default. As far as I’m aware, it is only available for the ASP.NET Web Application project type. Sometime, you may be working with TypeScript but … Continue reading
Posted in CRM, JavaScript, SharePoint
Leave a comment