{"id":19637,"date":"2020-01-29T11:53:51","date_gmt":"2020-01-29T11:53:51","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=19637"},"modified":"2020-01-29T11:56:38","modified_gmt":"2020-01-29T11:56:38","slug":"to-update-fields-of-table-in-workflow","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/01\/29\/to-update-fields-of-table-in-workflow\/","title":{"rendered":"To update fields of table in workflow"},"content":{"rendered":"\n<p>Sometimes we may come under a\nsituation where we need to update fields in the same time when the workflow\ngets triggered.<\/p>\n\n\n\n<p>To update field on running workflow\nfirstly we need to select a workflow rule. I.e. at what action you need to\nupdate the field (For e.g. on Validation, rejection, notification, cancellation\netc.)<\/p>\n\n\n\n<p>The action we need to add for this\nis&nbsp;<strong>AWRKUPDFLD<\/strong>.&nbsp;This action\nhas parameters where you can define the name of the table which is linked to\nthe object, fields which needs to be updated and the value of the fields. <\/p>\n\n\n\n<p>We can update only 4 fields with the help of AWRKUPDFLD. We can also define when this action is need to be triggered in \u2018triggering\u2019 field and also set a condition for its execution in \u2018execution condition\u2019 field. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"841\" height=\"431\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Workflow-Rules-screen-adding-action.png\" alt=\"Workflow Rules screen-adding action\" class=\"wp-image-19640\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Workflow-Rules-screen-adding-action.png 841w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Workflow-Rules-screen-adding-action-300x154.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Workflow-Rules-screen-adding-action-768x394.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Workflow-Rules-screen-adding-action-660x338.png 660w\" sizes=\"(max-width: 841px) 100vw, 841px\" \/><figcaption><strong>Workflow Rules screen-adding action<\/strong><\/figcaption><\/figure>\n\n\n\n<p>Kindly refer the below fig to know how the parameters should be added.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"894\" height=\"438\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"  src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Workflow-Rules-Parameter-grid.png\" alt=\"Workflow Rules Parameter grid\" class=\"wp-image-19642\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Workflow-Rules-Parameter-grid.png 894w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Workflow-Rules-Parameter-grid-300x147.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Workflow-Rules-Parameter-grid-768x376.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Workflow-Rules-Parameter-grid-660x323.png 660w\" sizes=\"(max-width: 894px) 100vw, 894px\" \/><figcaption><strong>Workflow Rules Parameter grid<\/strong><\/figcaption><\/figure>\n\n\n\n<p>From the above figure, we have\nmentioned the table abbreviation in ABREV field, mentioned the field name in\nFLD field and gave the value in VALEUR field.<\/p>\n\n\n\n<p>In the same way we can update maximum 4 fields from the table at a time.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"817\" height=\"263\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"  src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Purchase-order-result-1.png\" alt=\"Purchase order result\" class=\"wp-image-19645\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Purchase-order-result-1.png 817w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Purchase-order-result-1-300x97.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Purchase-order-result-1-768x247.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/01\/Purchase-order-result-1-660x212.png 660w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><figcaption><strong>Purchase order result<\/strong><\/figcaption><\/figure>\n\n\n\n<p>Hence, make sure the action checkbox is checked for this workflow rule. The fields get updated once this workflow get triggered.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>About Us<\/strong><\/h2>\n\n\n\n<p>Greytrix \u2013 a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.<\/p>\n\n\n\n<p id=\"block-28013e99-0882-44c6-b705-7b16c85053b2\">Greytrix&nbsp;has some unique integration solutions developed for&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-crm\/\">Sage CRM<\/a>&nbsp;with Sage ERPs&nbsp;namely&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/\">Sage X3<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-intacct\/\">Sage Intacct<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-100-erp\/\">Sage 100<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-500-erp\/\">Sage 500<\/a>,&nbsp;and&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-300-erp\/\">Sage 300<\/a>. We also offer best-in-class&nbsp;Sage ERP&nbsp;and&nbsp;Sage CRM&nbsp;customization and development services&nbsp;to&nbsp;Business&nbsp;Partners,&nbsp;End&nbsp;Users, and Sage PSG worldwide. Greytrix&nbsp;helps in&nbsp;the migration of Sage CRM from&nbsp;Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes&nbsp;addons like&nbsp;&nbsp;Greytrix Business Manager,&nbsp;Sage CRM Project Manager,&nbsp;Sage CRM Resource Planner,&nbsp;Sage CRM Contract Manager,&nbsp;Sage CRM Event Manager,&nbsp;Sage CRM Budget Planner,&nbsp;Gmail Integration,&nbsp;Sage CRM Mobile Service Signature,&nbsp;Sage CRM CTI Framework.<\/p>\n\n\n\n<p id=\"block-4bc42a09-fb13-4598-8137-ce5f7b91ce28\">Greytrix is a recognized&nbsp;Sage Champion Partner&nbsp;for GUMU&#x2122; Sage X3 \u2013 Sage CRM integration listed on&nbsp;<a href=\"https:\/\/www.sage.com\/marketplace\/asb_ListingDetail?listingId=a1h24000007PC3aAAG\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Marketplace<\/a>&nbsp;and Sage CRM \u2013 Sage Intacct integration listed on&nbsp;<a href=\"https:\/\/marketplace.intacct.com\/MPListing?lid=a2D0H000007kiHyUAI\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Intacct Marketplace<\/a>. The&nbsp;<a href=\"https:\/\/www.greytrix.com\/gumu\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; Cloud framework<\/a>&nbsp;by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.<\/p>\n\n\n\n<p id=\"block-76376301-1c3e-4250-8a09-727595a606f0\">For more information on our integration solutions, please contact us at&nbsp;<a href=\"mailto:sage@greytrix.com\">sage@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes we may come under a situation where we need to update fields in the same time when the workflow gets triggered. To update field on running workflow firstly we need to select a workflow rule. I.e. at what action you need to update the field (For e.g. on Validation, rejection, notification, cancellation etc.) The\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/01\/29\/to-update-fields-of-table-in-workflow\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2796],"tags":[1426,1565,2233,2869],"class_list":["post-19637","post","type-post","status-publish","format-standard","hentry","category-faq","category-technical","tag-parameters","tag-purchase-order","tag-tables","tag-workflow-rules"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/19637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=19637"}],"version-history":[{"count":1,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/19637\/revisions"}],"predecessor-version":[{"id":19646,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/19637\/revisions\/19646"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=19637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=19637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=19637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}