@abm_abm , as the number of records has the potential to be very large, I've gone with your suggestion of using the API to get the status from the BulkDeleteOperations process.
I am almost there with achieving this, but am getting a very odd outcome which I'm hoping you might be able to help with. Just to clarify: the Dataverse Unbound Action for the BulkDeleteOperations is working fine, so the issue is not with that aspect, it is something to do with getting the outcome of the resulting system job via the API.
I have set up the HTTP action in Power Automate, along with the relevant authentication (App Registration and API Permissions Assignment in Azure/Entra, Security Role assigned to the 'App User' in Power Platform Admin Centre).
The call is working: when I did not insert a BulkDeleteOperationID in to the URI, it returned a very large number of BulkDeleteOperations records along with their status codes and IDs. However, when I try to insert the BulkDeleteOpertionID dynamically, from my Unbound Action - Bulk Delete action in the Flow, the Flow fails with the error "Entity 'bulkdeleteoperation' With Id = [redacted] Does Not Exist".
I then copied one of the 'BulkDeleteOperation' IDs that Flow had returned before I tried to query for a specific run instance. It worked perfectly; 200 on the HTTP call and showed me the basic data about that single BulkDeleteRequest. I then tried another ID from this list, when the return of the operation didn't have a status code but was listed as 'null'; again this worked fine (so, the problem is not related to the BulkDeleteOperation not finding anything to delete).
My next step was to wonder if it was simply a time lag between the BulkDeleteOperation submission, execution, and the ID being available to the Flow. I waited two hours and tried a dynamically produced ID; the Flow failed, indicating it's unlikely to be a lag-related issue. I have also tried using a 'Delay' between the Unbound Action and the HTTP action and this doesn't make a difference.
I then tried to see if I could locate the ID of the BulkDeleteOperation in the System Jobs list (make.powerapps.com > Settings > Advanced Settings > System Jobs) so I could try manually inserting this in to the Flow. Although I see the BulkDeleteOperation listed I couldn't find a way to get the ID from the GUI.
I've also tried experimenting with the two different ID types I found from the output of the Unbound Action (BulkDeleteOperation) as I noticed it was sending an ID in the Header (REQ_ID and x-ms-service-request-id - the outputs of both of these seem to be identical), and returning an ID in the Body (JobID). Neither of these worked but I think it is 'JobID', in the body, that is the ID that's needed since this seemed to be the working ID when tyring one of the values it did return when I wasn't querying for a single ID on my first attempt.
I've attached a screenshot to show the configuration of the action, but, I'm not sure this is where the problem is located as I've conducted quite thorough testing to show that the Flow and the HTTP action is working at the base level - the only failure [critical though it is!] is when I try to use the dynamic ID from the BulkDelete Unbound Action.
I would be extremely grateful for any help on this. It honestly feels like this solution is 99% completed, there's just this one problem to solve. Thank you very much!