I came across an unusual scenario where setEntityTypes method was working in a regular web interface but that method was not honoring the list of entities specified in a Unified Client interface instead showing all the list of entities.

To debug it I removed the method call for setEntityTypes and tried to use the entity from the “Change view” option. That’s when I realized that the entity wasn’t even showing up in the Unified interface because it was not included in the App.

After adding the entity in the App and adding the setEntityTypes method back it started honoring the entity types I was specifying.

So, whenever setEntityTypes doesn’t seems to be working in unified interface make sure to check if the entity is included in the “App”.


  1. Here logged in user needs permission for those entity otherwise also it will show javascript error.

    Before enabling UCI, it don’t give error as it loads entity where permission is granted.

    If SetEntity is pointing to 100 entities and out of that if 50 entities have permission then only 50 entities gets loaded for user but in UCI it will be error.

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: