We need to replicate existing Job and WO functionality in order to help with deleting customers and sites.
Follow the existing Job and WO functionality to:
- Mark the local database records as deleted
- Mark the sfsp add_db_object_update_status() tracking record as deleted
- Attempt to delete in SF
I don't think SF will let us if there are related records but we can try and if not then return an error message that the user has to "move the records associated with this Customer/Site within Salesforce before deletion" - still make sure the other db records are marked as deleted in this case
- Additionally add same delete attempt in Salesforce for Jobs and WOs with the same response handling
- We cannot delete in Spectrum, so there should be the same warning/info as shown for Jobs and WOs
We need to replicate existing Job and WO functionality in order to help with deleting customers and sites.
Follow the existing Job and WO functionality to:
I don't think SF will let us if there are related records but we can try and if not then return an error message that the user has to "move the records associated with this Customer/Site within Salesforce before deletion" - still make sure the other db records are marked as deleted in this case