{"id":5769,"date":"2020-09-30T06:42:24","date_gmt":"2020-09-30T06:42:24","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/salesforce\/?p=5769"},"modified":"2020-10-19T09:00:46","modified_gmt":"2020-10-19T09:00:46","slug":"adding-specific-nodes-to-mascontract-file-to-sync-records-from-sage-100-erp-to-salesforce","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2020\/09\/30\/adding-specific-nodes-to-mascontract-file-to-sync-records-from-sage-100-erp-to-salesforce\/","title":{"rendered":"Adding specific nodes to MasContract File to sync records from Sage 100 ERP to Salesforce"},"content":{"rendered":"\n<p>In our previous blog we discussed, details about <a rel=\"noreferrer noopener\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2019\/11\/12\/create-entity-in-gumu-sage-100-integration-lightning-interface\/\" target=\"_blank\">setting an Entity in Sage SData to sync from Sage to Salesforce<\/a>. If a user\/technical expert modifies the data definition\/structure in Sage 100 ERP, Sage updates the data definition file (MASCONTRACT.xml) of SData to include schema of the updated data. <\/p>\n\n\n\n<p>During the process, application also overrides definition of any added custom tables or files that are not included as part of the standard definition in the Sage SData file. <\/p>\n\n\n\n<p>In this blog, we are specifying steps on how a user can add a GroupName in Sage 100 MasContract file. Which can be further used to sync records in Salesforce using GUMU&#x2122; Integration.<\/p>\n\n\n\n<p>As you might know, Sage 100 ERP stores its records in Open and History table. GUMU&#x2122; Integration sync records from both the tables. But to import data from History of Sage 100 it is necessary to have link between 2 tables i.e.: Header and Details. Therefore it is essential to add a GroupName which acts as an inner join between two tables which can be further used in synching records from Sage 100.<\/p>\n\n\n\n<p>For better understanding lets take the example of <strong><em>SalesOrders<\/em><\/strong> entity, Sales Orders when created in Sage 100 are stored in Open table and once Invoiced they are moved to History table. Since GUMU&#x2122; integration have the aptitude to sync history records as well, it is necessary to link Order Header and Order Details of Sage 100.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><em><span style=\"text-decoration: underline;\">Sage Side Configuration &amp; Changes<\/span><\/em><\/strong><\/h3>\n\n\n\n<p>To understand how a user can Add the GroupName to MasContract File, kindly refer the below given steps. Navigate to the folder where your MasContract file is located. For reference purpose we have share the path: <strong><em>C:\\Sage\\Sage 100 Standard\\MAS90\\SData<\/em><\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong><em>Note: Before performing any changes to MasContract file always remember to take backup of the Original file.<br><br><\/em><\/strong><\/p><\/blockquote>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/1.MasContract-path.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/1.MasContract-path.jpg\" alt=\"MasContract Path\"><\/a><\/center>\n<font size=\"2\"><center><i>MasContract Path<\/i><\/center><\/font>\n\n\n\n<p>Now to add resource for SalesOrder user needs to:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Find for \u201c<strong><em>SO_SalesOrderHistoryHeader\u201d<\/em><\/strong> in the MasContract file.<\/li><li>Once you have found the Entity under <strong><em>&lt;xs:all&gt;<\/em><\/strong> paste the below node and save the file:<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;xs:element name=\"SO_SalesOrderHistoryDetail\" type=\"SO_SalesOrderHistoryDetail--list\" minOccurs=\"0\" sme:relationship=\"child\" sme:isCollection=\"true\" sme:label=\"SO_SalesOrderHistoryDetail\" sme:canGet=\"true\" sme:canPost=\"true\" sme:selector=\"where=SalesOrderNo eq ':SalesOrderNo'\"\/><\/code><\/pre>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/2.SalesOrder-node.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/2.SalesOrder-node.jpg\" alt=\"SalesOrder Node\"><\/a><\/center>\n<font size=\"2\"><center><i>SalesOrder Node<\/i><\/center><\/font>\n\n\n\n<p>Most importantly, after adding the resources remember to re-start the IIS Services in IIS Manager. <em><strong>Whenever the user makes changes to the MasContract file it is mandatory to re-start the IIS Services<\/strong><\/em>.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/3.IIS-Manager.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/3.IIS-Manager.jpg\" alt=\"IIS Manager\"><\/a><\/center>\n<font size=\"2\"><center><i>IIS Manager<\/i><\/center><\/font>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><em><span style=\"text-decoration: underline;\">Salesforce Side Configuration &amp; Changes<\/span><\/em><\/strong><\/h3>\n\n\n\n<p>Now to check whether the added resource is available for use. We need to login into Salesforce and navigate to Entity Settings located under GUMU&#x2122; Settings application. Click on Entity Settings Module, upon clicking the below page will appear where list of all entities will be displayed. You have to make changes for OrderLine Entity as marked in the below picture.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/4.Entity-Setting.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/4.Entity-Setting.jpg\" alt=\"Entity Setting\"><\/a><\/center>\n<font size=\"2\"><center><i>Entity Setting<\/i><\/center><\/font>\n\n\n\n<p>Clicking on edit button located under the Action pane of Order Line, check whether the resource is available for importing data. To check the changes click on \u2018<strong><em>Refresh fields\u2019<\/em><\/strong> button.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/5.Refresh-Entity.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/5.Refresh-Entity.jpg\" alt=\"Refresh Entity\"><\/a><\/center>\n<font size=\"2\"><center><i>Refresh Entity<\/i><\/center><\/font>\n\n\n\n<p>Firstly click refresh button, click on the dropdown arrow present in the \u201c<strong><em>GroupName<\/em><\/strong>\u201d field. Secondly, select value <strong>\u201cS<em>O_SalesOrderHistoryDetail<\/em>\u201d<\/strong> and again click on Refresh button for the tables to collide. Once refreshed click on the Details tab and under Fields sets refer ERP Source fields tab to view that the tables are now merged along with the fields available for synching history records and click on save.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/6.GroupName-and-ERP-Source-fields.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/09\/6.GroupName-and-ERP-Source-fields.jpg\" alt=\"GroupName and ERP Source fields\"><\/a><\/center>\n<font size=\"2\"><center><i>GroupName and ERP Source fields<\/i><\/center><\/font>\n\n\n\n<p>We hope this blog helps you update the Sage SData MasContract file for using the custom data to be used in an outside source. In case you still have queries or concerns, please contact us at <a rel=\"noreferrer noopener\" href=\"mailto:salesforce@greytrix.com\" target=\"_blank\">salesforce@greytrix.com<\/a>.<\/p>\n\n\n\n<p style=\"text-align: justify\"><b>About Us<\/b><\/br>\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> \u2013 a globally recognized and one of the oldest Sage Development Partner and a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners and Sage PSG across the globe. We offer Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that require apex code incorporation into the Salesforce platform.<br><br> Greytrix has some unique solutions for Cloud CRM such as <a href=\"\">Salesforce Sage integration<\/a> for <a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/integration\/\">Sage X3<\/a>, <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-100-integration\/\">Sage 100<\/a> and <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-300-integration\/\">Sage 300 (Sage Accpac)<\/a>. We also offer best-in-class Cloud CRM <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/crm-development\/\">Salesforce customization and development services<\/a> along with services such as Salesforce <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/data-migration-support\/\">Data Migration<\/a>, <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/crm-development\/\">Integrated App development<\/a>, Custom App development and Technical Support business partners and end users. Salesforce Cloud CRM integration offered by Greytrix works with Lightning web components and supports standard opportunity workflow. Greytrix GUMU&#x2122; integration for Sage ERP \u2013 Salesforce is a 5-star rated app listed on <a href=\"https:\/\/appexchange.salesforce.com\/appxListingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>.<br> The GUMU&#x2122; Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.<br><br> For more information on our Salesforce products and services, contact us at <a href=\"mailto:salesforce@greytrix.com\">salesforce@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n\n\n\n<p><strong>Related Posts<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2019\/07\/22\/setting-up-the-sage-100-integration-in-gumus-new-pure-lightning-interface\/\">Setting up the Sage 100 Integration in GUMU\u2019s New Pure Lightning Interface<\/a><\/li><li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2019\/11\/12\/create-entity-in-gumu-sage-100-integration-lightning-interface\/\">Create Entity in GUMU&#x2122; SAGE 100 Integration \u2013 Lightning Interface<\/a><\/li><li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2020\/01\/27\/gumu-salesforce-tricks-tips-scheduling-import-routines-in-gumu-lighting-interface\/\">GUMU&#x2122; Salesforce Tricks &amp; Tips \u2013 Scheduling Import Routines in GUMU&#x2122; Lighting Interface<\/a><\/li><li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2019\/11\/18\/gumu-salesforce-tricks-tips-data-validation-for-sage-100-country-code-in-salesforce\/\">GUMU&#x2122; Salesforce Tricks &amp; Tips \u2013 Data Validation for Sage 100 Country Code in Salesforce<\/a><\/li><li><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In our previous blog we discussed, details about setting an Entity in Sage SData to sync from Sage to Salesforce. If a user\/technical expert modifies the data definition\/structure in Sage 100 ERP, Sage updates the data definition file (MASCONTRACT.xml) of SData to include schema of the updated data. During the process, application also overrides definition\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2020\/09\/30\/adding-specific-nodes-to-mascontract-file-to-sync-records-from-sage-100-erp-to-salesforce\/\">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":[2],"tags":[975,114,974,973,968,162,163,678,970,972,184,188,969,976,978,319,745,321,739,359,360,361,367,377,744,738,743,401,679,681,680,716,424,430,971],"class_list":["post-5769","post","type-post","status-publish","format-standard","hentry","category-gumu-salesforce","tag-details-tab","tag-entity-setting","tag-erp-source-fields-subtab","tag-fields-sets","tag-groupname","tag-gumusfsage100","tag-gumusfsage100erp","tag-gumulightninginterface","tag-iis-manager","tag-iis-re-start","tag-integrate-salesforce-with-sage-100","tag-integrate-sfdc-and-sage-100","tag-mascontract","tag-open-history-table","tag-refresh-fields","tag-sage-100","tag-sage-100-connector-with-salesforce","tag-sage-100-erp","tag-sage-erp-connector-with-salesforce","tag-sage100","tag-sage100-salesforce","tag-sage100-sf","tag-salesforce","tag-salesforce-and-sage-100-integration","tag-salesforce-connector-for-sage-100","tag-salesforce-connector-for-sage-erp","tag-salesforce-connector-with-sage-erp","tag-salesforce-integration-with-sage-100","tag-salesforce-lightning-and-sage-100-integration","tag-salesforce-lightning-integration-with-sage-100","tag-salesforce-lightning-sage100-integration","tag-salesforce-sage-integration","tag-salesforce-with-sage-100-integration","tag-salesforce-sage100","tag-salesorder"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/5769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=5769"}],"version-history":[{"count":6,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/5769\/revisions"}],"predecessor-version":[{"id":5813,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/5769\/revisions\/5813"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=5769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=5769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=5769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}