This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Sep 14, 2011, 4:15 PM
35 Posts
topic has been resolvedResolved

Passsing NoteID in Agent in Simple Action

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role:
  • Tags:
  • Replies: 1
Hi, 
Can I pass the noteid of a recently saved document via a simple action?  I am saving (via simple action)
prior to calling this Execute Script Simple Action. I have passed my noteid in my URL so I am trying to grab it and pass it in the agent. I pass the noteid parameter because after I save the document I need to reopen it.. It works so I'm assuming the noteid is correct.  My agent is running but nothing is being passed.  I will mention that I tried to do the postSaveDocument Event and my agent was not firing at all (nothing in the log).  I am getting the "Could not open the document" error.
Here's my code:

var docid = context.getUrlParameter("documentId");

var agent = database.getAgent("myAgent");

agent.runOnServer(docid); 
Sep 14, 2011, 8:23 PM
35 Posts
Re: Passsing NoteID in Agent in Simple Action
Please disregard my jibberish.. Solution Found!

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal