Confirm-VPASBulkFile


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

VALIDATE CSV FILES FOR BULK OPERATIONS


Description:

USE THIS FUNCTION TO VALIDATE CSV FILES FOR BULK OPERATIONS


Syntax:

Confirm-VPASBulkFile -BulkOperation <String> -CSVFile <String> [-ISPSS] [-HideOutput] [<CommonParameters>]

Confirm-VPASBulkFile -InputParameters <Hashtable> [<CommonParameters>]


Parameters:

-BulkOperation <String>
Which bulk operation the CSVFile should be tested against
Possible values: BulkSafeCreation, BulkAccountCreation, BulkSafeMembers

Required: true
Position: named
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-CSVFile <String>
Location of the CSV file containing the target information

Required: true
Position: named
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-ISPSS [<SwitchParameter>]
For saas environments
The APIs for adding safe members introduced a new parameter for saas environments. Enable this flag for saas environments

Required: false
Position: named
Default value: False
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-HideOutput [<SwitchParameter>]
Suppress any output to the console

Required: false
Position: named
Default value: False
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-InputParameters <Hashtable>
HashTable of values containing the parameters required to make the API call

Required: true
Position: named
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug
ErrorAction, ErrorVariable, WarningAction, WarningVariable
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216)


Examples:

$CSVFileValidate = Confirm-VPASBulkFile -BulkOperation {BULKOPERATION VALUE} -CSVFile {CSVFILE LOCATION}

$InputParameters = @{
        BulkOperation = "BulkSafeCreation"|"BulkAccountCreation"|"BulkSafeMembers"
         CSVFile = "C:\Temp\test.csv"
         ISPSS = $true|$false
        HideOutput = $true|$false
}
$CSVFileValidate = Confirm-VPASBulkFile -InputParameters $InputParameters


Outputs:

$true if successful

$false if failed