Skip to main content
12-Amethyst
Apr 4, 2024 7:08 AM UTC
Solved

Using the service GetUserRecipientsOfEvent

Looking to make use of the service: 
GetUserRecipientsOfEvent

 

NiKlaus_0-1712214100314.png

I am unsure of the input's and what to populate them with. 
I am expecting to get a list of users from the Test trigger that I've created. 

Here is the trigger: 

NiKlaus_1-1712214213948.png

I've followed this guide to get the custom handler working to a point where I am able to see that the handler is triggered from logging inside the service. I am aware this this guide is for thingworx apps and I am using foundation but it does work. Working with Thingworx 9.4.4. 
Now I would like to get it fully working by retrieving the list of recipients and then referencing them so that I can actually notify the users included in the recipient list. 

Hoping someone here has used this service and can point me in the correct direction. 

NiKlausAnswer
12-Amethyst
Apr 11, 2024 6:26 AM UTC

After some trial and error, here is the solution:

  • Handler ID is an alpha numeric value that is found by running .GetAvailableHandlers()
  • Entity Name is the name of the thing 
  • entity type, in my case was just 'Thing'
  • eventName is the eventType so can be alert or AnyDataChange, etc. In my case is was 'DataChange'
  • propertyName is the property from the entitiy that you wish to return 
  • I left alert bank and received my recipent list.

 

1 reply

NiKlaus12-AmethystAuthorAnswer
12-Amethyst
Apr 11, 2024 6:26 AM UTC

After some trial and error, here is the solution:

  • Handler ID is an alpha numeric value that is found by running .GetAvailableHandlers()
  • Entity Name is the name of the thing 
  • entity type, in my case was just 'Thing'
  • eventName is the eventType so can be alert or AnyDataChange, etc. In my case is was 'DataChange'
  • propertyName is the property from the entitiy that you wish to return 
  • I left alert bank and received my recipent list.

 

Translate