{"id":9800,"date":"2021-10-13T14:47:58","date_gmt":"2021-10-13T21:47:58","guid":{"rendered":"https:\/\/minisoft.com\/support\/?p=9800"},"modified":"2021-10-13T14:47:59","modified_gmt":"2021-10-13T21:47:59","slug":"writing-the-tracking-number-to-netsuite","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/writing-the-tracking-number-to-netsuite\/","title":{"rendered":"Writing the tracking number to NetSuite"},"content":{"rendered":"\n<p>In order to upload tracking and weight of a package to an item fulfillment record in NetSuite, you first must get the item fulfillment data, determine if there are existing packages and find the last index of the package array. From there, loop through your tracking numbers and weight, create a package using the weight and then update the package with the tracking number.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2021\/10\/CreateUploadPackages_NS.png\"><img decoding=\"async\" loading=\"lazy\" width=\"624\" height=\"494\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2021\/10\/CreateUploadPackages_NS.png\" alt=\"\" class=\"wp-image-9801\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2021\/10\/CreateUploadPackages_NS.png 624w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2021\/10\/CreateUploadPackages_NS-300x238.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2021\/10\/CreateUploadPackages_NS-150x119.png 150w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/a><\/figure>\n\n\n\n<p><u><strong>Get item fulfillment details<\/strong><\/u><\/p>\n\n\n\n<ul><li>Customer<ul><li>This is the customer keyed constants you want to use from eFORMzCfg_NetSuiteWSParams.xml<\/li><\/ul><\/li><li>InternalID<ul><li>This is the internal ID of the Item Fulfillment that you wish to mark packed<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>Gets the item fulfillment details using SOAP calls<\/p>\n\n\n\n<p><u><strong>Mark IF packed<\/strong><\/u><\/p>\n\n\n\n<ul><li>Customer<ul><li>This is the customer keyed constants you want to use from eFORMzCfg_NetSuiteWSParams.xml<\/li><\/ul><\/li><li>InternalID<ul><li>This is the internal ID of the Item Fulfillment that you wish to mark packed<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>First the IF must be in a packed stated to create packages using script.<\/p>\n\n\n\n<p>The script Must use the following id:<\/p>\n\n\n\n<p>Script ID <code>customscript_efz_mark_packed<\/code><\/p>\n\n\n\n<p>Script deployment ID <code>customdeploy_efz_mark_packed<\/code><\/p>\n\n\n\n<p>The get and post function is <code>\u201c\u201d<\/code><\/p>\n\n\n\n<p>The Parameters is <code>\u201cparams\u201d<\/code>, a free flow text.<\/p>\n\n\n\n<p><strong><u>Create package on if<\/u><\/strong><\/p>\n\n\n\n<ul><li>Customer<ul><li>This is the customer keyed constants you want to use from eFORMzCfg_NetSuiteWSParams.xml<\/li><\/ul><\/li><li>Box<ul><li>This is the index of the box you wish to create<\/li><\/ul><\/li><li>Weight<ul><li>This is the weight of the box<\/li><\/ul><\/li><li>InternalID<ul><li>This is the internal ID of the Item Fulfillment that you wish to create package on<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>Creates the package on the IF using the package weight as this is needed to create the package using script.<\/p>\n\n\n\n<p>The script (createPackageOnIf.js) Must use the following id:<\/p>\n\n\n\n<p>Script ID <code>customscript_create_package_if<\/code><\/p>\n\n\n\n<p>Script deployment ID <code>customdeploy_create_package_if<\/code><\/p>\n\n\n\n<p>The get and post function is <code>\u201ccreatePackage\u201d<\/code><\/p>\n\n\n\n<p>The Parameters is <code>\u201cparams\u201d<\/code>, a free flow text.<\/p>\n\n\n\n<p><strong><u>Upload tracking<\/u><\/strong><\/p>\n\n\n\n<p>The input to this project is the follow:<\/p>\n\n\n\n<ul><li>Customer<ul><li>This is the customer keyed constants you want to use from eFORMzCfg_NetSuiteWSParams.xml<\/li><\/ul><\/li><li>Box<ul><li>This is the index of the box you wish to create<\/li><\/ul><\/li><li>Tracking<ul><li>The tracking number you want to attach to the box<\/li><\/ul><\/li><li>InternalID<ul><li>This is the internal ID of the Item Fulfillment that you wish to create package on<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>Attaches Tracking to a package on an item fulfillment using script.<\/p>\n\n\n\n<p>The script (createPackageOnIf.js) Must use the following id:<\/p>\n\n\n\n<p>Script ID <code>customscript_attach_tracking_to_package<\/code><\/p>\n\n\n\n<p>Script deployment ID <code>customdeploy_attach_tracking_to_package<\/code><\/p>\n\n\n\n<p>The get and post function is <code>\u201cattachTracking\u201d<\/code><\/p>\n\n\n\n<p>The Parameters is <code>\u201cparams\u201d<\/code>, a free flow text.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to upload tracking and weight of a package to an item fulfillment record in NetSuite, you first must get the item fulfillment data, determine if there are existing packages and find the last index of the package array. From there, loop through your tracking numbers and weight, create a package using the weight [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[125],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/9800"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=9800"}],"version-history":[{"count":2,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/9800\/revisions"}],"predecessor-version":[{"id":9804,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/9800\/revisions\/9804"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=9800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=9800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=9800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}