Skip to main content

We have recently added some Lightning Page Assignments based on Record Type and Profile. However, when we created these, it seems as Salesforce exploded and we ended up with several thousand assignments (see first image below).Removing Lightning Page Assigments when limit exceededBecause of this we have reached a system limit and need to go through Medata API (see image below) Salesforce Assignment Error.pngWe have tried removing some lines of metadata, but the overall number is not changing. We have even tried copying / pasting the information we had from a clean sandbox, but the issue persists.

 

Does anyone have any idea on how we can delete these page assignments so that we can start from scratch again and unlock the limit?

7 answers
  1. Jul 7, 10:38 PM

    Thank you @Ramu Jallu

    ! Your solution worked. I did have to use a slightly different script, as the one you shared was repeatedly checking, then unchecking all the boxes before I could save.  

     

    Here's the script I used in case anyone else runs into the same issue (it's just saying, if box is already checked, don't change): 

     

    var chks = document.getElementsByName('assignmentTableCheckbox'); 

    for (var i = 0; i < chks.length; i++) { 

      if (!chks[i].checked) { 

        chks[i].click(); 

      } 

    }

0/9000