function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Itay MaozItay Maoz 

Error when deploying beforesave flow

I am trying to deploy a lightning flow from a dev sandbox to a fullsandbox. Both are running the most up to date version SFDC. The deployment is failing and I'm getting the following error message: 


Because the TriggerType field has the value "RecordBeforeSave", you also need to set the following fields: SaveType.

I'm unsure how to set "SaveType" in a flow. 
Santosh Reddy MaddhuriSantosh Reddy Maddhuri

Hi Itay Maoz,

Please go through below article.Probabbly this is what is missing in your case.

https://salesforce.stackexchange.com/questions/295222/error-deploying-recordbeforesave-flows-to-another-org-using-sfdx

Thanks & Regards,

Santosh.

Soniya Raut 14Soniya Raut 14
We faced this in one of the scenarios as well. the reason was that we used the formula field referencing 2 other fields. One of the fields on the formula was a Roll-up summary field. This is the reason it was throwing the error. Hope this helps!