Perhaps my train of thought is off, so perhaps I need a completely different approach… but for now
Hi,
With the dynamic model i've written a script that creates a task 'delete_row’. I want this task to 'delete’ the row by updating the row column ‘is_deleted’ from 0 to 1. With a hidden prefilter I filter these deleted-values out. This preserves the records, and makes them easier to restore than a true deleted record from a sql system version table.
I want to show this task 'Delete row’ on all tables, instead of the SF native delete button. So far, ok.
However, I can't grasp on how to set the ntable]_id parameter. Do I need to create X parameter, one per table? Or can this also be done dynamically? Something like @ table_id] instead of @account_id
With the Sf native delete button, a record is removed from the table, and only available in the history table. I have used this but these history views are not available in other ways currently. If you delete an 'account’ you cannot see this row anymore, and therefore cannot see the history or restore this.
afaik I cannot e.g create a 'History Menu’ - where a superuser can also see deleted items. Because these views are not in the SF datamodel. (is this correct?) .
Therefore, and is_deleted column + prefilter will give a superuser an option to toggle this filter, and simply change the is_deleted value back to 0 and it should all be ok.
But, as said, perhaps my train of thought is not correct, so any other tips in this matter in more than welcome.
Alexander