This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// All the standard and custom objects in the Org | |
List<EntityDefinition> entityDefs = [select QualifiedApiName from EntityDefinition]; | |
// Forming a list of Entity API names | |
List<String> entityNames = new List<String>(); | |
for(EntityDefinition entityDef: entityDefs){ | |
if(!entityDef.QualifiedApiName.endsWith('kav')){ | |
entityNames.add(entityDef.QualifiedApiName); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global without sharing class SandboxPostCopyUpd implements SandboxPostCopy { | |
global void runApexClass(SandboxContext context) { | |
LIst<Contact> ConList = [SELECT ID FROM CONTACT]; | |
for (Contact con : ConList) { | |
con.Email = '[email protected]'; | |
} | |
update ConList; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page docType="html-5.0" sidebar="false"> | |
<apex:stylesheet value="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/> | |
<apex:includeScript value="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"/> | |
<script> | |
jQuery(document).ready(function($) { | |
$.ajax('/services/data/v38.0/limits', | |
{ | |
beforeSend: function(xhr) { | |
// Set the OAuth header from the session ID |