The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
1answer
66 views

Write to an autonumber field or not require entry of text name/id field

So I had a Name field with text and had populated it with Account Names. Upon converting back to an autonumber, all of the existing data had stayed the same and all new records received the ...
5
votes
2answers
420 views

Irregularity in auto numbering

I have been noticing this and it has happened more than once. I have an object and it's name is the standard auto number. When I'm creating the records, after a few records, the auto number seems to ...
8
votes
1answer
42 views

Why does an autonumber sequence get “stuck” when creating records after a @testSetup method?

I ran into this while writing unit tests for my org but I simplified it in a developer account to make sure it would happen there. I have custom object Thing__c. The Name field is autonumber. I wrote ...
2
votes
2answers
57 views

Account Auto-Numbering

I'd like to know how to Auto-Number all Accounts upon creation by User Interface or Data Loader with a unique number. Also, I'd like to include existing Accounts in the initial count, then ...
0
votes
2answers
42 views

Showing the opportunity ID for a new record in standard page layout before record is actually saved

Is it possible to obtain the opportunity (or another standard objects) ID value before the record is saved?
2
votes
1answer
73 views

Can I show an auto number field (or any other unique ID type value) on a new record before it has been saved?

A simple request. I am customising an opportunities object page layout and want to show a UID type value that staff can quote to people. I have this working currently with an auto number field but ...
4
votes
1answer
80 views

Do Unit Tests Increment Auto Number Fields?

I just created a new object with an auto-number name field. Its Starting Number is 0. I ran many unit tests before creating any data, and the true Starting Number I observed is 1420. Is this ...
1
vote
1answer
227 views

How to generate Auto Number Using Apex Class

I have a below requirement - I have two custom objects Product and childproduct. childproduct is a related list (lookup) to Product . When i will create a childproduct i want the name should be ...
0
votes
0answers
39 views

Paragraph Sections and Sub Sections Numbering in Visualforce PDF

Am rendering vfp as PDF. I want to show sections and subsections Numbering dynamically to the paragraph for example 1. First Section 1.1 First Subsection for first section 1.1.1 child for ...
0
votes
1answer
197 views

How to generate auto number using triggers

In my account object, I have a custom field aNo. This should do the same functionality as an auto number. public class incrementHandler{ set <Id> accId; list <Account> aList; ...
1
vote
0answers
25 views

Is it possible to translate an auto generated prefix for an object's name?

Like in the title. I have, for instance, an object that has it's name as an Auto Number. I can assign a prefix for it just fine in English, but what if I wanted to translate my app, and the prefix ...
0
votes
1answer
69 views

Trouble converting an autonumber to text

I have an AutoNumber field in my leads. I'm assigning leads based upon the last digit of that field. Salesforce says the following code has no syntax errors: RIGHT(RoundRobin__c, 1) == text(1) || ...
0
votes
0answers
27 views

Restart a generated field? [duplicate]

My question is quiet simple: I have a custom object which his key field is auto-generate. It has this format: {YYYY}{0000}. So it will be something like this: 20150150, 20150151, ... , 20150199 1th ...
1
vote
1answer
59 views

Auto number field cannot be added into managed package object, any walkaround?

We used to use a ordinary number field to dynamically generate record names in the trigger (because the name is composed of several parts). But now we are considering more about the thread safety. Say ...
0
votes
2answers
152 views

Can I use Javascript to populate a custom auto number field only when a button is clicked?

I am very much a Salesforce newbie (I'll apologise in advance :) ), and need some help with some Javascript in our Professional Edition. I have created a custom auto number field in our Opportunites. ...
0
votes
3answers
49 views

How to use += operator on formula field?

On Delivery note Line Item , I have the field Delivered_Quantity__c ( number type ) and , I 'd like to record the total number of this field for each items . So the idea is I create a new field called ...
2
votes
1answer
97 views

Importing Contracts: What to do with contract number?

I have a customer who is already using Contracts that wants to import a bunch of their old Contracts. One caveat is that the Salesforce auto-number for Contracts is prefixed with the current year, so ...
2
votes
2answers
721 views

How to Reset a Standard Auto Number Field?

Autonumber field increments when test class runs and note that in Spring14 salesforce has released an option not to increment when test class runs. Develop | Apex Test Execution | Options..., ...
3
votes
2answers
652 views

Auto Increment Number Based on Another Field

Our customer number ranges are different for each company we acquire. For example, company A has a customer number range that falls between 100,000-199,999. Company B has a number range that may fall ...
1
vote
0answers
190 views

How to auto-number quote line items 1,2,3… but for each quote?

When I create a quote with say 3 items surely these items appear enumerated as 1,2,3. But then when you create a new quote it keeps going to 4,5,6... Does anyone know how to create a custom flied ...
2
votes
1answer
615 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
54 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
232 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
222 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
515 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
57 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
503 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
437 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, ...
5
votes
1answer
1k 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
1k 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
433 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
594 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
3k 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 ...
6
votes
1answer
3k 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 ...