I would like to know how to create a single work case via an agent activity.
Currently, I have created an agent activity in the relevant Work class. In the activity I have called the createWorkPage (defined a temp page of the relevant work class, and set this as the pyWorkPage param), AddWork and then the CommitWithErrorHandling activities with the temp page as the step page.
I validated the functionality of the activity by dry-running it. In this case the case is created without an issue. But I see no cases created by the agent.
The agent is of type standard. The agent shedule has "Bypass activity authentication" ticked, so there shouldn't be a problem there.
Please note that at this moment I have no SMA access, so tracing the agent is out of the question.
Is the method I used correct? Or am I doing something wrong?
Sorry did not get what you changed , did you changed the agent type to Advanced or not ? Removing AQM will just need you to manage the queue manually and but agent will still expect a task in queue. Since your requirement is to execute an activity and no special task so it would be better if you use Advanced agant.
Happy to say that I got it to work, thanks to you. Yes, I did change the type of the agent to "Advanced". Removed the AQM. Changed the access group of the agent activity to what's on my operator profile. Added "Require authentication to run" and added the relevant work class to the privilege classes.
I do however have to set the pxRequestor properties before creating the case by calling pxCreateTopCase. Anyone else experiencing the same issue? Is there something I can do other than set these properties?