I have 3 agents that triggers a webservice in another platform and get the result, these agents call each other( 1 calls 2 call 3 and returns result)and the last agent calls the web service and returns the result.
My first agent that is triggered gets the field values on a form and saves it to a tempdoc and calls 2nd agent (which is run on server because only server has right to call webservice) then my 3rd agent is called with the tempdoc's paramid and my 3rd agent which is a client side agent calls the webservice get the output to a variant and saves it to tempdoc and returns and my 1st agent reads the tempdoc and if error gives prompt if not finishes..
it all works fine until someone in the company that do not have right to see the parent document triggers the 1st agent from subform..because 1st agent gets the field values on a form if the form has a parent form then it gets the values on the parent form .when user have no right to see the parent doc then
Dim pDoc As NotesDocument
this statement works fine and pDoc exists all the fields are empty and so i get error when i call webservice..
so my question is although the agent is run by whoever clicks the button on the form is it possible to run the agent with someone that have the full authorization rights so that the parentdoc fields don not come empty ?
I tried in the properties of the agents' security-->"Run On Behalf Of" i put users that have right but still it does not work or change anything,
i also tried "sign or run agents on behalf on someoneelse" property of the server document and put my name but it has not made any change unfortunately..
pDoc is coming with empty items and other properties but it is not Nothing ,how can i solve this problem? thx in advance...