{"id":10587,"date":"2015-06-26T09:32:21","date_gmt":"2015-06-26T09:32:21","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=10587"},"modified":"2024-11-19T05:48:38","modified_gmt":"2024-11-19T05:48:38","slug":"behavior-of-ssa-field-in-customized-entity","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/","title":{"rendered":"Behavior of SSA field in Customized entity"},"content":{"rendered":"<p>Hi folks! Hope you all must be aware of<strong> \u201cSSA\u201d<\/strong> (i.e. Search Select Advance) field in crm. I will define it in one sentence <strong>\u201cActs as a bridge between two entities\u201d<\/strong>. Now, I will explain it in more detail by taking two scenario\u2019s (i.e. Standard entity, customized entity). What exactly I want to say is as follows.<br \/>\n<strong>New Stuff:<\/strong>\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/24\/hide-field-without-scripting\/\" target=\"_blank\" rel=\"noopener\">Hide field without scripting<\/a><br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg11.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-10588\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg11.jpg\" alt=\"BlogImg1\" width=\"774\" height=\"538\" \/><\/a><br \/>\nFrom above image, what I want to explain is that in opportunity we have a <strong>SSA<\/strong> field named as <strong>Company w<\/strong>hich allows us to select a particular company against that opportunity. And, on click of that selected company hyperlink company Summary popup window opens up. But, when you link your <strong>SSA<\/strong> field of\u00a0a <strong>Customized Entity<\/strong> you find below error.<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg2.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-10589\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg2.jpg\" alt=\"BlogImg2\" width=\"871\" height=\"276\" \/><\/a><br \/>\nTo avoid above error you need to call below mentioned function on <strong>\u201cOn-load Script\u201d<\/strong> of the respective screen.<br \/>\nfunction PageOnLoad()<br \/>\n{<br \/>\nif(document.EntryForm.SSA_Field)<br \/>\n{<br \/>\nvar SSA_FieldId = &#8220;&#8221;;<br \/>\nvar sASurl= document.EntryForm.SSA_Field.value;<br \/>\nif(sASurl!=&#8221;&#8221;)<br \/>\n{<br \/>\nSSA_FieldId = getLineItemValue(&#8220;Key58&#8221;,sASurl);<br \/>\nSID=new String(crm.getArg(&#8220;SID&#8221;,sASurl));<br \/>\nif(SID==&#8221;&#8221; || SID==&#8221;undefined&#8221; || SID==&#8221;null&#8221;)SID=&#8221;0&#8243;;<br \/>\nsInstallURL=crm.installUrl();<br \/>\nvar sNewURL=&#8221;&amp;Act=432&amp;Mode=1&amp;CLk=T&amp;Key0=58&amp;Key37=&#8221;+SSA_FieldId+&#8221;&amp;&lt;Linked Entity PrimaryId&gt;=&#8221;+SSA_FieldId<br \/>\nsNewURL += &#8220;&amp;dotnetdll=&lt;linked Entity&gt;.crm.dll&amp;dotnetfunc=Run&lt;linkedEntitySummary&gt;Summary&amp;Key58=&#8221;+SSA_FieldId+&#8221;&#8221;;<br \/>\nvar sFinalURL=sInstallURL+&#8221;eware.dll\/Do?SID=&#8221;+SID+sNewURL<br \/>\ndocument.EntryForm.SSA_Field.value = sFinalURL;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\nfunction getLineItemValue(name,sURL)<br \/>\n{<br \/>\nvar winURL = sURL;<br \/>\nvar queryStringArray = winURL.split(&#8220;?&#8221;);<br \/>\nvar queryStringParamArray = queryStringArray[1].split(&#8220;&amp;&#8221;);<br \/>\nvar nameValue = null;<br \/>\nfor ( var i=0; i&lt;queryStringParamArray.length; i++ )<br \/>\n{<br \/>\nqueryStringNameValueArray = queryStringParamArray[i].split(&#8220;=&#8221;);<br \/>\nif ( name == queryStringNameValueArray[0] )<br \/>\n{<br \/>\nnameValue = queryStringNameValueArray[1];<br \/>\n}<br \/>\n}<br \/>\nreturn nameValue;<br \/>\n}<br \/>\n<strong>Explanation of Above Code:<\/strong><br \/>\nThe <strong>\u201cPageOnLoad ()\u201d<\/strong> function simply gets the <strong>\u201cPrimary ID\u201d<\/strong> and required <strong>\u201cURL\u201d<\/strong>. And <strong>\u201cgetLineItemValue ()\u201d<\/strong> function returns the <strong>\u201cPrimary ID\u201d<\/strong> value of the customized entity.<br \/>\n<em>Note: \u00a0sNewURL holds the URL that is required to show summary of customized entity. I have highlighted the same on above image.<\/em><br \/>\nOnce these is done your task is done. Find below screen for your reference with resolved issue.<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg31.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-10592\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg31.jpg\" alt=\"BlogImg3\" width=\"760\" height=\"304\" \/><\/a><\/p>\n<p>Happy Scripting!!<br \/>\n1. Merge Company Source SSA<br \/>\n2. SSA field behavior for custom entity in Sage CRM<br \/>\n3. Control Display Format for Person SSA field in Sage CRM<br \/>\n4. Accelerate your Line Item Entry process using GUMU Integration<br \/>\n5. One Time Processes for GUMU&#x2122; Sage CRM \u2013 Sage 100 integration<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi folks! Hope you all must be aware of \u201cSSA\u201d (i.e. Search Select Advance) field in crm. I will define it in one sentence \u201cActs as a bridge between two entities\u201d. Now, I will explain it in more detail by taking two scenario\u2019s (i.e. Standard entity, customized entity). What exactly I want to say is\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/\">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":[29,98,155,332,354,383],"tags":[1700,1706],"class_list":["post-10587","post","type-post","status-publish","format-standard","hentry","category-asp","category-customization","category-fields","category-sage-crm","category-search-select-advanced","category-ssa","tag-on-load-script","tag-onload-script"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Behavior of SSA field in Customized entity - 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\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Behavior of SSA field in Customized entity - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Hi folks! Hope you all must be aware of \u201cSSA\u201d (i.e. Search Select Advance) field in crm. I will define it in one sentence \u201cActs as a bridge between two entities\u201d. Now, I will explain it in more detail by taking two scenario\u2019s (i.e. Standard entity, customized entity). What exactly I want to say is\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2015-06-26T09:32:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-19T05:48:38+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg11.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/\",\"name\":\"Behavior of SSA field in Customized entity - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg11.jpg\",\"datePublished\":\"2015-06-26T09:32:21+00:00\",\"dateModified\":\"2024-11-19T05:48:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg11.jpg\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg11.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Behavior of SSA field in Customized entity\"}]},{\"@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":"Behavior of SSA field in Customized entity - 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\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/","og_locale":"en_US","og_type":"article","og_title":"Behavior of SSA field in Customized entity - Sage CRM \u2013 Tips, Tricks and Components","og_description":"Hi folks! Hope you all must be aware of \u201cSSA\u201d (i.e. Search Select Advance) field in crm. I will define it in one sentence \u201cActs as a bridge between two entities\u201d. Now, I will explain it in more detail by taking two scenario\u2019s (i.e. Standard entity, customized entity). What exactly I want to say is\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2015-06-26T09:32:21+00:00","article_modified_time":"2024-11-19T05:48:38+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg11.jpg","type":"","width":"","height":""}],"author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/","name":"Behavior of SSA field in Customized entity - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg11.jpg","datePublished":"2015-06-26T09:32:21+00:00","dateModified":"2024-11-19T05:48:38+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg11.jpg","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/06\/BlogImg11.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/06\/26\/behavior-of-ssa-field-in-customized-entity\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Behavior of SSA field in Customized entity"}]},{"@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\/10587","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=10587"}],"version-history":[{"count":1,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/10587\/revisions"}],"predecessor-version":[{"id":28925,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/10587\/revisions\/28925"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=10587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=10587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=10587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}