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
System.debug('Accessible: ' + Schema.sObjectType.Contact.isAccessible()); | |
System.debug('Updateable: ' + Schema.sObjectType.Contact.isUpdateable()); | |
System.debug('Createable: ' + Schema.sObjectType.Contact.isCreateable()); | |
System.debug('Deletable: ' + Contact.sObjectType.getDescribe().isDeletable()); |
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
sfdx Your_Command | |
sfdx force:doc:commands:list | |
Command Description | |
================================================================================== | |
alias:list list username aliases for the Salesforce CLI | |
alias:set set username aliases for the Salesforce CLI | |
alias:unset unsets aliases for the Salesforce CLI | |
auth:device:login authorize an org using a device code | |
auth:jwt:grant authorize an org using the JWT flow |
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
trigger DmlTriggerBulk on Account(after update) { | |
List<Opportunity> relatedOpps = [SELECT Id,Name,Probability FROM | |
Opportunity WHERE AccountId IN :Trigger.New]; | |
List<Opportunity> oppsToUpdate = new List<Opportunity>(); | |
for(Opportunity opp : relatedOpps) { | |
if ((opp.Probability >= 50) && (opp.Probability < 100)) { | |
opp.Description = 'New description for opportunity.'; | |
oppsToUpdate.add(opp); |