Bulk update Entity class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
If an entity class is assigned via Entity Filter or manually when creating Ad-hoc entity...if entity class rules are created later in the project, can we somehow Bulk update the entity classes based on defined entity class rules?
My observations:
1. Class given manually or via Entity type filter takes precedence over any existing Entity class rule
2. Scheduled job GRC set entity class on entities based on entity class rule
- updates classes only for entities where class is not defined
3. Bulk update Entity class module
- again updates only entities where class is not defined
4. Changes in the Entity filter
- when Class is changed on the entity type filter and job "Update entities from filters" is run, then the Entities retain the originally assigned class (the old one)
The possible solution is:
Create a copy of the scheduled job " GRC set entity class on entities based on entity class rule" and update the script, so it updates all classes of all entities where the class rule is defined.
The question is if that is the only way, or if there is some better practice how to do that, aside from manual update entity by entity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
hi @Luby , whatever you have mentioned is correct but on entity filter , entity class gets auto populated based on entity class rule unless overridden. So for you to sync entities based on class rule, you can do below thing--
For existing data, run some background script to sync entities with class rules. (You can maintain this as scheduled job and run whenever required)
For future modifications, you can have BR on entity table with higher order such that it executes at the end which does class rule update. (Higher order ensures any job setting class rule will be overridden by BR).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
I think the question is how do you correct historical entities?
Suggest you use data management job as a one off. If this is a continuous issue, its a different problem.
Consider that entity class did not use to be assigned by entity filter so it is possible some historical filters are not configured.