{"id":189,"date":"2009-07-29T11:02:00","date_gmt":"2009-07-29T05:32:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=189"},"modified":"2021-07-27T07:28:47","modified_gmt":"2021-07-27T07:28:47","slug":"how-to-use-parameters-in-workflowsplugins","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2009\/07\/how-to-use-parameters-in-workflowsplugins\/","title":{"rendered":"How to use Parameters in Workflows\/Plugins"},"content":{"rendered":"<p>CRM Plugins and Workflows provide the ability to pass external information to the plugins as well as receive information from plugin that can be used for further processing.<br \/>\n<strong>Plugins:<\/strong><br \/>\nIn case of Plugins, you can use the Secured Parameter and Unsecured Parameter that is available during Plugin registration to pass static information that can be used by the Plugin.<br \/>\nIt is better to use the unsecured parameter as this is available in offline as well.<\/p>\n<div><img decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/_pMlyDuF-ngc\/Sm7jt3dJ6FI\/AAAAAAAAAGM\/Esz-yTqNG_0\/s400\/blog+op+1.JPG\" alt=\"\" border=\"0\" \/>These parameters are available as parameters to the constructor of the Plugin.<br \/>\npublic class AccountCreateHandler: IPlugin<br \/>\n{<br \/>\npublic AccountCreateHandler(string unsecure, string secure)<br \/>\n{<br \/>\n\/\/ Do something with the parameter strings.<br \/>\n}<br \/>\npublic void Execute(IPluginExecutionContext context)<br \/>\n{<br \/>\n\/\/ Do something here.<br \/>\n}<br \/>\n}<br \/>\n<strong>Workflows:<\/strong><br \/>\nWorkflows are allow for Input as well as Output Parameters. You can use the Input Parameters to pass static information to the Workflows. The Output parameter feature of Workflow is very interesting. The Output parameter defined in the Workflow Plugin, becomes available in the CRM Workflow window. You can use this output parameter in any of the Workflow steps.<br \/>\nIt can be used in Wait\/If condition block as a value to be checked for.<\/div>\n<p><img decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/_pMlyDuF-ngc\/Sm7juIcN2II\/AAAAAAAAAGU\/un461MRaMus\/s400\/blog+op+2.JPG\" alt=\"\" border=\"0\" \/><br \/>\n<img decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/_pMlyDuF-ngc\/Sm7juY-XDyI\/AAAAAAAAAGc\/l2ldwnl4KNc\/s400\/blog+op+3.JPG\" alt=\"\" border=\"0\" \/><br \/>\nIt can also be used in Create\/Update step. Here the Output parameter becomes available only for the attributes that match the parameter data type.<br \/>\n<img decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/_pMlyDuF-ngc\/Sm7junFvFyI\/AAAAAAAAAGk\/jfMjd_p-9Y4\/s400\/blog+op+4.JPG\" alt=\"\" border=\"0\" \/><br \/>\nIf you had some complex logic to be evaluated before you decide who to assign the records to\u2026 you can create a Lookup type of Output parameter and assign the record to this.<br \/>\n<img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/SnAn7Z9fSfI\/AAAAAAAAAGs\/jg4TtxqV85s\/s400\/blog+op+5.JPG\" alt=\"\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">Cut short 90% of your manual work and repetitive data entry!<\/div><\/div><\/h2>\n<p style=\"text-align: left;\"><em>Get 1 Click apps and say goodbye to all repetitive data entry in CRM &#8211;<\/em><br \/>\n<em><strong><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/click-2-clone-microsoft-dynamics-crm-records\" target=\"_blank\" rel=\"noopener noreferrer\">Click2Clone<\/a> <\/strong>\u2013 Clone\/Copy Dynamics 365 CRM records in 1 Click<\/em><br \/>\n<em><strong><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/click-2-export-microsoft-dynamics-crm-reports\" target=\"_blank\" rel=\"noopener noreferrer\">Click2Export<\/a><\/strong> \u2013 Export Dynamics 365 CRM Report\/CRM Views\/Word\/Excel template in 1 Click<\/em><br \/>\n<em><strong><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/undo-restore-recover-deleted-dynamics-365-crm-records\" target=\"_blank\" rel=\"noopener noreferrer\">Click2Undo<\/a><\/strong> \u2013 Undo &#038; Restore Dynamics 365 CRM data in 1 Click<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CRM Plugins and Workflows provide the ability to pass external information to the plugins as well as receive information from plugin that can be used for further processing. Plugins: In case of Plugins, you can use the Secured Parameter and Unsecured Parameter that is available during Plugin registration to pass static information that can be\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2009\/07\/how-to-use-parameters-in-workflowsplugins\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19,42,67],"tags":[1291,1330],"class_list":["post-189","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm","category-plugin","category-workflows","tag-output-parameters","tag-plugins"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}