2

EDIT:

I'm trying to find this page layout in the workbench:

enter image description here I'm attempting to get the page layout name for a given object via the rest explorer but I do not see the name, where do you look for it?

/services/data/v40.0/sobjects/Opportunity/describe/layouts

Here is the screen shot of my workbench:

enter image description here

3

Use the Tooling API. The REST API proper is designed to help render layouts on client devices, not get extra metadata such as the Layout Name. The URL would look like this:

/services/data/v40.0/tooling/query?q=SELECT+Id,Name+FROM+Layout+WHERE+TableEnumOrId%3D%27Opportunity%27

You'll query the Layout object, using the Tooling Query. You'll want to read the link for additional details on this object if you need it.

Since my Opportunity layout isn't interesting, here's my Lead layouts:

Tooling API Example

  • 1+ yep that's it. – Nick Kahn Sep 13 '17 at 2:25

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.