Set the CreatedDate/By and LastModifiedDate/By (Audit Fields/System Fields) in Flow #inSalesforce

Set the CreatedDate/By and LastModifiedDate/By (Audit Fields/System Fields) in Flow #inSalesforce


Setup | User Interface | Enable "Set Audit Fields upon Record Creation" and "Update Records with Inactive Owners" User Permissions 


Go to your profile or permission set and 'Set Audit Fields upon Record Creation'. Now you can use a flow to set the Audit Fields


Create a screen flow to set the Created/Modified Date on Create. Add text field Account Name and two date/time fields (CreatedDate, ModifiedDate)

Create Element: Set the criteria as per need and Check Use separate... Set CreatedDate equals CreatedDate from screen, Name equals Name from Screen and LastModifiedDate equals Last_Modified_Date from screen










                                           Visual: https://www.youtube.com/watch?v=LBH9H6pXxfY

Comments