How to filter regarding entity in dynamic CRM using JavaScript
//filter regarding
function regardingFilter (executionContext)
{
var formContext = executionContext.getFormContext();
var regarding = formContext.getControl("regardingobjectid") ? formContext.getControl("regardingobjectid") : null;
if (regarding.getEntityTypes().length >= 1)
{
regarding.setEntityTypes(['opportunity']);
}
}
Screenshot:
After filter:
Before filter :
Comments
Post a Comment