By default the table for custom related objects only shows name. You can customize this in salesforce itself, but is there a way to do it through the API?

I'm pretty new to salesforce and the apis.

closed as unclear what you're asking by Adrian Larson, Vigneshwaran G, Eric, Ratan Paul, Sebastian Kessel Oct 29 '16 at 12:39

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • table of the custom object- by this do you mean view? the one you get on clicking the tab of the custom object – Preya Oct 28 '16 at 17:06

The Metadata API allows you to deploy the Layout object, which includes the related lists on a page. You can access this API via REST or by uploading ZIP files. I suggest reading the documentation for more information.

In any case, you basically create a Layout that includes a list of RelatedListItem entries that specify the order on the page, the sort order within the list, and the fields to display. The documentation includes Java examples of how you'd call the API.

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