Skip to content

Commit 3d5569d

Browse files
committed
Update Invoke-ExecCustomData.ps1
1 parent 5a2cef7 commit 3d5569d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecCustomData.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ function Invoke-ExecCustomData {
368368
dataset = $Mapping.extensionSyncDataset.label
369369
sourceType = $Mapping.sourceType.label
370370
directoryType = $Mapping.directoryObjectType.label
371-
syncProperty = $Mapping.extensionSyncProperty.label
371+
syncProperty = $Mapping.extensionSyncProperty.label ?? @($Mapping.extensionSyncDataset.addedFields.select -split ',')
372372
customDataAttribute = $Mapping.customDataAttribute.label
373373
}
374374
}
@@ -438,7 +438,7 @@ function Invoke-ExecCustomData {
438438
$Body = @{
439439
Results = @{
440440
state = 'success'
441-
resultText = "Mapping deleted successfully."
441+
resultText = 'Mapping deleted successfully.'
442442
}
443443
}
444444
} catch {

0 commit comments

Comments
 (0)