{"id":8987,"date":"2014-10-14T10:10:35","date_gmt":"2014-10-14T10:10:35","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=8987"},"modified":"2014-10-14T10:10:35","modified_gmt":"2014-10-14T10:10:35","slug":"using-primary-key-column-of-an-entity-to-search","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/","title":{"rendered":"Using Primary Key Column of an Entity to Search"},"content":{"rendered":"<p>Sage CRM Search screens allow Users to search data by any criteria or a combination of criteria on the Search screen. In this blog post, we will explain you how to add a Primary Key of a column of any entity to entity search screen.<br \/>\n<span style=\"color: rgb(153, 51, 0);\"><strong><em>New Stuff:<\/em><\/strong><\/span> <a title=\"View Fusion Charts on Sage CRM Interactive Dashboards\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/view-fusion-charts-on-sage-crm-interactive-dashboards\/\" target=\"_blank\">View Fusion Charts on Sage CRM Interactive Dashboards<br \/>\n<\/a>Consider an example where you want to display <strong>Opportunity ID<\/strong> (oppo_opportunityid) on Opportunity Search screen. You need to follow below steps to add Opportunity ID (oppo_opportunityid) field to Opportunity Search screen.<br \/>\n1) Navigate to Administration | Customization | Opportunty.<br \/>\n2) Click on the Views tab and select <strong>vSearchListOpportunity view<br \/>\n<\/strong>3) Modify this view by adding below syntax into the select statement<br \/>\nOppo_opportunityid as OpportunityID<br \/>\n4) Modified view will be visible as shown below.<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo1.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-8989\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo1.jpg\" alt=\"Oppo1\" width=\"629\" height=\"167\" \/><\/a><br \/>\n5) Now, navigate to the Screens tab and select OpportunitySearchBox.<br \/>\n6) You will observe that Oppotunityid column will be visible in the Field dropdown as shown below.<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo2.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-8990\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo2.jpg\" alt=\"Oppo2\" width=\"629\" height=\"417\" \/><\/a><br \/>\n7) Select Opportunity: Oppotunityid column and click on Add button. Finally click on Save button.<br \/>\n8) Navigate to Main Menu | Find\u00a0 | Opportunity and you will observe that Opportunity Id is added to Opportunity Search screen and user can now enter criteria to search data as shown below.<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo3.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-8991\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo3.jpg\" alt=\"Oppo3\" width=\"635\" height=\"246\" \/><\/a><br \/>\nAbove steps can also be applied to any entity, to modify search screens and search data based on the entity primary columns.<br \/>\n<strong><em><span style=\"color: #993300;\">Also Read:<\/span><\/em><br \/>\n<\/strong>1) <a title=\"Codeless Customization: Add Custom Entities to Find Screen when accessed through iPhone\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/09\/23\/codeless-customization-add-custom-entities-to-find-screen-when-accessed-through-iphone\/\" target=\"_blank\">Codeless Customization: Add Custom Entities to Find Screen when accessed through iPhone<br \/>\n<\/a>2) <a title=\"Using LinkedIn widgets on Sage CRM screens\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/09\/using-linkedin-widgets-on-sage-crm-screens\/\" target=\"_blank\">Using LinkedIn widgets on Sage CRM screens<br \/>\n<\/a>3) <a title=\"Linked Search select advanced fields on custom entity screen\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/01\/03\/linked-search-select-advanced-fields-on-custom-entity-screen\/\" target=\"_blank\">Linked Search select advanced fields on custom entity screen<br \/>\n<\/a>4) <a title=\"Enable Keyword Search on Sage CRM Find screen\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/10\/15\/enable-keyword-search-on-sage-crm-find-screen\/\" target=\"_blank\">Enable Keyword Search on Sage CRM Find screen<br \/>\n<\/a>5) <a title=\"Change Default Cursor Position for Find Screens\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/08\/06\/change-default-cursor-position-for-find-screens\/\" target=\"_blank\">Change Default Cursor Position for Find Screens<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sage CRM Search screens allow Users to search data by any criteria or a combination of criteria on the Search screen. In this blog post, we will explain you how to add a Primary Key of a column of any entity to entity search screen. New Stuff: View Fusion Charts on Sage CRM Interactive Dashboards\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[83,92,137,293,332,351,353],"tags":[833,1076,1708,1805,2010,2030,2031,2033,2231,2240,2325],"class_list":["post-8987","post","type-post","status-publish","format-standard","hentry","category-crm72","category-custom-entity","category-entity","category-primary-keys","category-sage-crm","category-screen-sage-crm","category-search-screen","tag-crm7-0","tag-entity","tag-opportunity","tag-primary-key","tag-sage-crm","tag-sage-crm-7-0","tag-sage-crm-7-1","tag-sage-crm-7-2","tag-screen","tag-search","tag-sql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using Primary Key Column of an Entity to Search - Sage CRM \u2013 Tips, Tricks and Components<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Primary Key Column of an Entity to Search - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Sage CRM Search screens allow Users to search data by any criteria or a combination of criteria on the Search screen. In this blog post, we will explain you how to add a Primary Key of a column of any entity to entity search screen. New Stuff: View Fusion Charts on Sage CRM Interactive Dashboards\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-14T10:10:35+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo1.jpg\" \/>\n<meta name=\"author\" content=\"greysagecrm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"greysagecrm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/\",\"name\":\"Using Primary Key Column of an Entity to Search - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo1.jpg\",\"datePublished\":\"2014-10-14T10:10:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo1.jpg\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo1.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Primary Key Column of an Entity to Search\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\",\"name\":\"Sage CRM \u2013 Tips, Tricks and Components\",\"description\":\"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\",\"name\":\"greysagecrm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"caption\":\"greysagecrm\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Primary Key Column of an Entity to Search - Sage CRM \u2013 Tips, Tricks and Components","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/","og_locale":"en_US","og_type":"article","og_title":"Using Primary Key Column of an Entity to Search - Sage CRM \u2013 Tips, Tricks and Components","og_description":"Sage CRM Search screens allow Users to search data by any criteria or a combination of criteria on the Search screen. In this blog post, we will explain you how to add a Primary Key of a column of any entity to entity search screen. New Stuff: View Fusion Charts on Sage CRM Interactive Dashboards\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2014-10-14T10:10:35+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo1.jpg","type":"","width":"","height":""}],"author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/","name":"Using Primary Key Column of an Entity to Search - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo1.jpg","datePublished":"2014-10-14T10:10:35+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo1.jpg","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/10\/Oppo1.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/10\/14\/using-primary-key-column-of-an-entity-to-search\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Using Primary Key Column of an Entity to Search"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/","name":"Sage CRM \u2013 Tips, Tricks and Components","description":"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f","name":"greysagecrm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","caption":"greysagecrm"},"url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/8987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/comments?post=8987"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/8987\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=8987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=8987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=8987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}