@Command and other UI functions are not allowed in this context

Hi All,

I’m getting this error when attempting to run an agent. The agent is trying to execute some @Command formulas to change field values and notify users. There used to be @Command selection in R5 agent properties that used to run agents with @command formulas. I’m currently using R7 designer and don’t see this option. Am I missing this option on the agent properties?

For the agent properties, I selected “shared”, Triger, “On Event”, Runtime is “Action Menu Selection” and target is “All selected documents”.

Can someone tell me what I’m doing wrong and how can i get it working without rewriting the code in LS?

Thanks!

  • tb

Subject: @Command and other UI functions are not allowed in this context

Set the target to -None-, then it should work.

The following quote from the help document about agents says it all:

@Commands are only allowed in agents that specify None in the target option.’

Subject: RE: @Command and other UI functions are not allowed in this context

Thanks, Dan! That worked!

tb