Ask the Community
Groups
BMS API: What is the EntityId when Attempting to Access Custom Field Data? - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>Question: </strong>I am attempting to access custom field data, and I want to know what the <strong>entityid </strong>is from<strong> </strong>the below query: </p> <p><em><code class="code codeInline" spellcheck="false" tabindex="0">GET https://server_name/api/admin/customfields/data/{moduleId}/{entityId}/{customFieldId}</code></em></p> <p><strong>Answer: </strong>The <strong>{entityId}</strong> is the id of the target object that you want to retrieve custom fields for.<br>For example, if you want to get the custom fields of a ticket, the entityid would be the ticket id.</p> <p><strong>Note:</strong> If the API returns a status code 404, it means it did not find any custom field data for this entity.</p> </article> </main>