Agent to open/save/close new/newly modified docs after a scheduled agent is run

Hi, I have an agent which pulls in users from an Oracle user directory and populates the NAB.

The problem is in the internet password (HTTPPassword) field.

When the new person doc is created, the internet password is literally the Oracle password, e.g. “mypassword”

via doc.HTTPPassword = result.GetValue(“PASSWORD”,HTTPPassword)

and when that user tries to log into the notes app via the browser, the password doesn’t work.

If I open the doc in edit mode, the above password becomes scrambled into “(ju328fsdjf2nd8)” and the user can log into the browser app using “mypassword”.

So the question now becomes: when the agent runs and creates the person docs, how can I scramble that internet password field, i.e. mimic opening the doc in edit mode then saving it without any changes for all new or newly modified docs? Could be done on schedule too, I’d just set it to run 10 minutes after the agent which pulls the data from Oracle.

I’ve tried:

@Command([EditDocument]);

@Command([FileSave]);

@Command([FileCloseWindow]);

as both scheduled as well as on creation or modification of docs and each time I get:

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

any ideas on how I could solve this problem?

tks,

-MC

Subject: agent to open/save/close new/newly modified docs after a scheduled agent is run

Try in LS when you’re creating the document:

doc.ComputeWithForm(false, false)

Subject: agent to open/save/close new/newly modified docs after a scheduled agent is run

If you look at the translation formula on the field in the Person form, you see that it uses @Password.

So when you get the string for the password, you could do something like this:

doc.HTTPPassword = Evaluate(|@Password(“| & result.GetValues(“PASSWORD”, HTTPPassword) & |”)|)

Well, maybe not the most “textbook” method, but I’ve used something like that just in the last 3 weeks.

Jason

Subject: Jason, you’re the man

that worked perfectly, thanks a lot

-MC