I want to display a message when opening a document, so I wrote it in onrefresh. When opening an existing document, the message only shows once. However, after creating a new document, I noticed (by logging) that onrefresh is triggered twice.
Thank for solution. but the solution does not work because if there’s a change to an item that should also trigger an error message, it will not trigger. Entering onrefresh twice after creating an item is the correct behavior, right?