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?
-
1It could be done via the metadata api. Look at JSForce or using Ajax to call the metadata API– EricNov 9, 2016 at 7:03
-
I will try right away.– unidhaNov 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?– unidhaNov 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.– EricNov 9, 2016 at 7:51
-
but @Eric I bump to jsforce which is really cool. jsforce.github.io/document . =)– unidhaNov 9, 2016 at 8:14
1 Answer
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.