function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Project2Project2 

Use Account Number as lookup for a field in custom object

Hi,

 

I am not sure how the Account data type is defined, it says 'name' unlike text/number/..when you create a new filed.

In my custom object, i am trying to create a field(datatype number) with lookup to Account number (not Account, which i think is a text). When i use 'Account' i get an error 'Incorrect datatype'.

 

Appreciate your help.

Best Answer chosen by Admin (Salesforce Developers) 
Pradeep_NavatarPradeep_Navatar

There is no such data type 'Account' , for the standard account number field. Salesforce uses Text data type. You can create account number as number data type. But remember one thing, field name is always unique for the same object.

All Answers

Pradeep_NavatarPradeep_Navatar

There is no such data type 'Account' , for the standard account number field. Salesforce uses Text data type. You can create account number as number data type. But remember one thing, field name is always unique for the same object.

This was selected as the best answer
Project2Project2

Thanks.