Salesforce-Inspector-reloaded icon indicating copy to clipboard operation
Salesforce-Inspector-reloaded copied to clipboard

[data-export] Better error messages on Delete Records function

Open acrosman opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. When you have a query that generates extra fields (anything other than Id) the Delete Records button doesn't work. Nothing happens at all. Additionally if you have too large a result set for the inter process limits, you get blocked from the second screen after clicking delete.

Describe the solution you'd like When the Delete Records button cannot be used an error message should appear telling you why so you can address the issue easily.

Describe alternatives you've considered The alternative solution would be to make sure that button always works, but I don't believe that's reasonably possible between browser limits and Salesforce oddities.

acrosman avatar Feb 12 '24 15:02 acrosman

If there's a column with the Id table head, I think it could be possible to make it always work (but I haven't seen the code for this)

Astisme avatar Feb 12 '24 22:02 Astisme

Possible maybe. But my point is really the if it hits an error that prevents moving forward, an error should be raised. Also making the solution work as often as possible would be nice. But 100% isn't likely possible, so have a backup plan.

acrosman avatar Feb 13 '24 02:02 acrosman

Hi @acrosman,

Are you talking about the button "Delete records" from the data-export page or the delete option from the data import page ? If you are mentioning the "Delete records" button, it is not possible to delete a record without the Id field, that's why the button is disabled when no Id was selected. We added a title to the button in order to detail the way it works

image

tprouvot avatar Feb 14 '24 14:02 tprouvot