We had a custom object which had a couple of record types and later we realized record types are not needed. Since record types are saved in profiles, I got an error shown below
In order to resolve this, we can use the link shown below ( and replace the url and id from your org )
you can update the master record type as default record type and once it is done for all profiles, you can deactivate the record type and then later delete it.
Permanent link to this article: https://salesforcebuddy.com/2020/11/this-record-type-bunk-cannot-be-deactivated-because-the-following-profiles-use-this-record-type-as-default/
Recently, we noticed an error in our salesforce org
You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary
From the initial look, it appears to be some permission of access related issue. On deeper dive, this could have occurred because of various reasons.
OWD is very restrictive and does not let the user access the data
Profile does not have required access to this object. BTW, this is Contact data that we are (not) seeing here.
The code ( lightning component ) could have any code block which does not work well.
After debugging a little, OWD for Account/Contact was Public Read only, and we could not change it
Instructor ( custom ) profile has read for Contact and we could not change it.
The lightning component was using, although there was no usecase of editing the contact record
My project had a requirement to download a calendar file (ICS File) from a list of training records in data table
The idea is to create an ics file and download it, similar to how we download csv file. Once this file is downloaded, it can be saved in any calendar used by the user.