Codeunit 30161 Shpfy Import Order

Shopify Connector, Microsoft.Integration.Shopify

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

  1. 23callsImportOrderAndCreateOrUpdate

SetShop line 26, internal

  1. 32callsCodeunit 30103 Shpfy Communication Mgt. SetShop

ReimportExistingOrderConfirmIfConflicting line 36, internal

  1. 43callsTable 30102 Shpfy Shop GetShopSettings
  2. 45writesTable 30102 Shpfy Shop Modify
  3. 48callsImportOrderAndCreateOrUpdate
  4. 50callsCodeunit 30163 Shpfy Order Mapping DoMapping

ImportCreateAndUpdateOrderHeaderFromMock line 53, internal

  1. 58callsEnsureOrderHeaderExists
  2. 59callsSetOrderHeaderValuesFromJson
  3. 61callsSetAndCreateRelatedRecords
  4. 62writesTable 30118 Shpfy Order Header Modify

ImportCreateAndUpdateOrderLinesFromMock line 65, internal

  1. 71callsSetAndInsertOrderLines
  2. 76writesTable 30119 Shpfy Order Line Insert

ImportOrderAndCreateOrUpdate line 91, local

  1. 104callsSetShop
  2. 107callsEnsureOrderHeaderExists
  3. 109callsRetrieveOrderHeaderJson
  4. 112callsRetrieveAndSetOrderLines
  5. 113callsGetExchangeItemLineIds
  6. 115callsTable 30118 Shpfy Order Header IsProcessed
  7. 117callsIsImportedOrderConflictingExistingOrder
  8. 118callsSetOrderAsConflicting
  9. 120callsSetOrderHeaderValuesFromJson
  10. 123callsSetAndCreateRelatedRecords
  11. 124writesTable 30118 Shpfy Order Header Modify
  12. 125callsCodeunit 30162 Shpfy Order Events OnAfterImportShopifyOrderHeader
  13. 126callsInsertOrderLinesAndRelatedRecords
  14. 128writesTable 30118 Shpfy Order Header Modify
  15. 129callsCodeunit 30160 Shpfy Order Fulfillments GetFulfillments
  16. 131callsMarkExchangeItemOrderLines
  17. 132callsConsiderRefundsInQuantityAndAmounts
  18. 133callsDeleteZeroQuantityLines
  19. 135callsCheckToCloseOrder
  20. 136callsCloseOrder
  21. 138callsShopifyInvoiceExists
  22. 139callsMarkAsProcessed
  23. 141callsCodeunit 30162 Shpfy Order Events OnAfterCreateShopifyOrderAndLines

MarkAsProcessed line 151, local

  1. 153validatesTable 30118 Shpfy Order Header Processed
  2. 154writesTable 30118 Shpfy Order Header Modify

InsertOrderLinesAndRelatedRecords line 157, local

  1. 177callsUpdateLocationIdAndDeliveryMethodOnOrderLine
  2. 178writesTable 30119 Shpfy Order Line Modify
  3. 182callsUpdateLocationIdAndDeliveryMethodOnOrderLine
  4. 183writesTable 30119 Shpfy Order Line Insert
  5. 184callsTable 30122 Shpfy Order Tax Line ImportFromJson
  6. 184callsCodeunit 30157 Shpfy Json Helper GetJsonArray
  7. 185callsImportCustomAttributtes
  8. 185callsCodeunit 30157 Shpfy Json Helper GetJsonArray
  9. 187callsTable 30114 Shpfy Data Capture Add
  10. 189callsCodeunit 30156 Shpfy Hash CalcHash

EnsureOrderHeaderExists line 192, local

  1. 198writesTable 30118 Shpfy Order Header Insert

DeleteZeroQuantityLines line 202, local

  1. 208writesTable 30119 Shpfy Order Line DeleteAll

ConsiderRefundsInQuantityAndAmounts line 211, internal

  1. 230callsTable 30118 Shpfy Order Header IsProcessed
  2. 231callsSetOrderAsConflicting
  3. 236callsTable 30118 Shpfy Order Header IsProcessed
  4. 237callsSetOrderAsConflicting
  5. 243writesTable 30119 Shpfy Order Line Modify
  6. 250callsCodeunit 30162 Shpfy Order Events OnAfterConsiderRefundsInQuantityAndAmounts
  7. 252writesTable 30118 Shpfy Order Header Modify

MarkExchangeItemOrderLines line 255, internal

  1. 268writesTable 30119 Shpfy Order Line Modify

GetExchangeItemLineIds line 273, local

  1. 293callsConvertToOrderReturnStatus
  2. 293callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  3. 300callsCodeunit 30103 Shpfy Communication Mgt. ExecuteGraphQL
  4. 302callsCodeunit 30157 Shpfy Json Helper GetJsonArray
  5. 304callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  6. 306callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  7. 309callsCodeunit 30157 Shpfy Json Helper GetJsonArray
  8. 311callsCodeunit 30157 Shpfy Json Helper GetJsonArray
  9. 313callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
  10. 313callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  11. 319callsCodeunit 30157 Shpfy Json Helper GetValueAsBoolean

IsImportedOrderConflictingExistingOrder line 322, internal

  1. 341callsCodeunit 30157 Shpfy Json Helper GetValueAsDecimal
  2. 347callsCodeunit 30156 Shpfy Hash CalcHash
  3. 352callsCodeunit 30157 Shpfy Json Helper GetValueAsDecimal

SetAndCreateRelatedRecords line 356, local

  1. 366callsTable 30122 Shpfy Order Tax Line ImportFromJson
  2. 366callsCodeunit 30157 Shpfy Json Helper GetJsonArray
  3. 367callsTable 30118 Shpfy Order Header SetWorkDescription
  4. 367callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  5. 368callsImportCustomAttributtes
  6. 368callsCodeunit 30157 Shpfy Json Helper GetJsonArray
  7. 369callsTable 30118 Shpfy Order Header UpdateTags
  8. 369callsCodeunit 30157 Shpfy Json Helper GetArrayAsText
  9. 370callsImportRisks
  10. 370callsCodeunit 30157 Shpfy Json Helper GetJsonArray
  11. 371callsCodeunit 30238 Shpfy Fulfillment Orders API GetShopifyFulfillmentOrdersFromShopifyOrder
  12. 372callsCodeunit 30191 Shpfy Shipping Charges UpdateShippingCostInfos
  13. 373callsCodeunit 30194 Shpfy Transactions UpdateTransactionInfos
  14. 376callsCodeunit 30250 Shpfy Returns API GetReturns
  15. 376callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  16. 378callsCodeunit 30228 Shpfy Refunds API GetRefunds
  17. 378callsCodeunit 30157 Shpfy Json Helper GetJsonArray

RetrieveOrderHeaderJson line 395, local

  1. 402callsTable 30114 Shpfy Data Capture Add

RetrieveOrderHeaderJson line 406, local

  1. 416callsCodeunit 30103 Shpfy Communication Mgt. ExecuteGraphQL
  2. 417callsCodeunit 30157 Shpfy Json Helper GetJsonObject

RetrieveOrderLinesJson line 420, local

  1. 434callsCodeunit 30103 Shpfy Communication Mgt. ExecuteGraphQL
  2. 435callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  3. 436callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  4. 437callsCodeunit 30157 Shpfy Json Helper GetValueAsBoolean
  5. 439callsCodeunit 30157 Shpfy Json Helper GetJsonArray

SetNewOrderHeaderValuesFromJson line 442, local

  1. 460callsCodeunit 30157 Shpfy Json Helper GetValueAsBigInteger
  2. 469callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  3. 470callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  4. 471callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  5. 472callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  6. 475callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  7. 476callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  8. 479callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  9. 480callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  10. 481callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  11. 482callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  12. 483callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  13. 484callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  14. 485callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  15. 487callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
  16. 487callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  17. 488callsSetSalespersonOnOrderHeader
  18. 491callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  19. 492callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  20. 493callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  21. 495callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  22. 497callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  23. 500callsGetName
  24. 501callsGetName2
  25. 502callsGetContactName
  26. 503callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  27. 504callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  28. 505callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  29. 506callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  30. 507callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  31. 508callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  32. 509callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  33. 511callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  34. 516callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  35. 518callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  36. 520callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  37. 526callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  38. 527callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  39. 528callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  40. 530callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  41. 532callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  42. 535callsGetName
  43. 536callsGetName2
  44. 537callsGetContactName
  45. 538callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  46. 539callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  47. 540callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  48. 541callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  49. 542callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  50. 543callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  51. 544callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  52. 545callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  53. 546callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  54. 548callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  55. 554callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  56. 555callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  57. 556callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  58. 558callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  59. 560callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  60. 563callsGetName
  61. 564callsGetName2
  62. 565callsGetContactName
  63. 566callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  64. 567callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  65. 568callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  66. 569callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  67. 570callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  68. 571callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  69. 572callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  70. 574callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  71. 580callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  72. 581callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  73. 582callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
  74. 582callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  75. 584callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
  76. 584callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  77. 586callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  78. 587callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  79. 588callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  80. 590callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  81. 592callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  82. 593callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
  83. 593callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  84. 599callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  85. 600callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
  86. 600callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  87. 602callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  88. 606callsTranslateCurrencyCode
  89. 607callsTranslateCurrencyCode

SetEditableOrderHeaderValuesFromJson line 618, local

  1. 624callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  2. 625callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  3. 626callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  4. 627callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  5. 628callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  6. 629callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  7. 630callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  8. 631callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  9. 632callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  10. 633callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  11. 634callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  12. 635callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  13. 636callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  14. 637callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  15. 638callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  16. 639callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  17. 640callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  18. 641callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  19. 642callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  20. 643callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  21. 644callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  22. 645callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  23. 646callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  24. 647callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  25. 648callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  26. 649callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  27. 650callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  28. 651callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  29. 652callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  30. 653callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  31. 654callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  32. 655callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  33. 656callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  34. 657callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  35. 658callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  36. 660callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  37. 661callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  38. 667callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  39. 668callsCodeunit 30157 Shpfy Json Helper GetJsonObject
  40. 669callsGetOrderDueDate
  41. 669callsCodeunit 30157 Shpfy Json Helper GetJsonArray
  42. 670callsConvertToCancelReason
  43. 670callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  44. 671callsConvertToFinancialStatus
  45. 671callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  46. 672callsConvertToFulfillmentStatus
  47. 672callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  48. 673callsConvertToOrderReturnStatus
  49. 673callsCodeunit 30157 Shpfy Json Helper GetValueAsText

SetOrderHeaderValuesFromJson line 676, local

  1. 679callsSetNewOrderHeaderValuesFromJson
  2. 681callsSetEditableOrderHeaderValuesFromJson

SetOrderLineValuesFromJson line 685, local

  1. 691callsCodeunit 30103 Shpfy Communication Mgt. GetIdOfGId
  2. 691callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  3. 697callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  4. 697callsCodeunit 30157 Shpfy Json Helper IsNull
  5. 699callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  6. 700callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  7. 701callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  8. 702callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  9. 703callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  10. 704callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  11. 705callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  12. 706callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  13. 707callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  14. 708callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  15. 709callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  16. 710callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  17. 712callsGetTotalLineDiscountAmount
  18. 712callsCodeunit 30157 Shpfy Json Helper GetJsonArray
  19. 713callsGetTotalLineDiscountAmount
  20. 713callsCodeunit 30157 Shpfy Json Helper GetJsonArray

RetrieveAndSetOrderLines line 717, local

  1. 725callsRetrieveOrderLinesJson
  2. 726callsSetAndInsertOrderLines

SetAndInsertOrderLines line 731, local

  1. 737callsSetOrderLineValuesFromJson
  2. 738writesTable 30119 Shpfy Order Line Insert

ImportCustomAttributtes line 783, local

  1. 790writesTable 30116 Shpfy Order Attribute DeleteAll
  2. 795callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  3. 796callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  4. 798writesTable 30116 Shpfy Order Attribute Insert
  5. 799writesTable 30116 Shpfy Order Attribute Modify

ImportCustomAttributtes line 803, local

  1. 811writesTable 30149 Shpfy Order Line Attribute DeleteAll
  2. 816callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  3. 817callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  4. 818writesTable 30149 Shpfy Order Line Attribute Insert

ImportRisks line 822, local

  1. 826callsCodeunit 30170 Shpfy Order Risks UpdateOrderRisks

GetTotalLineDiscountAmount line 835, local

  1. 840callsCodeunit 30157 Shpfy Json Helper GetValueAsDecimal

CloseOrder line 870, internal

  1. 876callsCodeunit 30103 Shpfy Communication Mgt. SetShop
  2. 878callsCodeunit 30103 Shpfy Communication Mgt. ExecuteGraphQL
  3. 879callsCodeunit 30157 Shpfy Json Helper GetValueAsBigInteger
  4. 881callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  5. 883callsCodeunit 30157 Shpfy Json Helper GetValueIntoField
  6. 888validatesTable 30118 Shpfy Order Header Closed
  7. 889writesTable 30118 Shpfy Order Header Modify

GetName2 line 934, local

  1. 940callsGetName

ConvertToFinancialStatus line 953, local

  1. 957callsCodeunit 30162 Shpfy Order Events OnBeforeConvertToFinancialStatus
  2. 961callsCodeunit 30103 Shpfy Communication Mgt. ConvertToCleanOptionValue

ConvertToFulfillmentStatus line 968, local

  1. 972callsCodeunit 30162 Shpfy Order Events OnBeforeConvertToFulfillmentStatus
  2. 976callsCodeunit 30103 Shpfy Communication Mgt. ConvertToCleanOptionValue

GetOrderDueDate line 983, local

  1. 989callsCodeunit 30157 Shpfy Json Helper GetValueAsDate

ConvertToCancelReason line 992, local

  1. 994callsCodeunit 30103 Shpfy Communication Mgt. ConvertToCleanOptionValue

UpdateLocationIdAndDeliveryMethodOnOrderLine line 1001, local

  1. 1010callsUpdateLocationIdAndDeliveryMethodOnOrderLines
  2. 1013callsUpdateLocationIdAndDeliveryMethodOnOrderLines

ConvertToOrderReturnStatus line 1033, local

  1. 1037callsCodeunit 30162 Shpfy Order Events OnBeforeConvertToOrderReturnStatus
  2. 1041callsCodeunit 30103 Shpfy Communication Mgt. ConvertToCleanOptionValue