+ Start a Discussion

How to autopopulate standard autonumber field to another object

I have a text field in one object, want to auto populate the another custom object id(which is standard autonumber) during status change(already wrote trigger for delete those records based on status, 'status' is a picklist field), how to accomplish this?

You question is not clear to me. What I understand is that you have an Object A and and Object B
A has a custom text field and B has a auto number field. Now based on the status change on A you want to change the value of text field in A ??? Is that correct ?
Prafull G.Prafull G.

You can not update AUTO NUMBER fields by any mean.


s..u r absolutely right..i need solution for that.





Prafull G.Prafull G.

You can create Text Field (instead of auto number) and then add logic in your trigger (or whichever way you are using) to populate this text field. You can make this field as readonly on page layouts so it should look like an Auto Number.