I am trying to utilize RunOnServer agents to pass parameters between agents. The first agent (called from the document) creates parameter document and calls RunOnServer agent. RunOnServer agent accesses parameter document, does search using ODBC connections and updates parameter document and saves it. The problem that I have is when RunOnServer agent finishes the first agent can’t find updated fields (updated by the RunOnServer agent) - fields don’t exist yet. But when I finish the task and check the parameter document the fields are there. Is there any caching there? Any suggestions?
In the code that calls the agent, are you closing and re-opening the parameter doc? I could be wrong, but I don’t believe the agent that writes to the parameter doc will update the in-memory copy of the parameter doc that is already open in your initial code.