Delete all assets of specific type from CW PSA sync
B
Brent N.
Add the ability to 'delete card' or 'delete entire asset' for each primary integration mapping (contacts, locations, primary sync location), and for each mapping sort rule you might have.
Example 1: delete the entire asset for all assets created by the sync for the default contacts mapping.
Example 2: delete the card from all assets for a sort rule you created.
In more detail:
Scenario: You are syncing all "Cat" configurations in Manage to the "Animals" asset layout in Hudu. Now, you've determined that cats deserve their own asset layout in Hudu and created one named "PSA Cats." Unfortunately, 300 cats have already been synced and won't get moved to the new asset mapping unless they are deleted. They're pretty pissed off about it.
Fun aside, the only option here is to delete each 'entire asset' from the PSA sync overview... one... by... one. You might have other valid assets using the target layout, so blanket deleting all assets of that type won't work.
B
Brent N.
So, you can do this using the Hudu API PoSH, but really only for people (conacts) and locations. Example for locations (we had them syncing as people for whatever reasons, so the layout id was 2):
Get-HuduAssets -AssetLayoutId 2 | Where-Object {$_.cards -like "
sync_type=site
"} | Remove-HuduAssetBut, everything else has the same sync type of configuration, so the request is still valid.