{"id":10108,"date":"2015-05-06T14:38:21","date_gmt":"2015-05-06T14:38:21","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=10108"},"modified":"2015-05-06T14:38:21","modified_gmt":"2015-05-06T14:38:21","slug":"confirm-button-using-net-api","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/","title":{"rendered":"Confirm Button using .NET API"},"content":{"rendered":"<p>Recently, while working on an implementation we came to know how easily we can do the customization using <strong>.Net API<\/strong>. Well, we were supposed to create a screen in Sage CRM which should ultimately get the confirmation from user before submitting the record into Database. By referring the .Net methods we found one method which is called as \u201cConfirm Button\u201d.<br \/>\n<span style=\"color: #993300;\"><em><strong>New Stuff: \u00a0<\/strong><\/em><\/span><a title=\"Troubleshooting Export to PDF issue with Sage CRM\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/02\/troubleshooting-export-to-pdf-issue-with-sage-crm\/\" target=\"_blank\">Troubleshooting Export to PDF issue with Sage CRM<\/a><br \/>\nTo implement this you just need to pass the below given function in your screen which will contain some basic parameters.<br \/>\n<strong><em>AddConfirmButton(&#8220;Accept&#8221;, &#8220;Accept.gif&#8221;, &#8220;Please click on ok button to approve the leave&#8221;, &#8220;HIDDENFLAG&#8221;, &#8220;Y&#8221;);<\/em><\/strong><br \/>\nThe sequence of the functions is as follows:<br \/>\n1. Caption Name<br \/>\n2. Images Name<br \/>\n3. Confirmation Message<br \/>\n4. Hidden Field Name<br \/>\n5. Hidden Field value<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image31.jpg\" target=\"_blank\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-10111 size-full\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image31.jpg\" alt=\"Image3\" width=\"1146\" height=\"190\" \/><\/a><br \/>\nIf any user clicks on Accept button, the confirmation message along with message will appear as below.<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image4.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"aligncenter wp-image-10112 size-full\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image4.jpg\" alt=\"Image4\" width=\"1146\" height=\"190\" \/><\/a><br \/>\nIf you click <strong>\u201cOK\u201d<\/strong> button then automatically predefined Hidden field value (\u201cY\u201d) gets stored in hidden field (<strong>\u201cHIDDENFLAG\u201d<\/strong>). Based on hidden field value it updates the record to progress it to further stages. Whereas, by clicking on <strong>\u201cCancel\u201d<\/strong> button record will not be updated and it will remain in the particular stage only.<br \/>\nNow, if you want to implement the similar functionality by using <strong><em>JavaScript<\/em><\/strong> then you need to follow the following steps.<br \/>\n1. Create .Net API button<br \/>\n2. Add JavaScript function name to new created button<br \/>\n3. Create new JavaScript page and need to call into Custom Contain<br \/>\n4. Create new function to add JavaScript \u201cConfirm\u201d method<br \/>\nHappy Scripting \ud83d\ude42<br \/>\n<span style=\"color: #993300;\"><em><strong>Also Read:<\/strong><\/em><\/span><br \/>\n1) <a title=\"GUMU Sage CRM \u2013 Sage 100 integration \u2013 Help Button\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/03\/31\/gumu-sage-crm-sage-100-integration-help-button\/\" target=\"_blank\">GUMU Sage CRM \u2013 Sage 100 integration \u2013 Help Button<\/a><br \/>\n2) <a title=\"Add Print Button to Print Entity information in Sage CRM v7.2\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/08\/27\/add-print-button-to-print-entity-information-in-sage-crm-v7-2\/\" target=\"_blank\">Add Print Button to Print Entity information in Sage CRM v7.2<\/a><br \/>\n3) <a title=\"Set Shortcut Key for your Favorite Button in Sage CRM\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/03\/06\/set-shortcut-key-for-your-favorite-button-in-sage-crm\/\" target=\"_blank\">Set Shortcut Key for your Favorite Button in Sage CRM<\/a><br \/>\n4) <a title=\"Displaying a Popup window in Sage CRM 7.2 without Menu button and Top Content section\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/10\/31\/displaying-a-popup-window-in-sage-crm-7-2-without-menu-button-and-top-content-section\/\" target=\"_blank\">Displaying a Popup window in Sage CRM 7.2 without Menu button and Top Content section<\/a><br \/>\n5) <a title=\"Metadata Load Error under Log off button in Sage CRM\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/08\/23\/metadata-load-error-under-log-off-button-in-sage-crm\/\" target=\"_blank\">Metadata Load Error under Log off button in Sage CRM<\/a><br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, while working on an implementation we came to know how easily we can do the customization using .Net API. Well, we were supposed to create a screen in Sage CRM which should ultimately get the confirmation from user before submitting the record into Database. By referring the .Net methods we found one method which\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/\">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":[2,46,47,332,1],"tags":[446,638,683],"class_list":["post-10108","post","type-post","status-publish","format-standard","hentry","category-net-api","category-button-sage-crm","category-button-image","category-sage-crm","category-uncategorized","tag-net-api","tag-button","tag-client-script"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Confirm Button using .NET API - 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\/05\/06\/confirm-button-using-net-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Confirm Button using .NET API - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Recently, while working on an implementation we came to know how easily we can do the customization using .Net API. Well, we were supposed to create a screen in Sage CRM which should ultimately get the confirmation from user before submitting the record into Database. By referring the .Net methods we found one method which\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-06T14:38:21+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image31.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=\"2 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\/05\/06\/confirm-button-using-net-api\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/\",\"name\":\"Confirm Button using .NET API - 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\/05\/06\/confirm-button-using-net-api\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image31.jpg\",\"datePublished\":\"2015-05-06T14:38:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image31.jpg\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image31.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Confirm Button using .NET API\"}]},{\"@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":"Confirm Button using .NET API - 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\/05\/06\/confirm-button-using-net-api\/","og_locale":"en_US","og_type":"article","og_title":"Confirm Button using .NET API - Sage CRM \u2013 Tips, Tricks and Components","og_description":"Recently, while working on an implementation we came to know how easily we can do the customization using .Net API. Well, we were supposed to create a screen in Sage CRM which should ultimately get the confirmation from user before submitting the record into Database. By referring the .Net methods we found one method which\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2015-05-06T14:38:21+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image31.jpg","type":"","width":"","height":""}],"author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/","name":"Confirm Button using .NET API - 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\/05\/06\/confirm-button-using-net-api\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image31.jpg","datePublished":"2015-05-06T14:38:21+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image31.jpg","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/05\/Image31.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/05\/06\/confirm-button-using-net-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Confirm Button using .NET API"}]},{"@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\/10108","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=10108"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/10108\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=10108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=10108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=10108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}