New answers tagged master-detail
2
votes
Accepted
A formula number field can't be used in rollup summary
Formula fields can only be used in a rollup summary if they are idempotent (in other words, if they return the same value every time when the record is not edited). This means you can't use cross-...
0
votes
A formula number field can't be used in rollup summary
I have found the answer: "...However, as the formula field is referring to a field in another object (e.g. cross object reference), it is not available for use."
source: https://focusonforce....
2
votes
Accepted
Anonymous code to run a bulk update
That code would go something like this:
// Keep a collection of Grant_Contract__c records by Id, in case of duplicates
Map<Id, Grant_Contract__c> grantContractRecordsById = new Map<Id, ...
Top 50 recent answers are included
Related Tags
master-detail × 388apex × 96
lookup × 66
trigger × 50
relationships × 40
custom-object × 38
soql × 33
roll-up-summary × 28
visualforce × 26
custom-field × 14
junction-object × 14
sharing × 13
related-list × 13
externalid × 12
query × 10
formula × 10
reporting × 8
opportunity × 7
visual-workflow × 6
process-builder × 6
formula-field × 6
custom-button × 6
salesforce-id × 6
delete × 6
lookup-filter × 6