**Notes error: Error Validating user's agent execution access.**
I am running the agent and it's called another agent odbc1. How can I call server DSN?
My code is:
Dim session As New NotesSession Dim uidoc As NotesUIDocument Dim ws As New NotesUIWorkspace Dim notsagent As NotesAgent Dim db As NotesDatabase Dim doc As NotesDocument Dim parm As String Set db = session.CurrentDatabase Set doc = New NotesDocument(db) Set uidoc = ws.CurrentDocument Set notsagent=db.GetAgent("odbc1") Call doc.save(True, False) parm = doc.NoteID Msgbox "Parameter of " & parm Call notsagent.RunOnServer(parm) Msgbox "Right"
Do you have comments on this Ask the Expert question and response? Let us know.
Dig Deeper on LotusScript
Related Q&A from Andre Guirard
Learn how you can use LotusScript and OLE to create and populate Microsoft Excel spreadsheets, as well as a little bit about Lotus Symphony. Continue Reading
Discover options you can use if you'd like external users to be able to access a workflow-based Notes Domino application through different ... Continue Reading
Learn why you may receive the error message: "Illegal circular use: Audit Trail" when trying to open Lotus Notes documents that use copied forms. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.