I need to create a customAction that duplicates the record it is called from, finds the records in an associated table, duplicating them as well.
I've read the example in the documentation Improved List Actions but I haven't figured out how to do an action like the one I've described, which is then not an update of the record itself.
Complex CustomActions, how-to?
-
- User
- Posts: 11
Complex CustomActions, how-to?
-
- User
- Posts: 9384
You may execute query (i.e. INSERT statement) in the server event by ExecuteStatement(), then you may use use ExecuteRows() to select the records in the associated table, then loop through them and insert.
You need to try write your code and post your code for discusson.