I didn’t know exactly which area to put this in. Here is the deal:
I have 40 dbs that use an agent to send emails. Each db uses a different “user” id for the emails. So the agent that sends the emails are signed with different ids. Works terrific. (important to note that the IDs do not tie to an actual human, but a department so no one ever actually logs in as that ID)
When I modify the template to these dbs (specifically when the agent changes) then I must update the design and the signature changes to the id I am using to update the design.
So I must update the design, switch to the appropriate ID and sign the agent, 40 times. Works well but is annoying.
I wrote a handy dandy C++ prog against the C++ api to switch to the appropriate ID, open the db, update the design, sign the agent and go on to the next db. Works really well.
Problem. The agents are scheduled. Any time I programatically sign the agent, the schedule will not run. After MUCH investigation, the issue is that the $AssistFlags is set to “E” for enabled, rather than “Es” for enabled, scheduled.
All a person needs to do is sign the agent interactively and it runs on schedule and the $AssistFlags is set to “Es” It is the only difference.
Now, I went back and ran the C++ API sample agent program which creates a scheduled agent, and it too creates an agent that is enabled and has a schedule, but the $AssistFlags is “E” instead of “Es” and it will not run when the time comes around, but if you just sign the agent interactively, it works.
I know it is a huge Q? but can anyone help me. I am STUCK, STUCK. STUCK.