Converting a Homepage to a Dashboard is not setting the Owner.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2022 10:49 AM
I am testing the Homepage Deprecation Tool, and when I trigger a request to retire or convert a homepage.
- Can either set it to retire, which triggers approval from the owner... and if the person rejects (it will then convert to a Dashboard),
- or If I (as Admin), convert the Homepage to a new Dashboard, the new Dashboard does not show in that persons "Owned by Me", but it does show under "All" Dashboards, but there is no Owner listed.
Is there a way to modify the "conversion workflow" so it sets the Dashboard Owner to the current owner of the converted Homepage?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 07:05 AM
After converting the homepage to a dashboard we found that the Converted dashboard does not update the owner from a homepage so we need to update the same through a fix script.
Click on Converted Homepages on the dashboard shown below and see the owners are empty. so we need to update the same.
Script to update the same- You can use a set limit as per the volume of your homepage.
var hms = new GlideRecord('pa_homepage_migration_status');
hms .addEncodedQuery('decision=converted^owner!=NULL^dashboard.owner.nameISEMPTY');
hms .query();
while (hms .next()) {
var db= new GlideRecord('pa_dashboards');
db.get(hms .dashboard);
db.query();
if (db.next()) {
db.owner = hms .owner;
db.setWorkflow(false);
db.update();
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 01:29 AM
Hi I am also having the same issue when I was converted every homepage to a dashboard then after conversion it lost its original 'owner' and SN changed them all to me, so no one can see their converted homepages under dashboards or owned by me section.