- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2022 08:47 AM
I have a OOB field in demand form and i Have to copy values from that to a custom filed which I have created but. That Field has a business rule 'checkcalulationtype' being applied for a particular choice . hence while running the fix script it dosent allow me to run for that particular choice where the business rule is applied.
please help me fix this.
type field has choices : A,B,C,D,E
Business rule running on type filed with condition if type=B
If I run the fix script to fetch values from type field and place it to custom field . all choices get copied but if the choice B dosent get copied as it show error 'peration against file 'dmn_demand' was aborted by Business Rule 'Check Calculation Type^sys_id'. Business Rule Stack:CheckCalculation Type '
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2022 11:46 AM
You should first check that custom Business Rule to see what / why it is preventing the action, then change the Fix Script to satisfy it. For example, if the Business Rule does not allow that type without also populating another field, then add that to the Fix Script. If the Business Rule does not allow that type no matter what, then it wouldn't make sense for the Fix Script to change it to that type. If you're sure you want the Fix Script to copy choice B then either temporarily inactivate the Business Rule whilst you run the Fix Script, or if the Fix Script is using a GlideRecord, trying adding a line like
gr.setWorkflow(false);
where gr is the variable used when instantiating the GlideRecord.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2022 11:46 AM
You should first check that custom Business Rule to see what / why it is preventing the action, then change the Fix Script to satisfy it. For example, if the Business Rule does not allow that type without also populating another field, then add that to the Fix Script. If the Business Rule does not allow that type no matter what, then it wouldn't make sense for the Fix Script to change it to that type. If you're sure you want the Fix Script to copy choice B then either temporarily inactivate the Business Rule whilst you run the Fix Script, or if the Fix Script is using a GlideRecord, trying adding a line like
gr.setWorkflow(false);
where gr is the variable used when instantiating the GlideRecord.