From 5f280957818125b778470e0ba6e371e23f75fcdb Mon Sep 17 00:00:00 2001 From: __zyw__ <47520232+asian-delirium@users.noreply.github.com> Date: Fri, 28 Nov 2025 11:25:41 +0100 Subject: [PATCH 1/2] Add importType field to output in FabricPS-PBIP.psm1 Added a new field to `Import-FabricItems` function to reflect how the respective items are imported. --- pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1 b/pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1 index 21a30c9..267039e 100644 --- a/pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1 +++ b/pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1 @@ -1067,7 +1067,8 @@ Function Import-FabricItem { Write-Output @{ "id" = $itemId "displayName" = $displayName - "type" = $itemType + "type" = $itemType + "importType" = "Create" } } else { @@ -1092,7 +1093,8 @@ Function Import-FabricItem { Write-Output @{ "id" = $itemId "displayName" = $displayName - "type" = $itemType + "type" = $itemType + "importType" = "Update" } } } From a1794ef5ce8908fa37048094f186bd062007e16d Mon Sep 17 00:00:00 2001 From: __zyw__ <47520232+asian-delirium@users.noreply.github.com> Date: Fri, 28 Nov 2025 11:29:46 +0100 Subject: [PATCH 2/2] Fix importType values in FabricPS-PBIP.psm1 --- pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1 b/pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1 index 267039e..daeb6cc 100644 --- a/pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1 +++ b/pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1 @@ -829,7 +829,8 @@ Function Import-FabricItems { Write-Output @{ "id" = $itemId "displayName" = $displayName - "type" = $itemType + "type" = $itemType + "importType" = "Created" } } else { @@ -848,7 +849,8 @@ Function Import-FabricItems { Write-Output @{ "id" = $itemId "displayName" = $displayName - "type" = $itemType + "type" = $itemType + "importType" = "Updated" } } @@ -1068,7 +1070,7 @@ Function Import-FabricItem { "id" = $itemId "displayName" = $displayName "type" = $itemType - "importType" = "Create" + "importType" = "Created" } } else { @@ -1094,7 +1096,7 @@ Function Import-FabricItem { "id" = $itemId "displayName" = $displayName "type" = $itemType - "importType" = "Update" + "importType" = "Updated" } } }