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
davidjbbdavidjbb 

Auto Number (Display Format) + Trigger

Hello,

 

I have a trigger that creates a new record in another object.

 

The Name field is an autonumber with a display format of R-{0000}

 

This needs to display into another field of the other object. However, when that record is created the field is generated with the autonumber but not the display format of R-{0000}.


Any ideas on how I can still show the display format?


Cheers

Davidjbb

Navatar_DbSupNavatar_DbSup

Hi,


I think the object on which you are creating the record through trigger has the name field as auto number that’s why you are getting this. So either change the name field to text type or bind with another text field value of that object on which you are creating the record through trigger.

davidjbbdavidjbb

I need the field to be autonumbered. 

 

The object field that is being created needs to show the display format from the other field that is autonumbered/with display format already set.