FORUM PLAN UPDATE: Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.
fatsoua fatsoua 10.Jul.17 08:55 AM a Web browser Domino Designer All Releases All Platforms
The db I'm working on has an alert feature in it (i.e. registered users get an email (with the document link) whenever there is an update).
All of a sudden this feature is sending the alert twice to the users as whenever the doc is saved its creating replication or saved conflict. I have written the following code on my "save and send alert" action button so that before it sends the alert, to find the replication conflicts, to remove/delete them and then send the alert ONCE! However it doesnt work. what am i doing wrong? I have also changed the form property to "do not create conflicts". any help will be much appreciated.
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Set db = session.currentDatabase
Set conflicts = db.Search("SELECT@IsAvailable($Conflict)",Nothing,0)