Unable to Refresh document

I have a mail In helpdesk db to which a ticket gets mailed. Once it’s in the helpdesk db, an agent is run that changes the form name and sends an email to the helpdesk. For some reason, it doesn’t refresh the document so the ticket # field doesn’t show up. If I manually refresh the document and save it then does show the ticket #. I tried to use the @Command( [ViewRefreshFields] ) and it gives me the following error:

“Formula error: @Command and other UI functions are not allowed with this search type; please select ‘None’ as your runtime target.”

Once I change the Runtime Target to “None”, then it runs the agent but doesn’t refresh the TicketNo field.

I would really appreciate some help on this.

Subject: Unable to Refresh document

Yes, you can not use that @Command without opening the view in UI. Instead you can write a lotus script to do the same operation and use computewithform to compute the number field in the notesdocument.

Subject: Unable to Refresh document

It true that you cannot use @Command in the same agent. But the work around is to create one more agent ‘RefreshAgent’ with the formula @Command([ToolsRefreshSelectedDocs]).

If you are running your ‘Change Form’ agent manually then it is simple. Create a new view action and add both agents as simple actions.

This should solve your problem.