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
Dushyant srivastava 8Dushyant srivastava 8 

Is there a way to redirect to Salesforce New Custom Field Page.

Hi,

I was trying to redirect a VF to New Custom Field Page and i figured out that "www.{baseurl}/p/setup/field/NewCustomFieldStageManager?entity={enitity ID}" is the URL. BUt not able to understand what exactly is Entity here for Standard objects it there API name i guess but not sure what its for Cutsom object because there is a 15 digit id when you see it.

Anyone knows what enitity id is and how to get that or how to redirect to the page attached bellow in an image, Please let me know that will be a great help.Entity
Aadesh MahapatraAadesh Mahapatra
Did you find a resolution for this?
AnudeepAnudeep (Salesforce Developers) 
Hi Dushyant,

The entity and the Id you are referring to here is CustomObjectDefinition.

I verified this by executing the following code in my developer org
Id sampleid = '01I6F000003Rtao';
System.debug('object is '+ sampleid.getsobjecttype());

Output - 12:58:02:003 USER_DEBUG [2]|DEBUG|object is CustomEntityDefinition

You can find the Object type from Record ID prefix here

If you find this information helpful, please mark this answer as Best. It may help others in the community. Thank You!

Anudeep