2
votes
Strange error : INVALID_FIELD, All accounts must have the same current owner and new owner.: [OwnerId]
Unfortunately this seems to be a known issue for bulk account ownership changes as of the Spring '22 release: https://issues.salesforce.com/issue/a028c00000gAzHXAA0/all-accounts-must-have-the-same-...
2
votes
Accepted
trigger to update parent record without sub-query
The Max Amount is probably better handled via a rollup summary field. No matter if you go that route or keep both in your trigger here, the rest of the answer remains the same.
In a nutshell, what ...
1
vote
Accepted
I'm unable to select the Id of the related record within the Flow. However, I can choose other fields without any issues
You should be using Specify Conditions to identify records and set fields individually
This will prompt you to choose an Sobject Type (Account)
Then the filter would be Id = $Record.Account__c
And ...
1
vote
Accepted
LWC update Record field without Apex controller
You have several problems with your code.
First, you used:
@api myRecordId;
But then tried to refer to it as:
this.recordId
If this is a record-context aware component, then you must change:
@api ...
1
vote
Turning validations off for mass data update in sandbox
Unfortunately there is no single place where you can disable all automations at once. You can deactivate triggers/Flows/PBs and validation rules before starting the data load in your Sandbox.
If you ...
1
vote
Accepted
How do I bulk update records using simple-salesforce?
Not only does the date field need to be a string, it also needs to be formatted in yyyy-mm-dd format, regardless of if you've selected the display settings as mm-dd-yyyy.
convert the date to a string ...
1
vote
How to get the previous value of record related field in validation rule?
This cannot be achieved with a validation rule.
There may be a way to use a flow to bring this information into a dedicated field on Case, but I think that this is something more suited for a Trigger (...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
update × 404apex × 161
trigger × 135
dml × 25
field-update × 24
insert × 20
marketing-cloud × 18
visualforce × 16
batch × 16
after-trigger × 16
data-loader × 15
soql × 14
upsert × 14
visual-workflow × 13
contact × 13
before-trigger × 13
record × 12
class × 11
lookup × 10
case × 9
list × 9
account × 9
after × 9
unit-test × 8
rest-api × 8