{"id":9240,"date":"2024-10-01T05:45:56","date_gmt":"2024-10-01T05:45:56","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=9240"},"modified":"2024-10-01T06:51:37","modified_gmt":"2024-10-01T06:51:37","slug":"find-record_id-for-rest-api-in-vtiger-crm-quick-guide","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/find-record_id-for-rest-api-in-vtiger-crm-quick-guide\/","title":{"rendered":"Find Record_ID for REST API in vTiger CRM: Quick Guide"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 1,934<\/span><span class='epvc-label'> Views<\/span><\/div>\n<p>To find the <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">record_Id<\/mark><\/code> in vTiger CRM for REST API, which typically follows the format <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">module-type-id x module-record-id<\/mark><\/code>, follow these steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Access the vTiger CRM<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log in to your vTiger CRM as an administrator or a user with API access privileges.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Determine the Module Type ID<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Each module in vTiger (e.g., Contacts, Leads, Accounts) has a unique <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">module-type-id<\/mark><\/code>. To find this ID:\n<ul class=\"wp-block-list\">\n<li>Navigate to the <strong>Module Manager<\/strong> in the settings.<\/li>\n\n\n\n<li>Find the module you want to work with (e.g., Leads, Contacts) and check its details to identify its <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">module-type-id<\/mark><\/code>.<\/li>\n\n\n\n<li>You can also refer to vTiger&#8217;s documentation or inspect the module&#8217;s URL when viewing a record (the module ID is part of the URL).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>Find the Record ID<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">module-record-id<\/mark><\/code> is a unique identifier for a specific record within a module. To find it:\n<ul class=\"wp-block-list\">\n<li>Navigate to the record you need (e.g., a specific contact or lead).<\/li>\n\n\n\n<li>The record ID is often visible in the URL of the page, after the module name. For example, in a URL like <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">https:\/\/your-vtiger-instance\/index.php?module=Contacts&amp;view=Detail&amp;record=12345<\/mark><\/code>, <code>12345<\/code> is the record ID.<\/li>\n\n\n\n<li>Alternatively, you can query the API for all records within a module and extract the specific record&#8217;s ID from the response.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>Combine the Module Type ID and Record ID<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once you have both the module type ID and the record ID, combine them in the format:<br><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">module-type-id x module-record-id<\/mark><\/code><br>For example, if the module type ID is <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">4<\/mark><\/code> (for Leads) and the record ID is <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">12345<\/mark><\/code>, the combined <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">record_Id<\/mark><\/code> would be:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>   <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">4x12345<\/mark><\/code><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>Use the Record ID in the REST API<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now that you have the <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">record_Id<\/mark><\/code>, you can use it in your REST API calls to interact with the specific record in vTiger CRM. Ensure that you authenticate properly and use the correct API endpoint for retrieving, updating, or deleting records.<\/li>\n<\/ul>\n\n\n\n<p>This method helps to precisely identify any record across different modules for API operations in vTiger CRM.<\/p>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>To find out the\u00a0record_Id\u00a0in the case of vTiger CRM specifically for REST API, which simply follows the proper format\u00a0module-type-id x module-record-id, follow all above-mentioned steps by having the <a href=\"https:\/\/www.infinitivehost.com\/managed-vtiger-solutions\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\"><strong>best Vtiger hosting solutions<\/strong><\/mark><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1,934 Views To find the record_Id in vTiger CRM for REST API, which typically follows the format module-type-id x module-record-id, follow these steps: 1. Access the vTiger CRM 2. Determine the Module Type ID 3. Find the Record ID 4. Combine the Module Type ID and Record ID 5. Use the Record ID in the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[204],"tags":[],"class_list":["post-9240","post","type-post","status-publish","format-standard","hentry","category-vtiger-solutions"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/9240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=9240"}],"version-history":[{"count":2,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/9240\/revisions"}],"predecessor-version":[{"id":9245,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/9240\/revisions\/9245"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=9240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=9240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=9240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}