I know that system administrator can reset auto number according to How do I reset/restart an auto number field?.But is it allow to be resetted by user through visualforce?Is it possible to develop it?

  • 1
    It could be done via the metadata api. Look at JSForce or using Ajax to call the metadata API
    – Eric
    Nov 9, 2016 at 7:03
  • I will try right away.
    – unidha
    Nov 9, 2016 at 7:16
  • @Eric I check here developer.salesforce.com/docs/atlas.en-us.api_meta.meta/… , autonumber is not supported.am i reading the correct article?
    – unidha
    Nov 9, 2016 at 7:50
  • It would seem that you are correct and it is one of those things that you cannot I guess.Sorry about getting your hopes up.
    – Eric
    Nov 9, 2016 at 7:51
  • but @Eric I bump to jsforce which is really cool. jsforce.github.io/document . =)
    – unidha
    Nov 9, 2016 at 8:14

1 Answer 1


I am going to Answer this although it is not as I expected, so it will help other people to refer.

Auto Number cannot be reset through metadata api. Please refer here :Unsupported Metadata Types

Standard fields that aren’t customizable, such as autonumber fields or system fields

The best way is to let the user know that they always can contact their System Admin to reset it for them.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .