cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Using the service GetUserRecipientsOfEvent

NiKlaus
7-Bedrock

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. 

1 ACCEPTED SOLUTION

Accepted Solutions
NiKlaus
7-Bedrock
(To:NiKlaus)

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.

 

View solution in original post

1 REPLY 1
NiKlaus
7-Bedrock
(To:NiKlaus)

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.

 

Top Tags