Lookups Showing Same Custom View in Unified Interface because of Same viewId in addCustomView JavaScript

Recently in one of my Dynamics 365 projects, I had to filter the lookup using JavaScript because of the nature of the filter which cannot be achieved using OOB filter.

I just simply write the following code to filter and set the viewId by generating some random GUID as set a static value.

var viewId = "c83ee442-91d4-4b47-bb1b-92523c80e06b";  // Random GUID
var entityName = "contact";
var...

Continue Reading noreply@blogger.com (Linn Zaw Win)’s Article on their blog

Lookups Showing Same Custom View in Unified Interface because of Same viewId in addCustomView JavaScript

Recently in one of my Dynamics 365 projects, I had to filter the lookup using JavaScript because of the nature of the filter which cannot be achieved using OOB filter. I just simply write the following code to filter and set the viewId by generating some random GUID as set a static value.

Blog Syndicated with noreply@blogger.com (Linn Zaw Win)’s Permission

Author: Linn Zaw Win

Share This Post On
Share via
Copy link
Powered by Social Snap