XProtect Corporate 2019 R3;
I’m thinking of creating something similar to ACBuiltInStateTypeCategories but for user-defined categories.
At the very least, it would be useful to know what the strings look like / how they are formatted within the Milestone system. (e.g. ACBuiltInStateTypeCategories.Error)
Hi Tristan,
You can certainly create user defined categories, using the method SetUserDefinedCategories through the wsdl
http://YOUR-SERVER-HERE:22331/Central/AccessControlServiceToken?wsdl
Attached is an example of what the body request looks like, this example is using SOAP UI to make the request.
I found that what I wanted to do had clues in the plugin sample. Namely:
the DemoAccessControlPlugin. Within this project, there is a file named Types.cs which shows how a user can define a custom event category in the class Categories (of type ACCategoryInfo).

Where CategoryId was a user-defined class as well (shown below)

It appears that the string Id is a matter of user preference.
I’d imagine that both doing it this way or the way specified by Matheus would produce the desired outcome, although this method was what I was seeking when asking this question.