MSCRM Solution Come, Learn and Share

By: Amit Choudhary | January 12, 2018

Problem:

Recently, I was trying to update a record via Web API in Dynamics 365:

entity['new_parentcustomerid@odata.bind'] = contactId


However, it threw below error:

“An undeclared property ‘new_parentCustomerId’ which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values.”


I explored multiple blogs and tried to look for the solutions but everyone suggested to use Schema Name but it did not work.


Solution:

Finally, after investigation, I resolved it as below:

1. Go to Settings-->Customization-->Developer Resources.

2. click on Download oData Metadata link under Instance Web API.

3. ...

By: Amit Choudhary | June 04, 2017

Here is the generic Web API Library. 

Click here to download the Generic Web API Library.

To see how to use the function. Click here to see the demo function for retrieveRecord.

Please post in the comments box if you have any question regarding the usage of each function.


To see more about demo function and understanding how to create query in Web API, please check my previous post.


By: Amit Choudhary | May 19, 2017

Below is the code for Web API to Retrieve Record by entity ID along with helper function. The signature of the function is same as you might have seen in SDK.REST.js library. However, I have added two additional parameters:

  • isAsync- Boolean. If isAsync is set to true, the request would be executed Asynchronously. In SDK.REST.js, it was hard-coded and sent as true.
  • impersonatedUserId- Guid of the User. If you would like to execute the JS, in context of other user, you can pass the user id. To run in the logged-in user's context, pass the parameter as NULL.

Features:

  • _getFormattedValue - When you want to retrieve the OptionSet Label/Lookup text, you can use the _getFormattedValue function specified in the library.
  • _getLookupEntityLogicalName -For...

By: Amit Choudhary | May 13, 2017

With CRM 2016, Microsoft introduced support for WebApi. As per the Microsoft recommendation that is the future direction to go. However, unlike earlier, they did not provide any generic library (like SDK.REST.js). So we were working on developing similar generic library, so that it is easy to develop the code with WebApi.


We have developed similar library on the same base of SDK.Rest library. So the learning curve to WebApi can be reduced. In the upcoming blogs, I would be explaining how to use WebApi and will upload the generic WebApi library.


Stay tuned for the generic library...

Tags

MoCA

MoCA Offline

Unmapped profiles

CRM organization import

Input Parameters

CRM Plugin

Plugin context

Outlook Client

Outlook Client Statistics

Performance

Plugin execution time

Debug Javascript

Debug Javascript in MoCA

Optimistic Concurrency

RowVersion

IfRowVersionMatches

IsOptimisticConcurrencyEnabled

Dynamics CRM 2016

new capabilities in CRM 2016

CRM 2016 Release Preview

What's new in CRM 2016

What's coming in CRM 2016

CRM 2016 Release Notes

CRM Online

CRM On Premise

Online vs On Premise

Online and On Premise comparison

CRM 2015

Stored Procedure

Out of the Box Stored Procedure

OOTB Stored Procedure

OOTB

OOTB SP

SP

Xrm Snippets

CRM JavaScript

JavaScript

Full Text Search

FTS

CRM 2015 UR1

Everything about Full Text Search

Multi Entity Search Performance issue

Enable Full Text Search in CRM

InterviewQuestions

CRM Interview Question

Interview Question

Interview Questions

MSCRM Interview Question

Microsoft CRM Interview Question

Configure columns for Multi Entity Search

Multi Entity Search

Configure View Columns

View Columns for Multi Entity Search

Configure Global Search view

configure view Columns

Dynamics 365

Dynamics 365 Update 1

8 2 1

Data Import

Data Import permission

MSCRM Data Import

MSCRM

MSCRM Import

MSCRM Data Import privileges

MSCRM Data Import Security Role

Business Process Flow

Business Process Flow Enhancements

Business Process Flow with Dynamics 365

CRM 8 2 1 Business Process Flow

Dynamics 365 Business Process Flow

Concurrent Business Process Flow

WebApi

Generic WebApi library for CRM

WebApi for CRM

WebApi library for CRM

CRM

WebApi

Webpi for Dynamics CRM

WebApi for Dynamics 365

Generic library

generic Web Api

Business Process Flow issues

Business Process Flow issues and solution

Dynamics 365 Business Process Flow issues

Upgrade Plugin to Sandbox Mode

Sandboxed

Sandboxed Plugins

Move Plugins to Sandbox Mode

Move Plugins to Sandbox Mode Customization xml

Customization xml edit for Plugin

Move None to Sandbox

Move None to Sandbox CRM Plugin

last login date

last access date

last access time

user access

user access audit

last login time

CRM last login date

CRM last access date

CRM last access time

CRM user access

CRM user access audit

CRM last login time

User Access Online

Last Login CRM Online

Default Business Process Flow

Default Process Flow on Load

Default Business Process Flow On Load

Default Business Process Flow on Create

Default Process flow on Create

ADX Portal

ADX Portal Source code

Microsoft Dynamics 365 Portals

Dynamics 365 Portals

Portals

UnsupportedCode

Unsupported Code

Delete Reports

Delete Reports form CRM

Delete Managed Reports

Delete Out of the Box Reports

Delete CRM Reports

Unsupported CRM Code

Dynamics 365 WebAPI

Dynamics 365 WebAPI update lookup

Update Lookup WebAPI

WebAPI for CRM Update

Update Lookup CRM WebAPI

Update Customer lookup via webapi

Update Regarding lookup via WebAPI