Posted: 1 Nov 2016 12:30 EDT Last activity: 3 Nov 2016 10:16 EDT
Checking if a Operator ID already exists
I'm using an activity to create some operator accounts programatically (using Obj-Open), which means that it's up to me to check whether the operator account names (IDs) I use are taken of not (otherwise, Obj-Open might open an existing account rather than create a new one). Unfortunately, I'm not sure how to do this. Is there a list/page list of all operator accounts on the system that I can compare against, or something similar?
***Updated by Moderator: Marissa to update categories***
I ran a trace of an attempt to create a duplicate Operator ID manually (via the ruleform), and it showed that we use the OOTB CheckDuplicates activity to see if an operator ID already exists in the system. You might be able to leverage, or mimic, that activity.
All the opeators are stored in the pr_operators table.This is mapped to "Data-Admin-Operator-ID" class. As suggested by Kurt, you can do obj-open on page of Data-Admin-Operator-ID class and check the current operator against "pyuseridentifier".
UPDATE: I ended up using a custom data page for Data-Admin-Operator-ID (made using pxRetrieveAllOperators report) in a data reference list property, which I compare against. Thanks for all the responses!