The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
31 views

Is it possible to populate a field of type Auto Number External ID?

I'm trying to populate a Lookup using External ID which is Auto Number field. It is giving the error: Compile Error: Field is not writeable: Opportunity.Opportunity_Number__c Opportunity_Number__c ...
0
votes
1answer
21 views

Can I used Record ID to determine insert order? Of not what?

We're worried with data volumes that using an AutoNumber may cause overflow problems during the lifetime of the system, so look to the ID as an alternative. (We've been told we may need to scale to a ...
2
votes
2answers
61 views

High frequent sequential generated unique autonumber

I have a requirement where I need a sequential unique autonumber field on opportunity. To me that seemed simple to just the standard Salesforce Autonumber field. This seems to work fine, when we have ...
1
vote
1answer
53 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
49 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
40 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
198 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
263 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
268 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
571 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
270 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
365 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 ...