- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 07:45 AM
Hi,
On the asset-ci Install status mapping table, i have a requirement to deactivate or modified some of the records.
For exemple I need to set "In Transit" Asset State to "Active = false".
I can't modify the fields as they are greyed out.
What is the best practice to proceed ?
Regards,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 08:05 AM
Hello,
That is because there are two ACL:-
One which says the asset role user can update the record if Out of the box field is false:-
So the simple solution you may think is make the out of the box field as false and then edit it. But then the second ACL comes into play which says the out of the box field cannot be edited by anyone:-
So one way is to make the ACL false update the field and then make them true.
OR
Use a background script/fix script with below code:-
var gr= new GlideRecord('alm_asset_ci_state_mapping');
gr.get('replacesysidoftherecord');
{
gr.active=false;
gr.update();
}
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 08:05 AM
Hello,
That is because there are two ACL:-
One which says the asset role user can update the record if Out of the box field is false:-
So the simple solution you may think is make the out of the box field as false and then edit it. But then the second ACL comes into play which says the out of the box field cannot be edited by anyone:-
So one way is to make the ACL false update the field and then make them true.
OR
Use a background script/fix script with below code:-
var gr= new GlideRecord('alm_asset_ci_state_mapping');
gr.get('replacesysidoftherecord');
{
gr.active=false;
gr.update();
}
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022 01:13 AM
Hello,
If my answer helped you can you also mark it as correct.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 08:07 AM
The best is not to touch them, you will break some functionality down the road (like HAM) and it will be very difficult to troubleshoot later.