Formula Agent To Update Many Documents

I’m having trouble with an Agent. What I’m trying to do is use @Prompt to collect a value from the user. Then I want to update all selected documents in the View.

The problem is that it prompts for every document, which kind of defeats the purpose which is to select a bunch of documents then update them all in one step.

Can anyone assist with the general outline of this in Formula Language. Currently I use @Prompt to collect a value in a variable then assign it to the field in question.

I’m happy to do this in LotusScript if it’s not possible in Formula.

Thanks

Subject: @prompt

To do this in formula you’d need to have the @Prompt in an action, set an environment variable to the value, then call the agent and retrieve the variable in the agent (which would then run through every document selected)

It’s also possible in lotusscript, something like (unfinished code, I’m assuming you know some lotusscript)

value=w.prompt(…)

set doccol = s.unprocessesdocument

set doc = doccol.getfirstdocument

do until doc is nothing

doc.value = value

doc.save(true, true)

set doc = doccol.getnextdocument(doc)

Loop