Hot answers tagged

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-...
Ben Green's user avatar
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 ...
Derek F's user avatar
  • 58.3k
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 ...
cropredy's user avatar
  • 69.1k
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 ...
sfdcfox's user avatar
  • 477k
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 ...
Saroj Bera's user avatar
  • 14.5k
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 ...
Tyler Davis's user avatar
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 (...
Derek F's user avatar
  • 58.3k

Only top scored, non community-wiki answers of a minimum length are eligible