{"id":3971,"date":"2013-05-24T14:21:48","date_gmt":"2013-05-24T14:21:48","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=3971"},"modified":"2024-02-20T12:35:31","modified_gmt":"2024-02-20T12:35:31","slug":"calling-external-url-from-workflow","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/","title":{"rendered":"Calling External URL from Workflow"},"content":{"rendered":"<p style=\"text-align: left;\">Hello folks! Here we are back with one more interesting trick. Some days ago I came across this question on Sage development partner\u2019s forum. Thought I could modify the suggestion with screens and add it over here. Here is the scenario posted by user.<\/p>\n<p style=\"text-align: left;\">\u00a0<strong><span style=\"text-decoration: underline;\">Scenario: <\/span><\/strong><\/p>\n<p><em>I have a customer who wants to call an external URL from a workflow action passing in some query string parameters. I created a new workflow action which calls a custom asp page. \u00a0This custom asp page uses javascript to call window.open which opens up the external URL in a separate window. \u00a0I then update the oppo record&#8217;s stage as well as the work flow instance&#8217;s currentstateid. \u00a0All of this works great, but I have 2 issues. \u00a0One, the workflow history doesn&#8217;t get created when I change the workflow instance. \u00a0I guess I should have expected that, but I was curious as to how I would create the workflowhistory. \u00a0I can call the CreateRecord method and save it, but I&#8217;m not sure what the TransitionId should be. \u00a0Not sure where that value comes from. \u00a0The other problem is, once I close out of the new window that popped up and I go back to the crm screen it shows a blank screen. \u00a0I tried using Response.Redirect to take me back to the Oppo Summary screen but when I do that it never pops up the new window. \u00a0Does anyone have any suggestions on how to handle this? \u00a0It would be nice to be able to pop up the new window and when I go back to the crm screen show the workflow progress window which would allow the user to put in a tracking note and advance the worfklow state. \u00a0Is that possible? \u00a0How do you call up the workflow progress screen? \u00a0Thanks.<\/em><br \/>\n<strong><span style=\"text-decoration: underline;\">What can be done?<\/span><\/strong><br \/>\nRequirement is to open Opportunity Workflow Progress screen as well as open a page in Popup window as shown below.<\/p>\n<p>Clicking on Queue button will open below screen and say google.com in popup window.<\/p>\n<p>Here are the steps you can follow.<br \/>\n1)\u00a0Log in to <strong>Sage<\/strong> <strong>CRM<\/strong><br \/>\n2)\u00a0Go to <strong>Administration<\/strong> | <strong>Customization<\/strong> | <strong>Secondary Entity<\/strong> | <strong>Opportunity Progress<\/strong> \u00a0| <strong>Screen<\/strong><br \/>\n3)\u00a0Create New <strong>Opportunity workflow Progress<\/strong> <strong>Screen<\/strong> by clicking on <strong>New<\/strong> button<br \/>\n4)\u00a0Add Required column in above mentioned screen<br \/>\n5)\u00a0Go to <strong>Administration<\/strong> | <strong>Advanced Customization<\/strong> | <strong>Workflows<\/strong> | <strong>Opportunity Workflow<\/strong><br \/>\n6)\u00a0Click on <strong>Edit workflow<\/strong> button<br \/>\n7)\u00a0Click on &lt;<strong>Workflow Rule<\/strong> &gt; button<br \/>\n8)\u00a0Enter Custom Asp Page path in Custom File Name field<br \/>\n9)\u00a0Click on save button<br \/>\n10)Click on Activate Workflow button<br \/>\n11)\u00a0Open Custom <strong>Asp <\/strong>Page file into Notepad or Notepad++<br \/>\n12)\u00a0Write a JavaScript code to open &lt;External URL Page&gt; on Page Load.<br \/>\n13)\u00a0Using <strong>eWare.GetBlock (&lt;Screen Name&gt;)<\/strong> method call<br \/>\n(<strong>Opportunity workflow Progress<\/strong> , <strong>Opportunity Progress Note Box<\/strong>) on screen<br \/>\n14)\u00a0After clicking on Save button kindly follow the below given steps<br \/>\na.Create new record into <strong>Opportunity Progress<\/strong> entity<br \/>\nb.Handle <strong>Workflow<\/strong> <strong>Progress<\/strong> entry<br \/>\ni. Fetch <strong>Opportunity Workflow id<\/strong> from <strong>Workflow<\/strong> Entity<br \/>\nii.Based on <strong>Workflow id<\/strong> fetch <strong>Workflow State id<\/strong> from <strong>Workflow\u00a0 State<\/strong> entity<br \/>\niii.Based on <strong>Workflow Id<\/strong> and <strong>State id<\/strong> fetch \u00a0Top 1 <strong>Workflow Transition id<\/strong><br \/>\nfrom \u00a0<strong>vWorkflowTransition<\/strong> view<br \/>\niv. Add new entry into <strong>Workflow Instance<\/strong> entity<br \/>\nv.\u00a0Add new entry into <strong>Workflow History<\/strong> entity<br \/>\nvi.Update new <strong>Workflow Instance id<\/strong> into Opportunity<br \/>\nWorkflow id field<br \/>\nc.Navigate user to Opportunity Summary Screen<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello folks! Here we are back with one more interesting trick. Some days ago I came across this question on Sage development partner\u2019s forum. Thought I could modify the suggestion with screens and add it over here. Here is the scenario posted by user. \u00a0Scenario: I have a customer who wants to call an external\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,29,46,53,289,332,1,414,438],"tags":[],"class_list":["post-3971","post","type-post","status-publish","format-standard","hentry","category-action-sage-crm","category-asp","category-button-sage-crm","category-cases","category-pop-up","category-sage-crm","category-uncategorized","category-url-sage-crm","category-worklfow"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Calling External URL from Workflow - 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\/2013\/05\/24\/calling-external-url-from-workflow\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calling External URL from Workflow - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Hello folks! Here we are back with one more interesting trick. Some days ago I came across this question on Sage development partner\u2019s forum. Thought I could modify the suggestion with screens and add it over here. Here is the scenario posted by user. \u00a0Scenario: I have a customer who wants to call an external\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2013-05-24T14:21:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-20T12:35:31+00:00\" \/>\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\/2013\/05\/24\/calling-external-url-from-workflow\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/\",\"name\":\"Calling External URL from Workflow - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"datePublished\":\"2013-05-24T14:21:48+00:00\",\"dateModified\":\"2024-02-20T12:35:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Calling External URL from Workflow\"}]},{\"@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":"Calling External URL from Workflow - 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\/2013\/05\/24\/calling-external-url-from-workflow\/","og_locale":"en_US","og_type":"article","og_title":"Calling External URL from Workflow - Sage CRM \u2013 Tips, Tricks and Components","og_description":"Hello folks! Here we are back with one more interesting trick. Some days ago I came across this question on Sage development partner\u2019s forum. Thought I could modify the suggestion with screens and add it over here. Here is the scenario posted by user. \u00a0Scenario: I have a customer who wants to call an external\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2013-05-24T14:21:48+00:00","article_modified_time":"2024-02-20T12:35:31+00:00","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\/2013\/05\/24\/calling-external-url-from-workflow\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/","name":"Calling External URL from Workflow - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"datePublished":"2013-05-24T14:21:48+00:00","dateModified":"2024-02-20T12:35:31+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/05\/24\/calling-external-url-from-workflow\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Calling External URL from Workflow"}]},{"@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\/3971","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=3971"}],"version-history":[{"count":1,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/3971\/revisions"}],"predecessor-version":[{"id":28132,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/3971\/revisions\/28132"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=3971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=3971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=3971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}