Get Salesforce Account fields

前端 未结 1 1536
[愿得一人]
[愿得一人] 2021-01-16 14:52

I am doing the specifications using Salesforce API I searched so much but didn\'t find the list of fields that i could retrieve using GET method Someone could provide me the

相关标签:
1条回答
  • 2021-01-16 15:17

    You need to use a "describe" call. It'll return a list of all objects your user can see in the org and it'll include links how to get more detailed info about all fields on say Account. (you can jump straight to describing an Account if you want, the links are constructed in a predictable pattern)

    "Describes" are limited to what your Profile can see so if the profile lacks the "Read" checkbox on some object - it won't appear in the results.

    Go to https://workbench.developerforce.com for example and experiment (from menu select Utilities -> REST explorer)

    1. Base call that lists all APIs available to you: /services/data/v41.0
    2. List of all sObjects & links to obtain more info about them: /services/data/v41.0/sobjects
    3. Detailed info about Account, including fields: /services/data/v41.0/sobjects/Account/describe

    0 讨论(0)
提交回复
热议问题