Personalization is a feature in which view settings such as the state of filters are automatically saved and recalled for each non-administrator user viewing a dashboard, report, or another view. If you’re interested in learning more about personalization, CLICK HERE >>>.
Now, have you ever had the need to programmatically clear personalization from a specific dashboard? Do you want to give your users a button to help them clear their personalization settings? If so, we’ve got just the thing for you!
Here is a sample:
dundas.context.getService(“ShortLinkService”).deleteShortLinks({
categoryId: dundas.constants.VIEW_PERSONALIZATION_SHORT_LINK_CATEGORY_ID,
accountId : dundas.context.currentSession.accountId,
fileSystemEntryId: “04127378-06b1-4e75-bcc6-0a22a29fe40d” //Substitute the value of fileSystemEntryID by your dashboard ID
}).done( function () {
console. log (“Personalization cleared”);
});