The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
28 views

Apex trigger not working

I have tried to set the name field of the Volunteer Job object to the case number or an auto increment number and neither seems to be working. I have tried to use a trigger: trigger AddCaseNumber on ...
2
votes
1answer
23 views

When is an autonumber generated?

I have a visualForce page that contains an object which has a autonumber as name. When the user presses save, the object is stored and I want the name to be populated with the name of the object. I'm ...
1
vote
2answers
38 views

Editing my custom Vendor object

So, I'm trying to edit a custom object 'Current or Previous Vendor' page to display name of the actual vendor. As you can see from the screen-shot I've attached in this thread, it's displaying the ...
3
votes
2answers
158 views

How does the field type “Auto Number” calculate?

I'm looking for the formula used by Salesforce on Data Type: Auto Number fields. I assumed it was sequential (increases by 1 from the last number generated), but according to our data, it doesn't ...
5
votes
1answer
231 views

Executing workflow/trigger before autonumeric field is calculated

The scenario is: I have an autonumeric field Perspective_Code__c. I have a text field Original_AC_Code__c. I have an external id text field Opportunity_Code__c. When a record is inserted/updated, ...
4
votes
1answer
228 views

Can the Auto Number display format reset for each new year

I have created an Auto Number with the following format: {YYYY}/{000}. Is it possible for the number increments {000} to reset to 1 for each new year?
3
votes
1answer
490 views

Auto Number field

I want to update the name field of newly inserted record with auto number field value.But auto number field is showing as null.But when I see the account record I could see the value of auto number ...
1
vote
1answer
233 views

How do I populate two auto-incrementing fields in same Object

I've a trigger on a custom object Object_A__c. Now, I need to populate a receipt number id in a field receipt_id__c. There are two types of receipts X and Y namely. I need to populate the ...
3
votes
2answers
328 views

Returning an Auto-Increment value

I'm just curious, is there a method to access an auto-increment number in a newly inserted record without making another SOQL call? Something similar to how MySQL can call up the last insert ID after ...
4
votes
1answer
1k views

How to populate a field, for existing records, which has been changed to auto-number?

I have changed a field from number to auto-number in an object which contains records. As expected, this field for the existing records lost their contents and are now blank. The business requires ...
3
votes
1answer
1k views

Maximum length of Autonumber name field

I know that if you create a custom object, with an Auto-number Name field with a format, e.g. MYC-{0000} you will be able to create records from MYC-0000 to MYC-9999. The moment you create 10,000 ...