src/Solutions/Get-NonCustomizableEntities.ps1

<#
    .SYNOPSIS
    Provide entity logical names that could not be customize (standard system entities (customization, relationship, non customizable tables))
 
    .DESCRIPTION
    Get list of non customizable entities.
#>

function Get-NonCustomizableEntities {
    [CmdletBinding()]
    param
    (
    )
    begin {   
        $StopWatch = [System.Diagnostics.Stopwatch]::StartNew(); 
        Trace-XrmFunction -Name $MyInvocation.MyCommand.Name -Stage Start -Parameters ($MyInvocation.MyCommand.Parameters); 
    }    
    process {        
        $entities = @();
        $entities += "accountleads";
        $entities += "aciviewmapper";
        $entities += "actioncard";
        $entities += "actioncardusersettings";
        $entities += "actioncarduserstate";
        $entities += "activitymimeattachment";
        $entities += "activityparty";
        $entities += "advancedsimilarityrule";
        $entities += "annotation";
        $entities += "annualfiscalcalendar";
        $entities += "appconfig";
        $entities += "appconfiginstance";
        $entities += "appconfigmaster";
        $entities += "applicationfile";
        $entities += "appmodule";
        $entities += "appmodulecomponent";
        $entities += "appmodulemetadata";
        $entities += "appmodulemetadatadependency";
        $entities += "appmodulemetadataoperationlog";
        $entities += "appmoduleroles";
        $entities += "asyncoperation";
        $entities += "attachment";
        $entities += "attributemap";
        $entities += "audit";
        $entities += "authorizationserver";
        $entities += "azureserviceconnection";
        $entities += "bookableresource";
        $entities += "bookableresourcebooking";
        $entities += "bookableresourcebookingexchangesyncidmapping";
        $entities += "bookableresourcebookingheader";
        $entities += "bookableresourcecategory";
        $entities += "bookableresourcecategoryassn";
        $entities += "bookableresourcecharacteristic";
        $entities += "bookableresourcegroup";
        $entities += "bookingstatus";
        $entities += "bulkdeletefailure";
        $entities += "bulkdeleteoperation";
        $entities += "bulkoperation";
        $entities += "bulkoperationlog";
        $entities += "businessdatalocalizedlabel";
        $entities += "businessprocessflowinstance";
        $entities += "businessunitmap";
        $entities += "businessunitnewsarticle";
        $entities += "calendar";
        $entities += "calendarrule";
        $entities += "campaignactivityitem";
        $entities += "campaignitem";
        $entities += "campaignresponse";
        $entities += "cardtype";
        $entities += "category";
        $entities += "channelaccessprofile";
        $entities += "channelaccessprofileentityaccesslevel";
        $entities += "channelaccessprofilerule";
        $entities += "channelaccessprofileruleitem";
        $entities += "channelproperty";
        $entities += "channelpropertygroup";
        $entities += "characteristic";
        $entities += "childincidentcount";
        $entities += "clientupdate";
        $entities += "columnmapping";
        $entities += "commitment";
        $entities += "competitoraddress";
        $entities += "competitorproduct";
        $entities += "competitorsalesliterature";
        $entities += "complexcontrol";
        $entities += "connection";
        $entities += "connectionrole";
        $entities += "connectionroleassociation";
        $entities += "connectionroleobjecttypecode";
        $entities += "constraintbasedgroup";
        $entities += "contactleads";
        $entities += "contactorders";
        $entities += "contactquotes";
        $entities += "contractdetail";
        $entities += "contracttemplate";
        $entities += "convertrule";
        $entities += "convertruleitem";
        $entities += "customcontrol";
        $entities += "customcontroldefaultconfig";
        $entities += "customcontrolresource";
        $entities += "customeraddress";
        $entities += "customeropportunityrole";
        $entities += "customerrelationship";
        $entities += "dataperformance";
        $entities += "delveactionhub";
        $entities += "dependency";
        $entities += "dependencyfeature";
        $entities += "dependencynode";
        $entities += "discount";
        $entities += "discounttype";
        $entities += "displaystring";
        $entities += "displaystringmap";
        $entities += "documentindex";
        $entities += "documenttemplate";
        $entities += "duplicaterecord";
        $entities += "duplicaterule";
        $entities += "duplicaterulecondition";
        $entities += "dynamicproperty";
        $entities += "dynamicpropertyassociation";
        $entities += "dynamicpropertyinstance";
        $entities += "dynamicpropertyoptionsetitem";
        $entities += "emailhash";
        $entities += "emailsearch";
        $entities += "emailserverprofile";
        $entities += "emailsignature";
        $entities += "entitlementchannel";
        $entities += "entitlementcontacts";
        $entities += "entitlementproducts";
        $entities += "entitlementtemplate";
        $entities += "entitlementtemplatechannel";
        $entities += "entitlementtemplateproducts";
        $entities += "entitydataprovider";
        $entities += "entitydatasource";
        $entities += "entitymap";
        $entities += "exchangesyncidmapping";
        $entities += "expanderevent";
        $entities += "expiredprocess";
        $entities += "externalparty";
        $entities += "externalpartyitem";
        $entities += "feedback";
        $entities += "fieldpermission";
        $entities += "fieldsecurityprofile";
        $entities += "filtertemplate";
        $entities += "fixedmonthlyfiscalcalendar";
        $entities += "globalsearchconfiguration";
        $entities += "goalrollupquery";
        $entities += "hierarchyrule";
        $entities += "hierarchysecurityconfiguration";
        $entities += "imagedescriptor";
        $entities += "import";
        $entities += "importdata";
        $entities += "importentitymapping";
        $entities += "importfile";
        $entities += "importjob";
        $entities += "importlog";
        $entities += "importmap";
        $entities += "incidentknowledgebaserecord";
        $entities += "integrationstatus";
        $entities += "interactionforemail";
        $entities += "internaladdress";
        $entities += "interprocesslock";
        $entities += "invaliddependency";
        $entities += "isvconfig";
        $entities += "kbarticle";
        $entities += "kbarticlecomment";
        $entities += "kbarticletemplate";
        $entities += "knowledgearticle";
        $entities += "knowledgearticleincident";
        $entities += "knowledgearticlescategories";
        $entities += "knowledgearticleviews";
        $entities += "knowledgebaserecord";
        $entities += "knowledgesearchmodel";
        $entities += "languagelocale";
        $entities += "leadaddress";
        $entities += "leadcompetitors";
        $entities += "leadproduct";
        $entities += "leadtoopportunitysalesprocess";
        $entities += "license";
        $entities += "list";
        $entities += "listmember";
        $entities += "localconfigstore";
        $entities += "lookupmapping";
        $entities += "mailbox";
        $entities += "mailboxstatistics";
        $entities += "mailboxtrackingfolder";
        $entities += "mailmergetemplate";
        $entities += "metadatadifference";
        $entities += "metric";
        $entities += "mobileofflineprofile";
        $entities += "mobileofflineprofileitem";
        $entities += "mobileofflineprofileitemassociation";
        $entities += "monthlyfiscalcalendar";
        $entities += "multientitysearch";
        $entities += "multientitysearchentities";
        $entities += "multiselectattributeoptionvalues";
        $entities += "navigationsetting";
        $entities += "newprocess";
        $entities += "notification";
        $entities += "officedocument";
        $entities += "officegraphdocument";
        $entities += "offlinecommanddefinition";
        $entities += "opportunitycompetitors";
        $entities += "opportunitysalesprocess";
        $entities += "orderclose";
        $entities += "organization";
        $entities += "organizationstatistic";
        $entities += "organizationui";
        $entities += "orginsightsmetric";
        $entities += "orginsightsnotification";
        $entities += "owner";
        $entities += "ownermapping";
        $entities += "partnerapplication";
        $entities += "personaldocumenttemplate";
        $entities += "phonetocaseprocess";
        $entities += "picklistmapping";
        $entities += "pluginassembly";
        $entities += "plugintracelog";
        $entities += "plugintype";
        $entities += "plugintypestatistic";
        $entities += "position";
        $entities += "post";
        $entities += "postcomment";
        $entities += "postfollow";
        $entities += "postlike";
        $entities += "postregarding";
        $entities += "postrole";
        $entities += "pricelevel";
        $entities += "principalattributeaccessmap";
        $entities += "principalentitymap";
        $entities += "principalobjectaccess";
        $entities += "principalobjectaccessreadsnapshot";
        $entities += "principalobjectattributeaccess";
        $entities += "principalsyncattributemap";
        $entities += "privilege";
        $entities += "privilegeobjecttypecodes";
        $entities += "processsession";
        $entities += "processstage";
        $entities += "processtrigger";
        $entities += "productassociation";
        $entities += "productpricelevel";
        $entities += "productsalesliterature";
        $entities += "productsubstitute";
        $entities += "publisher";
        $entities += "publisheraddress";
        $entities += "quarterlyfiscalcalendar";
        $entities += "queueitemcount";
        $entities += "queuemembercount";
        $entities += "queuemembership";
        $entities += "ratingmodel";
        $entities += "ratingvalue";
        $entities += "recommendeddocument";
        $entities += "recordcountsnapshot";
        $entities += "recurrencerule";
        $entities += "recurringappointmentmaster";
        $entities += "relationshiprole";
        $entities += "relationshiprolemap";
        $entities += "replicationbacklog";
        $entities += "report";
        $entities += "reportcategory";
        $entities += "reportentity";
        $entities += "reportlink";
        $entities += "reportvisibility";
        $entities += "resource";
        $entities += "resourcegroup";
        $entities += "resourcegroupexpansion";
        $entities += "resourcespec";
        $entities += "ribbonclientmetadata";
        $entities += "ribboncommand";
        $entities += "ribboncontextgroup";
        $entities += "ribboncustomization";
        $entities += "ribbondiff";
        $entities += "ribbonrule";
        $entities += "ribbontabtocommandmap";
        $entities += "role";
        $entities += "roleprivileges";
        $entities += "roletemplate";
        $entities += "roletemplateprivileges";
        $entities += "rollupfield";
        $entities += "rollupjob";
        $entities += "rollupproperties";
        $entities += "routingrule";
        $entities += "routingruleitem";
        $entities += "runtimedependency";
        $entities += "salesprocessinstance";
        $entities += "savedorginsightsconfiguration";
        $entities += "savedquery";
        $entities += "savedqueryvisualization";
        $entities += "sdkmessage";
        $entities += "sdkmessagefilter";
        $entities += "sdkmessagepair";
        $entities += "sdkmessageprocessingstep";
        $entities += "sdkmessageprocessingstepimage";
        $entities += "sdkmessageprocessingstepsecureconfig";
        $entities += "sdkmessagerequest";
        $entities += "sdkmessagerequestfield";
        $entities += "sdkmessageresponse";
        $entities += "sdkmessageresponsefield";
        $entities += "semiannualfiscalcalendar";
        $entities += "serviceappointment";
        $entities += "servicecontractcontacts";
        $entities += "serviceendpoint";
        $entities += "sharedobjectsforread";
        $entities += "sharepointdata";
        $entities += "sharepointdocument";
        $entities += "sharepointdocumentlocation";
        $entities += "sharepointsite";
        $entities += "similarityrule";
        $entities += "sitemap";
        $entities += "slakpiinstance";
        $entities += "socialactivity";
        $entities += "socialinsightsconfiguration";
        $entities += "socialprofile";
        $entities += "solution";
        $entities += "solutioncomponent";
        $entities += "sqlencryptionaudit";
        $entities += "statusmap";
        $entities += "stringmap";
        $entities += "subscriptionclients";
        $entities += "subscriptionmanuallytrackedobject";
        $entities += "subscriptionstatisticsoffline";
        $entities += "subscriptionstatisticsoutlook";
        $entities += "subscriptionsyncentryoffline";
        $entities += "subscriptionsyncentryoutlook";
        $entities += "subscriptionsyncinfo";
        $entities += "subscriptiontrackingdeletedobject";
        $entities += "suggestioncardtemplate";
        $entities += "syncattributemapping";
        $entities += "syncattributemappingprofile";
        $entities += "syncerror";
        $entities += "systemapplicationmetadata";
        $entities += "systemform";
        $entities += "systemuserbusinessunitentitymap";
        $entities += "systemuserlicenses";
        $entities += "systemusermanagermap";
        $entities += "systemuserprincipals";
        $entities += "systemuserprofiles";
        $entities += "systemuserroles";
        $entities += "systemusersyncmappingprofiles";
        $entities += "teammembership";
        $entities += "teamprofiles";
        $entities += "teamroles";
        $entities += "teamsyncattributemappingprofiles";
        $entities += "teamtemplate";
        $entities += "template";
        $entities += "textanalyticsentitymapping";
        $entities += "theme";
        $entities += "timestampdatemapping";
        $entities += "timezonedefinition";
        $entities += "timezonelocalizedname";
        $entities += "timezonerule";
        $entities += "topichistory";
        $entities += "topicmodel";
        $entities += "topicmodelconfiguration";
        $entities += "topicmodelexecutionhistory";
        $entities += "traceassociation";
        $entities += "tracelog";
        $entities += "traceregarding";
        $entities += "transactioncurrency";
        $entities += "transformationmapping";
        $entities += "transformationparametermapping";
        $entities += "translationprocess";
        $entities += "unresolvedaddress";
        $entities += "untrackedemail";
        $entities += "uom";
        $entities += "uomschedule";
        $entities += "userapplicationmetadata";
        $entities += "userentityinstancedata";
        $entities += "userentityuisettings";
        $entities += "userfiscalcalendar";
        $entities += "userform";
        $entities += "usermapping";
        $entities += "userquery";
        $entities += "userqueryvisualization";
        $entities += "usersearchfacet";
        $entities += "usersettings";
        $entities += "webresource";
        $entities += "webwizard";
        $entities += "wizardaccessprivilege";
        $entities += "wizardpage";
        $entities += "workflow";
        $entities += "workflowdependency";
        $entities += "workflowlog";
        $entities += "workflowwaitsubscription";

        $entities += "adminsettingsentity";
        $entities += "applicationuser";
        $entities += "appmodulecomponentedge";
        $entities += "sales_linkedin_profileassociations";
        $entities += "canvasappextendedmetadata";
        $entities += "cascadegrantrevokeaccessrecordstracker";
        $entities += "catalog";
        $entities += "catalogassignment";
        $entities += "sales_linkedin_configuration";
        $entities += "connector";
        $entities += "customapi";
        $entities += "customapirequestparameter";
        $entities += "customapiresponseproperty";
        $entities += "datalakefolder";
        $entities += "datalakefolderpermission";
        $entities += "datalakeworkspace";
        $entities += "datalakeworkspacepermission";
        $entities += "settingdefinition";
        $entities += "appelement";
        $entities += "environmentvariabledefinition";
        $entities += "environmentvariablevalue";
        $entities += "exportsolutionupload";
        $entities += "internalcatalogassignment";
        $entities += "entitlemententityallocationtypemapping";
        $entities += "activitymonitor";
        $entities += "appmodulecomponentnode";
        $entities += "package";
        $entities += "processstageparameter";
        $entities += "revokeinheritedaccessrecordstracker";
        $entities += "serviceplan";
        $entities += "solutioncomponentattributeconfiguration";
        $entities += "solutioncomponentconfiguration";
        $entities += "solutioncomponentrelationshipconfiguration";
        $entities += "botcomponent";
        $entities += "stagesolutionupload";
        $entities += "apisettings";
        $entities += "bot";
        $entities += "conversationtranscript";
        $entities += "flowsession";
        $entities += "pdfsetting";
        $entities += "workflowbinary";
        $entities += "appsetting";
        $entities += "connectionreference";

        return $entities;
    }
    end {
        $StopWatch.Stop();
        Trace-XrmFunction -Name $MyInvocation.MyCommand.Name -Stage Stop -StopWatch $StopWatch;
    }    
}

Export-ModuleMember -Function Get-NonCustomizableEntities -Alias *;