{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":50820,"path":"source-to-pay-operations/supplier-lifecycle-operations/run-fix-script.md","title":"Run the fix script to enable M2M mapping","bundle":null,"doc_type":null,"release":"australia","body":"\n# Run the fix script to enable M2M mapping\n\nRun the fix script to enable M2M mapping between supplier contact and suppliers.\n\n## Before you begin\n\nVerify that the application scope is set to Supplier Common Architecture. For more information, see [Application picker](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/application-development/c_ApplicationPicker.md).\n\nRole required: admin\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Definition** &gt; **Fix Scripts**.\n\n    Verify that the application scope is set to Supplier Common Architecture.\n\n2.  Select **New**.\n\n3.  Fill in the following fields to create the fix script:\n\n<table id=\"table_fxl_tx4_mdc\"><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nName\n\n</td><td>\n\nUnique, descriptive name for the fix script.\n\n</td></tr><tr><td>\n\nDescription\n\n</td><td>\n\nInclude the disclaimer: **This script is intended for a one-time execution in an instance and must remain unaltered**.\n\n</td></tr><tr><td>\n\nScript\n\n</td><td>\n\nEnter the following code for the fix script:```\nvar m2mEnableUtil = new sn_slm.M2MSupplierSupportUtil();\ngs.info(\"Current status of M2M Supplier support: \" + m2mEnableUtil.isM2MSupplierSupported());\ngs.info(\"Enabled M2M supplier support: \" + m2mEnableUtil.enableM2MSupplierSupport());\n```\n\n</td></tr></tbody>\n</table>    \\[Omitted image \"run-fix-script.png\"\\] Alt text: Fix script details page\n\n4.  Save and select **Run Fix Script**.\n\n    A version record is created after the script is executed.\n\n\n## What to do next\n\nVerify if the version record is created for `M2MSupplierSupportUtil script include`.\n\n**Parent Topic:**[Enable M2M mapping between supplier contact and suppliers](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/source-to-pay-operations/supplier-lifecycle-operations/enable-m2m-supplier-contacts.md)\n\n**Related topics**  \n\n\n[Verify version record](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/source-to-pay-operations/supplier-lifecycle-operations/verify-version-record.md)\n\n[Remove the unique constraint from Email Domain](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/source-to-pay-operations/supplier-lifecycle-operations/remove-unique-constraint.md)\n\n"}}