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
Book_GuyBook_Guy 

Autopopulating the Opportunity Name

Hi All,


We have a workflow rule that autopopulates the Opportunity Name. However when the opportunity record is initially created the field is blank and the user must enter a name in order to save the record as the field is required. 

 

Is there a way the name field can be populated with “-----Autopopulated-----“ at the time the record is initially created?


Thank you.


--David

VK86VK86
Hello Book_Guy, You can use a workflow rule to set the Opportunity name. The workflow should have 'Only when a record is created' as evaluation criteria. Hope this helps. Thanks, VK
SAPOCSAPOC

Opportunity Name is salesforce standard field .Workflow always executes after you click save ireespective of the condition : only record is created or whenever record is created or edited .

 

In order to auto-populate, write before insert trigger on opportunity .

CLKCLK
It wont work too in trigger because before insert event fires when user tries to insert record means from SFDC clicks on Save button; it before insert work same as workflow.
Rahul S.ax961Rahul S.ax961

Before/ after insert Trigger should work here

Eileen19Eileen19

Hi

 

Did you ever solve this? I also have the same requirement. I would appreicate any help you could provide.

 

Thank you

Eileen