Codeunit 30161 Shpfy Import Order
src/Apps/W1/Shopify/App/src/Order handling/Codeunits/ShpfyImportOrder.Codeunit.al36 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
OnRun line 21, trigger
SetShop line 26, internal
- 32callsCodeunit 30103 Shpfy Communication Mgt. SetShop
ReimportExistingOrderConfirmIfConflicting line 36, internal
- 43callsTable 30102 Shpfy Shop GetShopSettings
- 45writesTable 30102 Shpfy Shop Modify
- 48callsImportOrderAndCreateOrUpdate
- 50callsCodeunit 30163 Shpfy Order Mapping DoMapping
ImportCreateAndUpdateOrderHeaderFromMock line 53, internal
ImportCreateAndUpdateOrderLinesFromMock line 65, internal
- 71callsSetAndInsertOrderLines
- 76writesTable 30119 Shpfy Order Line Insert
ImportOrderAndCreateOrUpdate line 91, local
- 104callsSetShop
- 107callsEnsureOrderHeaderExists
- 109callsRetrieveOrderHeaderJson
- 112callsRetrieveAndSetOrderLines
- 113callsGetExchangeItemLineIds
- 115callsTable 30118 Shpfy Order Header IsProcessed
- 117callsIsImportedOrderConflictingExistingOrder
- 118callsSetOrderAsConflicting
- 120callsSetOrderHeaderValuesFromJson
- 123callsSetAndCreateRelatedRecords
- 124writesTable 30118 Shpfy Order Header Modify
- 125callsCodeunit 30162 Shpfy Order Events OnAfterImportShopifyOrderHeader
- 126callsInsertOrderLinesAndRelatedRecords
- 128writesTable 30118 Shpfy Order Header Modify
- 129callsCodeunit 30160 Shpfy Order Fulfillments GetFulfillments
- 131callsMarkExchangeItemOrderLines
- 132callsConsiderRefundsInQuantityAndAmounts
- 133callsDeleteZeroQuantityLines
- 135callsCheckToCloseOrder
- 136callsCloseOrder
- 138callsShopifyInvoiceExists
- 139callsMarkAsProcessed
- 141callsCodeunit 30162 Shpfy Order Events OnAfterCreateShopifyOrderAndLines
MarkAsProcessed line 151, local
- 153validatesTable 30118 Shpfy Order Header Processed
- 154writesTable 30118 Shpfy Order Header Modify
EnsureOrderHeaderExists line 192, local
- 198writesTable 30118 Shpfy Order Header Insert
DeleteZeroQuantityLines line 202, local
- 208writesTable 30119 Shpfy Order Line DeleteAll
ConsiderRefundsInQuantityAndAmounts line 211, internal
- 230callsTable 30118 Shpfy Order Header IsProcessed
- 231callsSetOrderAsConflicting
- 236callsTable 30118 Shpfy Order Header IsProcessed
- 237callsSetOrderAsConflicting
- 243writesTable 30119 Shpfy Order Line Modify
- 250callsCodeunit 30162 Shpfy Order Events OnAfterConsiderRefundsInQuantityAndAmounts
- 252writesTable 30118 Shpfy Order Header Modify
MarkExchangeItemOrderLines line 255, internal
- 268writesTable 30119 Shpfy Order Line Modify
GetExchangeItemLineIds line 273, local
- 293callsConvertToOrderReturnStatus
- 293callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 300callsCodeunit 30103 Shpfy Communication Mgt. ExecuteGraphQL
- 302callsCodeunit 30157 Shpfy Json Helper GetJsonArray
- 304callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 306callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 309callsCodeunit 30157 Shpfy Json Helper GetJsonArray
- 311callsCodeunit 30157 Shpfy Json Helper GetJsonArray
- 313callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
- 313callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 319callsCodeunit 30157 Shpfy Json Helper GetValueAsBoolean
IsImportedOrderConflictingExistingOrder line 322, internal
- 341callsCodeunit 30157 Shpfy Json Helper GetValueAsDecimal
- 347callsCodeunit 30156 Shpfy Hash CalcHash
- 352callsCodeunit 30157 Shpfy Json Helper GetValueAsDecimal
RetrieveOrderHeaderJson line 395, local
- 402callsTable 30114 Shpfy Data Capture Add
RetrieveOrderHeaderJson line 406, local
- 416callsCodeunit 30103 Shpfy Communication Mgt. ExecuteGraphQL
- 417callsCodeunit 30157 Shpfy Json Helper GetJsonObject
RetrieveOrderLinesJson line 420, local
- 434callsCodeunit 30103 Shpfy Communication Mgt. ExecuteGraphQL
- 435callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 436callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 437callsCodeunit 30157 Shpfy Json Helper GetValueAsBoolean
- 439callsCodeunit 30157 Shpfy Json Helper GetJsonArray
SetNewOrderHeaderValuesFromJson line 442, local
- 460callsCodeunit 30157 Shpfy Json Helper GetValueAsBigInteger
- 469callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 470callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 471callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 472callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 475callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 476callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 479callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 480callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 481callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 482callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 483callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 484callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 485callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 487callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
- 487callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 488callsSetSalespersonOnOrderHeader
- 491callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 492callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 493callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 495callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 497callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 500callsGetName
- 501callsGetName2
- 502callsGetContactName
- 503callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 504callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 505callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 506callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 507callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 508callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 509callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 511callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 516callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 518callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 520callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 526callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 527callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 528callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 530callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 532callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 535callsGetName
- 536callsGetName2
- 537callsGetContactName
- 538callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 539callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 540callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 541callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 542callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 543callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 544callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 545callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 546callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 548callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 554callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 555callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 556callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 558callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 560callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 563callsGetName
- 564callsGetName2
- 565callsGetContactName
- 566callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 567callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 568callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 569callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 570callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 571callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 572callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 574callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 580callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 581callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 582callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
- 582callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 584callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
- 584callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 586callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 587callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 588callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 590callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 592callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 593callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
- 593callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 599callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 600callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
- 600callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 602callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 606callsTranslateCurrencyCode
- 607callsTranslateCurrencyCode
SetEditableOrderHeaderValuesFromJson line 618, local
- 624callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 625callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 626callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 627callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 628callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 629callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 630callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 631callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 632callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 633callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 634callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 635callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 636callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 637callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 638callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 639callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 640callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 641callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 642callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 643callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 644callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 645callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 646callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 647callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 648callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 649callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 650callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 651callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 652callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 653callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 654callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 655callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 656callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 657callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 658callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 660callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 661callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 667callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 668callsCodeunit 30157 Shpfy Json Helper GetJsonObject
- 669callsGetOrderDueDate
- 669callsCodeunit 30157 Shpfy Json Helper GetJsonArray
- 670callsConvertToCancelReason
- 670callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 671callsConvertToFinancialStatus
- 671callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 672callsConvertToFulfillmentStatus
- 672callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 673callsConvertToOrderReturnStatus
- 673callsCodeunit 30157 Shpfy Json Helper GetValueAsText
SetOrderHeaderValuesFromJson line 676, local
SetOrderLineValuesFromJson line 685, local
- 691callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
- 691callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 697callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 697callsCodeunit 30157 Shpfy Json Helper IsNull
- 699callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 700callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 701callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 702callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 703callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 704callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 705callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 706callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 707callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 708callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 709callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 710callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 712callsGetTotalLineDiscountAmount
- 712callsCodeunit 30157 Shpfy Json Helper GetJsonArray
- 713callsGetTotalLineDiscountAmount
- 713callsCodeunit 30157 Shpfy Json Helper GetJsonArray
RetrieveAndSetOrderLines line 717, local
SetAndInsertOrderLines line 731, local
- 737callsSetOrderLineValuesFromJson
- 738writesTable 30119 Shpfy Order Line Insert
ImportCustomAttributtes line 783, local
- 790writesTable 30116 Shpfy Order Attribute DeleteAll
- 795callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 796callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 798writesTable 30116 Shpfy Order Attribute Insert
- 799writesTable 30116 Shpfy Order Attribute Modify
ImportCustomAttributtes line 803, local
- 811writesTable 30149 Shpfy Order Line Attribute DeleteAll
- 816callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 817callsCodeunit 30157 Shpfy Json Helper GetValueAsText
- 818writesTable 30149 Shpfy Order Line Attribute Insert
ImportRisks line 822, local
- 826callsCodeunit 30170 Shpfy Order Risks UpdateOrderRisks
GetTotalLineDiscountAmount line 835, local
- 840callsCodeunit 30157 Shpfy Json Helper GetValueAsDecimal
CloseOrder line 870, internal
- 876callsCodeunit 30103 Shpfy Communication Mgt. SetShop
- 878callsCodeunit 30103 Shpfy Communication Mgt. ExecuteGraphQL
- 879callsCodeunit 30157 Shpfy Json Helper GetValueAsBigInteger
- 881callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 883callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
- 888validatesTable 30118 Shpfy Order Header Closed
- 889writesTable 30118 Shpfy Order Header Modify
ConvertToFinancialStatus line 953, local
- 957callsCodeunit 30162 Shpfy Order Events OnBeforeConvertToFinancialStatus
- 961callsCodeunit 30103 Shpfy Communication Mgt. ConvertToCleanOptionValue
ConvertToFulfillmentStatus line 968, local
- 972callsCodeunit 30162 Shpfy Order Events OnBeforeConvertToFulfillmentStatus
- 976callsCodeunit 30103 Shpfy Communication Mgt. ConvertToCleanOptionValue
GetOrderDueDate line 983, local
- 989callsCodeunit 30157 Shpfy Json Helper GetValueAsDate
ConvertToCancelReason line 992, local
- 994callsCodeunit 30103 Shpfy Communication Mgt. ConvertToCleanOptionValue
UpdateLocationIdAndDeliveryMethodOnOrderLine line 1001, local
ConvertToOrderReturnStatus line 1033, local
- 1037callsCodeunit 30162 Shpfy Order Events OnBeforeConvertToOrderReturnStatus
- 1041callsCodeunit 30103 Shpfy Communication Mgt. ConvertToCleanOptionValue