Regarding save conflict

Hi,

I have a big problem with saving a document which generates a save conflict.

The problem is when a user opens a document, an agent runs to change a field on the document. So whenever the user edits and saves, it generates a save conflict. I already know save(true, true) does not generate a save conflict but it does not save the changes the agent modified.

The agent is on QueryOpen object.

So, how can I save the document with the changes the agent and the user makes?

Thank you for your help in advance.