What is recordTypeId ? and what this endpoint stand for?

/services/data/v41.0/sobjects/Entity(Lead, Account, etc.)/defaultValues?recordTypeId

may be it is something obvious, but I could not find an accurate related info.

enter image description here

  • services/data/vXX.X/sobjects/object/quickActions/{action name}/defaultValues/ ? – sfdcfox Feb 18 '18 at 20:18
  • Can you please provide a link to the documentation or web page where you found this endpoint? As far as I can tell, it does not exist. – sfdcfox Feb 18 '18 at 20:24
  • it exists , screenshot added – AndrewG Feb 19 '18 at 9:46

It's weird, but I can't find this resource in the documentation, nor can I get this to work in the Workbench (v42.0); it's possible that this is a leaked resource from v43.0 (Summer '18). Presumably, this end point will allow us to get the default values for a specific record type, where recordTypeId is the record type to use, and fields are the fields you are interested in getting the default values for. For example, if this endpoint worked, you'd be able to determine the default value for Account Industry using a URL like the following:


However, since it doesn't currently appear to be working, you'll probably want to use the Describe Layout resource:


This will give you all of the fields that are valid for the current page layout and their default values, if any.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.