New answers tagged

0

You have an compilation error at line : For (Loan__c loan: [SELECT Id, Loaned_Out__c FROM Book__c WHERE Id IN :bookIds]) Here you are querying Book__c but you are expecting Loan__c to be returned. It should be . For (Book__c book: [SELECT Id, Loaned_Out__c FROM Book__c WHERE Id IN :bookIds]) Also this line loan.Loaned_Out__c = loan.Loaned_Out__c - 1; is ...


0

This kind of use-case can be achieved with AppExchange apps such as SuperRoundRobin: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FR4MkUAL


0

Field Updates are part of the Metadata Workflow type and must be included when deploying an Approval Process that uses Field Updates You can see this in the ApprovalProcess XML wherein the actions are an array of WorkflowActionReference per the doc ApprovalAction Represents the actions that occur as a result of an approval process. Field Name Field Type ...


Top 50 recent answers are included