{"id":2449,"date":"2022-07-12T21:14:37","date_gmt":"2022-07-12T16:14:37","guid":{"rendered":"https:\/\/omar-iqbal.com\/?p=2449"},"modified":"2023-11-23T19:06:43","modified_gmt":"2023-11-23T14:06:43","slug":"create-consignment-replenishment-order-using-x-code","status":"publish","type":"post","link":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/","title":{"rendered":"Create consignment replenishment order using X++ code"},"content":{"rendered":"\n<p>In this article we will see how we can create consignment replenishment order using X++ code in Microsoft Dynamics Finance &amp; Operations.<\/p>\n\n\n\n<p>We will create a new class named as <strong>ConsignmentReplenishmentOrderHelper<\/strong> and in this class we will add some methods and using those method we will create and post product receipt of consignment replenishment order.<\/p>\n\n\n\n<p>Create a new method named as <strong>getOrderNumber<\/strong> in this class to get the new order number from number sequence.<\/p>\n\n\n<pre>public ConsignmentReplenishmentOrderNumber getOrderNumber()\n    {\n        NumberSeq num = new NumberSeq();\n        num = NumberSeq::newGetNum(PurchParameters::numRefReplenishmentOrder());\n \n        return num.num();\n    }\n<\/pre>\n\n\n<p>Create a new method named as <strong>getDeliveryAddressFromWH<\/strong> in this class to get the logistics postal address from the warehouse name.<\/p>\n\n\n<pre>private LogisticsPostalAddress getDeliveryAddressFromWH(InventLocationId _locationId)\n    {\n        InventLocation                      inventLocation;\n        LogisticsLocation                   logisticsLocation;\n        LogisticsLocationRole               logisticsLocationRole;\n        LogisticsPostalAddress              logisticsPostalAddress;\n        InventLocationLogisticsLocation     inventWHLogisticsLocation;\n        InventLocationLogisticsLocationRole inventLocationLogisticsLocationRole;\n\n        select logisticsPostalAddress\n            join logisticsLocation where <br>logisticsPostalAddress.Location  == logisticsLocation.RecId\n            join inventWHLogisticsLocation where inventWHLogisticsLocation.Location == logisticsLocation.RecId\n            join InventLocationLogisticsLocationRole where inventLocationLogisticsLocationRole.LocationLogisticsLocation   == inventWHLogisticsLocation.RecId\n            join logisticsLocationRole where <br>logisticsLocationRole.RecId  == InventLocationLogisticsLocationRole.LocationRole\n            join inventLocation where inventLocation.RecId                              == inventWHLogisticsLocation.InventLocation\n                                &amp;&amp; inventLocation.InventLocationId                      == _locationId\n                                &amp;&amp; logisticsLocationRole.Type                           == LogisticsLocationRoleType::Delivery\n                                &amp;&amp; inventWHLogisticsLocation.IsPrimary                  == NoYes::Yes;\n \n        return logisticsPostalAddress;\n    }\n<\/pre>\n\n\n<h4 id=\"creation-of-consignment-replenishment-order-header\" class=\"wp-block-heading\">Creation of Consignment Replenishment Order Header<\/h4>\n\n\n\n<p>Create a new method named as <strong>createConsignmentReplenishmentOrderHeader<\/strong> in this class to create the <strong>ConsignmentReplenishmentOrderHeader<\/strong> record by passing the <strong>VendTable<\/strong> record and <strong>DeliveryDate<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">public ConsignmentReplenishmentOrderHeader createConsignmentReplenishmentOrderHeader(VendTable _vendTable, Date _shipDate)\n    {\n        ConsignmentReplenishmentOrderHeader consignmentJournalHeader;\n        LogisticsLocation                   location;\n\n        consignmentJournalHeader.ReplenishmentOrderNumber    = this.getOrderNumber();\n        consignmentJournalHeader.OrderVendorAccountNumber    = _vendTable.AccountNum;\n        consignmentJournalHeader.DefaultReceivingSiteId      = _vendTable.InventSiteId;\n        consignmentJournalHeader.DefaultReceivingWarehouseId = _vendTable.InventLocation;\n        consignmentJournalHeader.RequestedDeliveryDate       = _shipDate;\n        consignmentJournalHeader.ConfirmedDeliveryDate       = _shipDate;\n        consignmentJournalHeader.DeliveryPostalAddress       = this.getDeliveryAddressFromWH(_vendTable.InventLocation).RecId;\n        location                                             = LogisticsLocation::find(LogisticsPostalAddress::findRecId(consignmentJournalHeader.DeliveryPostalAddress).Location);\n        consignmentJournalHeader.DeliveryAddressName         = location.Description;\n        consignmentJournalHeader.defaultField(fieldnum(ConsignmentReplenishmentOrderHeader, AddressRefRecId));\n        consignmentJournalHeader.defaultField(fieldnum(ConsignmentReplenishmentOrderHeader, AddressRefTableId));\n\n        consignmentJournalHeader.insert();\n\n        return consignmentJournalHeader;\n    }\n<\/pre>\n\n\n\n<h4 id=\"creation-of-consignment-replenishment-order-line\" class=\"wp-block-heading\">Creation of Consignment Replenishment Order Line<\/h4>\n\n\n\n<p>Create a new method named as <strong>createConsignmentReplenishmentOrderLine<\/strong> in this class to create the <strong>ConsignmentReplenishmentOrderLine<\/strong> record by passing the <strong>ConsignmentReplenishmentOrderHeader<\/strong> record, <strong>Line Number<\/strong>, <strong>Item Id<\/strong>, <strong>Quantity<\/strong>, <strong>Unit ID<\/strong>.<\/p>\n\n\n<pre>public void createConsignmentReplenishmentOrderLine(<br>ConsignmentReplenishmentOrderHeader _header, <br>TradeLineNumber _lineNum, <br>ItemId _itemId, <br>ConsignmentReplenishmentQuantity _quantity, <br>UnitOfMeasureSymbol _unitId)\n    {\n        ConsignmentReplenishmentOrderLine replenishmentOrderLine;\n        InventDim                         inventDimPurchSetup,inventDimItemLocation, inventDim;\n        InventItemPurchSetup              inventItemPurchSetup;\n        InventItemLocation                inventItemLocation;\n\n        replenishmentOrderLine.DeliveryAddressName                    = _header.DeliveryAddressName;\n        replenishmentOrderLine.DeliveryPostalAddress                  = _header.DeliveryPostalAddress;\n        replenishmentOrderLine.InventTransId                          = NumberSeq::newGetNum(InventParameters::numRefInventTransId()).num();\n        replenishmentOrderLine.ItemId                                 = _itemId;\n        replenishmentOrderLine.LineNumber                             = _lineNum;\n        replenishmentOrderLine.ReplenishmentQuantity                  = _quantity;\n        replenishmentOrderLine.ReplenishmentInventoryQuantity         = _quantity;\n        replenishmentOrderLine.RemainingInventoryPhysicalQuantity     = _quantity;\n        replenishmentOrderLine.RemainingReplenishmentPhysicalQuantity = _quantity;\n        replenishmentOrderLine.ReplenishmentOrderLineStatus           = ConsignmentReplenishmentOrderLineStatus::OpenOrder;\n        replenishmentOrderLine.ReplenishmentOrderNumber               = _header.ReplenishmentOrderNumber;\n        replenishmentOrderLine.ReplenishmentUnitId                    = _unitId;\n        replenishmentOrderLine.ConfirmedDeliveryDate                  = _header.RequestedDeliveryDate;\n        replenishmentOrderLine.RequestedDeliveryDate                  = _header.RequestedDeliveryDate;\n        replenishmentOrderLine.defaultField(fieldnum(ConsignmentReplenishmentOrderLine, AddressRefRecId));\n        replenishmentOrderLine.defaultField(fieldnum(ConsignmentReplenishmentOrderLine, AddressRefTableId));\n\n        inventDimPurchSetup = InventDim::find(InventItemPurchSetup::find(_itemId,inventDim::inventDimIdBlank()).InventDimIdDefault);\n\n        inventDimItemLocation.InventLocationId = inventDimPurchSetup.InventLocationId;\n        inventDimItemLocation = InventDim::findOrCreate(inventDimItemLocation);\n\n        inventItemLocation = InventItemLocation::find(_itemId,inventDimItemLocation.inventDimId);\n\n        inventDim.InventSiteId = inventDimPurchSetup.InventSiteId;\n        inventDim.InventLocationId = inventDimPurchSetup.InventLocationId;\n        inventDim.wMSLocationId = InventItemLocation.WMSLocationIdDefaultReceipt;\n        inventDim = InventDim::findOrCreate(inventDim);\n\n        replenishmentOrderLine.InventDimId = inventDim.inventDimId;\n        \n        replenishmentOrderLine.insert();\n    }\n<\/pre>\n\n\n<p>After creating header and lines record for consignment replenishment order, we will post a product receipt using X++ code.<\/p>\n\n\n\n<h4 id=\"posting-of-product-receipt-for-consignment-replenishment-order\" class=\"wp-block-heading\">Posting of product receipt for Consignment Replenishment Order<\/h4>\n\n\n\n<p>For posting a product receipt of consignment replenishment order we can post a complete product receipt or we can post it partially as well.<\/p>\n\n\n\n<p>We will create a method in this class to post product receipt named as <strong>createConsignmentReplenishmentOrderReceipt<\/strong>, this takes <strong>ConsignmentReplenishmentOrderHeader<\/strong> record, <strong>External product receipt number<\/strong> and <strong>External product receipt date<\/strong> as mandatory parameters. If you want to post partial product receipt we have two optional parameters for this as well. Two containers first one to pass on line numbers and second one to pass on quantities to receive of each respective line.<\/p>\n\n\n<pre>public void createConsignmentReplenishmentOrderReceipt(<br>ConsignmentReplenishmentOrderHeader _consignmentJournalHeader,\nTransDate  _transDate, <br>ConsignmentExternalProductReceiptNumber _externalDocumentNumber,\ncontainer _lineNumbers,\ncontainer _qtysReceiveNow)\n    {\n        ConsignmentReplenishmentOrderFormLetter consignmentReplenishmentOrderFormLetter;\n        ConsignmentDraftReplenishmentOrderJournalHeader parmTable;\n        ConsignmentDraftReplenishmentOrderJournalLine parmLine;\n        int i;\n\n        try\n        {\n            consignmentReplenishmentOrderFormLetter = ConsignmentReplenishmentOrderFormLetter::construct(DocumentStatus::PackingSlip);\n            \/\/ Setting up the FormLetter framework data.\n            consignmentReplenishmentOrderFormLetter.parmReplenishmentOrderHeader(_consignmentJournalHeader); \/\/Replenishment order header\n            consignmentReplenishmentOrderFormLetter.transDate(_transDate);\n            consignmentReplenishmentOrderFormLetter.printFormLetter(false);\n            consignmentReplenishmentOrderFormLetter.usePrintManagement(false);\n            consignmentReplenishmentOrderFormLetter.printout(Printout::Current);\n\n            consignmentReplenishmentOrderFormLetter.chooseLines(true);\n\n            if(conLen(_lineNumbers) &gt;= 1)\n            {\n                for (i = 1; i &lt;= conLen(_lineNumbers); i++)\n                {\n                    TradeLineNumber lineNumber = conPeek(_lineNumbers,i);\n                    ConsignmentReplenishmentQuantityReceiveNow qtyReceive = conPeek(_qtysReceiveNow,i);\n\n                    select firstonly ReceiveReplenishmentQuantityNow from parmLine\n                        where parmLine.ParmId == consignmentReplenishmentOrderFormLetter.parmId()\n                            &amp;&amp; parmLine.ReplenishmentOrderLineNumber == lineNumber;\n\n                    ConsignmentReplenishmentQuantityReceiveNow actualQty = parmLine.ReceiveReplenishmentQuantityNow;\n\n                    parmLine.clear();\n\n                    update_recordSet parmLine\n                setting\n                    ReceiveReplenishmentQuantityNow = qtyReceive,\n                    RemainingInventoryQuantityAfter = actualQty - qtyReceive,\n                    RemainingReplenishmentQuantityAfter = actualQty - qtyReceive,\n                    ReceiveInventoryQuantityNow = qtyReceive\n                where parmLine.ParmId == consignmentReplenishmentOrderFormLetter.parmId()\n                    &amp;&amp; parmLine.ReplenishmentOrderLineNumber == lineNumber;\n                }\n            }\n\n            update_recordSet parmTable\n            setting ExternalDocumentNumber = _externalDocumentNumber\n            where parmTable.ParmId == consignmentReplenishmentOrderFormLetter.parmId();\n       \n            consignmentReplenishmentOrderFormLetter.runOperation();\n             \n        }\n        catch (Exception::CLRError)\n        {\n            System.Exception netExcepn = CLRInterop::getLastException();\n            Info(strFmt('%1', netExcepn.Message));\n        }\n    }\n<\/pre>\n\n\n<p>For looking over the functional process of Creation of consignment replenishment order see the article below.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-omar-iqbal-039-s-blog wp-block-embed-omar-iqbal-039-s-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"J6Y34nN1vS\"><a href=\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/inventory-consignment-ownership-process-in-microsoft-dynamics-finance-operations\/\">Inventory consignment\u00a0ownership process in Microsoft Dynamics Finance &#038; Operations<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Inventory consignment\u00a0ownership process in Microsoft Dynamics Finance &#038; Operations&#8221; &#8212; Omar Iqbal&#039;s Blog\" src=\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/inventory-consignment-ownership-process-in-microsoft-dynamics-finance-operations\/embed\/#?secret=2sxqySLWDd#?secret=J6Y34nN1vS\" data-secret=\"J6Y34nN1vS\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Thank you for reading this article hope you find it useful.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.linkedin.com\/in\/omar-iqbal-here\/\" target=\"_blank\" rel=\"noreferrer noopener\">Omar Iqbal<\/a><\/p>\n\n\n\n<p>Technical Consultant<\/p>\n\n\n\n<p>References:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/www.instructorbrandon.com\/optimizing-inventory-consignment-process-microsoft-dynamics-365-technical-part\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"\">https:\/\/www.instructorbrandon.com\/optimizing-inventory-consignment-process-microsoft-dynamics-365-technical-part\/<\/a><\/li><li><a href=\"https:\/\/community.dynamics.com\/365\/supply-chain-management\/f\/dynamics-365-supply-chain-management-forum\/425369\/post-product-receipt-of-consignment-replenishment-order-using-x\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"\">https:\/\/community.dynamics.com\/365\/supply-chain-management\/f\/dynamics-365-supply-chain-management-forum\/425369\/post-product-receipt-of-consignment-replenishment-order-using-x<\/a><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"In this article we will see how we can create consignment replenishment order using X++ code in Microsoft&hellip;\n","protected":false},"author":1,"featured_media":2457,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19,42,30],"tags":[45,47,21,20,33,48,38,31],"class_list":{"0":"post-2449","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-finance-operations","8":"category-microsoft-dynamics-ax","9":"category-x","10":"tag-consignment-replenishment-order","11":"tag-consignment-replenishment-order-product-receipt","12":"tag-finance-operations","13":"tag-finops","14":"tag-microsoft-dynamics-ax","15":"tag-partial-posting-of-consignment-replenishment-order","16":"tag-product-receipt","17":"tag-x","18":"cs-entry","19":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create consignment replenishment order using X++ code - Omar Iqbal&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create consignment replenishment order using X++ code - Omar Iqbal&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"In this article we will see how we can create consignment replenishment order using X++ code in Microsoft&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Omar Iqbal&#039;s Blog\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/umerk26\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-12T16:14:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-23T14:06:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2022\/07\/Consignment_Replenishment_xpp.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"518\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"omar_iqbal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/omarshykh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"omar_iqbal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/\"},\"author\":{\"name\":\"omar_iqbal\",\"@id\":\"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4\"},\"headline\":\"Create consignment replenishment order using X++ code\",\"datePublished\":\"2022-07-12T16:14:37+00:00\",\"dateModified\":\"2023-11-23T14:06:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/\"},\"wordCount\":336,\"image\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2022\/07\/Consignment_Replenishment_xpp.jpg\",\"keywords\":[\"consignment replenishment order\",\"consignment replenishment order product receipt\",\"Finance &amp; Operations\",\"FinOps\",\"Microsoft Dynamics AX\",\"partial posting of consignment replenishment order\",\"product receipt\",\"X++\"],\"articleSection\":[\"Finance &amp; Operations\",\"Microsoft Dynamics AX\",\"X++\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/\",\"url\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/\",\"name\":\"Create consignment replenishment order using X++ code - Omar Iqbal&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/omar-iqbal.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2022\/07\/Consignment_Replenishment_xpp.jpg\",\"datePublished\":\"2022-07-12T16:14:37+00:00\",\"dateModified\":\"2023-11-23T14:06:43+00:00\",\"author\":{\"@id\":\"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4\"},\"breadcrumb\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#primaryimage\",\"url\":\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2022\/07\/Consignment_Replenishment_xpp.jpg\",\"contentUrl\":\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2022\/07\/Consignment_Replenishment_xpp.jpg\",\"width\":518,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/omar-iqbal.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Finance &amp; Operations\",\"item\":\"https:\/\/omar-iqbal.com\/index.php\/category\/finance-operations\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create consignment replenishment order using X++ code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/omar-iqbal.com\/#website\",\"url\":\"https:\/\/omar-iqbal.com\/\",\"name\":\"Omar Iqbal&#039;s Blog\",\"description\":\"Associate Technical Consultant\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/omar-iqbal.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4\",\"name\":\"omar_iqbal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/omar-iqbal.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/77c8e6d449070e5f91d3609398694fed75736ca7b40f3b8b29a94259cb446d49?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/77c8e6d449070e5f91d3609398694fed75736ca7b40f3b8b29a94259cb446d49?s=96&d=mm&r=g\",\"caption\":\"omar_iqbal\"},\"sameAs\":[\"https:\/\/omar-iqbal.com\",\"https:\/\/www.facebook.com\/umerk26\",\"https:\/\/www.instagram.com\/omariqbal_here\/\",\"https:\/\/www.linkedin.com\/in\/omar-iqbal-here\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/omarshykh\"],\"url\":\"https:\/\/omar-iqbal.com\/index.php\/author\/omar_iqbal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create consignment replenishment order using X++ code - Omar Iqbal&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/","og_locale":"en_US","og_type":"article","og_title":"Create consignment replenishment order using X++ code - Omar Iqbal&#039;s Blog","og_description":"In this article we will see how we can create consignment replenishment order using X++ code in Microsoft&hellip;","og_url":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/","og_site_name":"Omar Iqbal&#039;s Blog","article_author":"https:\/\/www.facebook.com\/umerk26","article_published_time":"2022-07-12T16:14:37+00:00","article_modified_time":"2023-11-23T14:06:43+00:00","og_image":[{"width":518,"height":500,"url":"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2022\/07\/Consignment_Replenishment_xpp.jpg","type":"image\/jpeg"}],"author":"omar_iqbal","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/omarshykh","twitter_misc":{"Written by":"omar_iqbal","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#article","isPartOf":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/"},"author":{"name":"omar_iqbal","@id":"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4"},"headline":"Create consignment replenishment order using X++ code","datePublished":"2022-07-12T16:14:37+00:00","dateModified":"2023-11-23T14:06:43+00:00","mainEntityOfPage":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/"},"wordCount":336,"image":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#primaryimage"},"thumbnailUrl":"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2022\/07\/Consignment_Replenishment_xpp.jpg","keywords":["consignment replenishment order","consignment replenishment order product receipt","Finance &amp; Operations","FinOps","Microsoft Dynamics AX","partial posting of consignment replenishment order","product receipt","X++"],"articleSection":["Finance &amp; Operations","Microsoft Dynamics AX","X++"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/","url":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/","name":"Create consignment replenishment order using X++ code - Omar Iqbal&#039;s Blog","isPartOf":{"@id":"https:\/\/omar-iqbal.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#primaryimage"},"image":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#primaryimage"},"thumbnailUrl":"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2022\/07\/Consignment_Replenishment_xpp.jpg","datePublished":"2022-07-12T16:14:37+00:00","dateModified":"2023-11-23T14:06:43+00:00","author":{"@id":"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4"},"breadcrumb":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#primaryimage","url":"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2022\/07\/Consignment_Replenishment_xpp.jpg","contentUrl":"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2022\/07\/Consignment_Replenishment_xpp.jpg","width":518,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/omar-iqbal.com\/index.php\/2022\/07\/12\/create-consignment-replenishment-order-using-x-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/omar-iqbal.com\/"},{"@type":"ListItem","position":2,"name":"Finance &amp; Operations","item":"https:\/\/omar-iqbal.com\/index.php\/category\/finance-operations\/"},{"@type":"ListItem","position":3,"name":"Create consignment replenishment order using X++ code"}]},{"@type":"WebSite","@id":"https:\/\/omar-iqbal.com\/#website","url":"https:\/\/omar-iqbal.com\/","name":"Omar Iqbal&#039;s Blog","description":"Associate Technical Consultant","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/omar-iqbal.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4","name":"omar_iqbal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/omar-iqbal.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/77c8e6d449070e5f91d3609398694fed75736ca7b40f3b8b29a94259cb446d49?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/77c8e6d449070e5f91d3609398694fed75736ca7b40f3b8b29a94259cb446d49?s=96&d=mm&r=g","caption":"omar_iqbal"},"sameAs":["https:\/\/omar-iqbal.com","https:\/\/www.facebook.com\/umerk26","https:\/\/www.instagram.com\/omariqbal_here\/","https:\/\/www.linkedin.com\/in\/omar-iqbal-here\/","https:\/\/x.com\/https:\/\/twitter.com\/omarshykh"],"url":"https:\/\/omar-iqbal.com\/index.php\/author\/omar_iqbal\/"}]}},"_links":{"self":[{"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/posts\/2449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/comments?post=2449"}],"version-history":[{"count":11,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/posts\/2449\/revisions"}],"predecessor-version":[{"id":2480,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/posts\/2449\/revisions\/2480"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/media\/2457"}],"wp:attachment":[{"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/media?parent=2449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/categories?post=2449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/tags?post=2449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}