My app is a service support portal/app for techical support on equipment - Each interaction creates a comment record documenting the “transaction”. These comments are accumulating very fast and my total record count is well out of line with my alloted storage space. I would like to replace the related comment records for a case with a single comment that includes all content when a case is closed (or at a scheduled time) - a makeshift “archive” of sorts…and then delete the original comments. This will reduce my record count AND my technicians can copy the new “field” into our SAP and quickly/properly document the case details into our “offical” system. Any suggestions?
Hi @Trey, I’ve encountered the same need before in one of my client’s apps.
What I did was export all the comments to Excel, transform the data with Power Query to merge all comments with the same connected record, with a date and user stamp for each comment, and reimported the comments back into Knack, deleting all the old comment records.
This works well as a one off, however other suggestions is either:
Users manually prepending comments to a single paragraph text field, making sure they date/user stamp it
Some JavaScript that on submit of a form takes some text that a user inputs in a field and prepends it to another read-only paragraph text field, which builds up all the comments.
Some JavaScript that on archiving of a connected record fetches all comments, merges their comments into a new record, and deletes all the other records.
We do something similar in Make where we merge 10 to 20 records into 1 rich text field. It’s a bit of a pain to set up but once you have you can Archive a lot of records fairly quickly.
There is no pressing need for this consolidation at the close of every case. I can still select all comments and copy into SAP and it seems to work nicely. Then I can use your suggested method quarterly or annually to “clean up” the data and reduce record count. Perhaps I will get assistance from a Java expert in the future, but your suggestion is brilliant.