---
id: object/codeunit/1917
type: object
title: Codeunit 1917 "MigrationQB Helper Functions"
summary: Codeunit 1917 "MigrationQB Helper Functions" in QBMigration. 29 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - qbmigration
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: cad9ca925f290ef07f03c0bf15ecbd0e62ec82c52e4933e653f609d5faf019f5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/QBMigration/app/src/Support/MigrationQBHelperFunctions.Codeunit.al
    title: src/Apps/W1/QBMigration/app/src/Support/MigrationQBHelperFunctions.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1917
name: MigrationQB Helper Functions
namespace: null
app: QBMigration
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 41
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 5
  called_by: 12
  implements: 0
---

# Codeunit 1917 "MigrationQB Helper Functions"

> Codeunit 1917 "MigrationQB Helper Functions" in QBMigration. 29 public procedures. Introduced in BC29, still in BC30.

QBMigration · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/QBMigration/app/src/Support/MigrationQBHelperFunctions.Codeunit.al) · facts from BC29

## Procedures

- `GetEntities(EntityName: Text; var JArray: JsonArray): Boolean`
- `GetEntities(QBQuery: Text; EntityName: Text; var JArray: JsonArray): Boolean`
- `GetObjectCount(EntityName: Text; var ObjectCount: Integer)`
- `GetOnlineRecordCounts(): Boolean`
- `GetTextFromJToken(JToken: JsonToken; Path: Text): Text`
- `WriteTextToField(var DestinationFieldRef: FieldRef; TextToWrite: Text)`
- `FixDateFormat(DateToFix: Text): Text`
- `GetFileNameByEntityName(EntityName: Text): Text`
- `UpdateFieldValue(var RecordVariant: Variant; FieldNo: Integer; JObject: JsonObject; PropertyName: Text)`
- `UpdateFieldWithValue(var RecordVariant: Variant; FieldNo: Integer; Value: Text[30])`
- `UpdateFieldValueByPath(var RecordVariant: Variant; FieldNo: Integer; JObject: JsonObject; PropertyPath: Text)`
- `GetFieldValueByPath(FieldNo: Integer; JObject: JsonObject; PropertyPath: Text): Text`
- `TrimStringQuotes(Value: Text): Text`
- `GetPostingAccountNumber(AccountToGet: Text): Code[20]`
- `ConvertAccountCategory(MigrationQBAccount: Record "MigrationQB Account"): Option`
- `ConvertDebitCreditType(MigrationQBAccount: Record "MigrationQB Account"): Option`
- `CreateCountyIfNeeded(CountryCode: Code[10]; CountryName: Text[50])`
- `GetArrayPropertyValueFromJObjectByName(JObject: JsonObject; PropertyName: Text; var JArray: JsonArray): Boolean`
- `CleanupGenJournalBatches()`
- `CleanupVatPostingSetup()`
- `GetAcctCategoryEntryNo(Category: Option): Integer`
- `IsOnlineData(): Boolean`
- `CleanupStagingTables()`
- `CleanupIsolatedStorage()`
- `GetMigrationTypeTxt(): Text[10]`
- `FormatGuid(myGuid: text): Text`
- `GetPropertyFromCode(CodeTxt: Text; Property: Text): Text`
- `GetAuthRequestUrl(ClientId: SecretText; ClientSecret: SecretText; Scope: Text; Url: Text; CallBackUrl: Text; State: Text; var AuthRequestUrl: Text)`
- `GetAccessToken(Url: Text; Callback: Text; AuthCode: SecretText; ClientId: SecretText; ClientSecret: SecretText; var AccessKey: SecretText)`

Plus 12 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 10 "Type Helper"](../codeunit/10.md) (2 calls: `WriteTextToField → Evaluate`, `WriteTextToField → GetOptionNo`)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `WriteTextToField → CreateOutStream`, `WriteTextToField → ToRecordRef`)
- [Codeunit 570 "G/L Account Category Mgt."](../codeunit/570.md) (1 call: `GetAcctCategoryEntryNo → GetAccountCategory`)
- [Codeunit 6112 "Customer Data Migration Facade"](../codeunit/6112.md) (1 call: `CreateCountyIfNeeded → CreateCountryIfNeeded`)
- [Codeunit 9015 "Application System Constants"](../codeunit/9015.md) (1 call: `ValidateCountry → ApplicationVersion`)

## Called by

- [Codeunit 1912 "MigrationQB Customer Migrator"](../codeunit/1912.md) (28 calls: `GetAll → GetEntities`, `GetCreditMemosFromJson → GetTextFromJToken`, `GetCreditMemosFromJson → TrimStringQuotes`, …)
- [Codeunit 1913 "MigrationQB Vendor Migrator"](../codeunit/1913.md) (16 calls: `GetAll → GetEntities`, `GetInvoicesFromJson → GetTextFromJToken`, `GetInvoicesFromJson → TrimStringQuotes`, …)
- [Codeunit 1911 "MigrationQB Account Migrator"](../codeunit/1911.md) (9 calls: `GetAccountsFromJson → GetTextFromJToken`, `GetAccountsFromJson → TrimStringQuotes`, `GetAll → GetEntities`, …)
- [Page 1830 "MS - QBO Data Migration"](../page/1830.md) (8 calls: `CompleteAuthorizationProcess → GetAccessToken`, `CompleteAuthorizationProcess → GetMigrationTypeTxt`, `CompleteAuthorizationProcess → GetOnlineRecordCounts`, …)
- [Codeunit 1920 "MigrationQB Item Migrator"](../codeunit/1920.md) (7 calls: `GetAll → GetEntities`, `GetItemsFromJson → GetTextFromJToken`, `GetItemsFromJson → TrimStringQuotes`, …)
- [Codeunit 1830 "MigrateQBO Wizard Integration"](../codeunit/1830.md) (5 calls: `OnAfterMigrationFinishedSubscriber → GetMigrationTypeTxt`, `OnApplySelectedDataApplyQBData → CleanupGenJournalBatches`, `OnApplySelectedDataApplyQBData → CleanupVatPostingSetup`, …)
- [Codeunit 1919 "MigrationQB Data Reader"](../codeunit/1919.md) (5 calls: `OnEmptyZipFileSubscriber → GetMigrationTypeTxt`, `OnExtractFolderMissingSubscriber → GetMigrationTypeTxt`, `OnFileMissinggSubscriber → GetMigrationTypeTxt`, …)
- [Codeunit 1914 "MigrationQB Wizard Integration"](../codeunit/1914.md) (4 calls: `OnApplySelectedDataApplyQBData → CleanupGenJournalBatches`, `OnApplySelectedDataApplyQBData → CleanupVatPostingSetup`, `OnGetInstructionsGetQBInstructions → GetMigrationTypeTxt`, …)
- [Codeunit 1915 "MigrationQB Dashboard Mgt"](../codeunit/1915.md) (4 calls: `InitMigrationStatus → GetMigrationTypeTxt`, `OnAllStepsCompletedSubscriber → CleanupIsolatedStorage`, `OnAllStepsCompletedSubscriber → CleanupStagingTables`, …)
- [Codeunit 1916 "MigrationQB Mgt"](../codeunit/1916.md) (2 calls: `ApplySelectedData → GetMigrationTypeTxt`, `OnZipFileMissingSubscriber → GetMigrationTypeTxt`)
- [Codeunit 1918 "MigrationQB Data Loader"](../codeunit/1918.md) (2 calls: `FillStagingTables → GetMigrationTypeTxt`, `FillStagingTables → IsOnlineData`)
- [Page 1919 "MigrationQB Default Accounts"](../page/1919.md) (1 call: `UofMRequired → GetObjectCount`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "MigrationQB Helper Functions")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
