Power Platform Tidbits 9: Truncate a table in Dataverse with one command
$operation = @{
Uri = "BulkDelete"
Method = "POST"
Value = @{
QuerySet = @(@{
EntityName="account"
ColumnSet = @{ AllColumns = $true }
})
JobName = "Bulk delete all rows from account table"
SendEmailNotification = $false
ToRecipients = @(@{
activitypartyid = "00000000-0000-0000-0000-000000000000"
"@odata.type" = "Microsoft.Dynamics.CRM.activityparty"
})
CCRecipients = @(@{
activitypartyid = "00000000-0000-0000-0000-000000000000"
"@odata.type" = "Microsoft.Dynamics.CRM.activityparty"
})
RecurrencePattern = ""
StartDateTime = Get-Date
RunNow = $false
}
} | ConvertTo-Json -Depth 4
Send-DataverseOperation -InputJson $operationLast updated