Hello!
The following code is working well in an action view button:
@Command( [EditDocument] );
@Command([EditGotoField] ; “Body”);
@Command([EditSelectAll]);
@Command([EditCopy]);
@Command([Clear]);
@Command([EditGotoField] ; “DocumentContent”);
@Command([EditPaste]);
@Command([FileSave]);
@Command([CloseWindow])
The action moves the attachment from one RTE field to another RTE field within the same document.
I would like the same code in an agent but this doesn’t work out. Has anyone a suggestion!?
Thanks in advance,
Els Verberne
els.verberne@arvgroup.com
Subject: action code is working, how make it work as an agent
It should work if you set the agent as ‘Run once (@Commands may be used)’.I would also hide the agent from the actions menu since it makes no sense to let it be launched there if you add an action so make it run ‘Manually from the agent list’ and finally in you action, simply enter the formula @Command([ToolsRunMacro]; “(Your agent name)”).
Watch out, the parentheses are needed because agent that run from the agent list are surrounded by parentheses.