Hello Experts,
is there an option to add a default certification UIPreference for all the users. I understand that the column layout the grouping are stored under individual UIpreference object. Is there an easy way to add the same UIPreference for all the users by default.
@jophisaliascna There’s no built-in option to apply a default UIPreference for all users, but you can achieve this using the certificationEntityCustomizationRule.
Within this rule, you can set column’s under uiCertificationItemWorksheetColumns-Review Or any other key based on your criteria (e.g., user role or entity type). This approach is flexible and works well for enforcing consistent defaults where needed.
@jophisaliascna just now tried in my sandbox, it should work. if it doesn’t work through code. try to manually editing the UIPreference Object to see what all the things are getting changed. so that you can also alter those things with your code!
@jophisaliascna I don’t have the exact code handy, but I can share the approach I used.
I maintained the TableColumnPreference configurations in a custom object, using a nested structure where the primary key is the certification name, and the second-level key is the access reviewer’s manager ID.
I first check the certification name and identify the certifier.
Then validate if their manager ID exists in the custom object.
If present, I retrieve the user’s UIPreference object. If it doesn’t exist, I create a new one and add the required certification column preferences.
If it already exists, I simply update the key (e.g., uiCertificationItemWorksheetColumns-Open) with the desired column settings.
This way, certifier-specific column views are dynamically applied during certification generation based on the configuration stored in the custom object.