Exam4Training

Assuming the agent name is FRED, what should Linda add to her XPage to call the agent?

Linda has an existing IBM LotusScript agent she would like to invoke from an XPage.

Assuming the agent name is FRED, what should Linda add to her XPage to call the agent?
A . ag = database.getAgent("FRED");ag.RunOnServer(NoteID)
B . var agent=database.getAgent("FRED");agent.run(currentDocument.getDocument());
C . ag = database.getAgent("FRED");noteid = FREDSampleDoc.getDocument().getNoteID();ag.run(noteid)
D . ag = database.getAgent("Fred");noteid = FREDSampleDoc.getDocument().getNoteID();ag.xpRun (NoteID)

Answer: C

Exit mobile version