I need to trigger an agent to save a document with the method agent.runOnServer(noetid)
So in my agent I can find the documument based on the ID and update it. but how can I pass in values other than the id to the agent so I can update the document with some new values from the xpage ?
Whatever document you are passing, via noteid, can have any data on it you desire. Put the extra things you need on that document before passing it over. If you don’t want to save the values, simply delete those extra fields before actually saving.