Field Service

Get Involved. Join the Conversation.

Topic

    Austin Keller
    Activity Event Filter Expression
    Topic posted October 29, 2019 by Austin KellerRed Ribbon: 250+ Points, last edited October 29, 2019, tagged API / Integration 
    7 Views
    Title:
    Activity Event Filter Expression
    Summary:
    Filter subscription activity events by userType
    Content:

    Our client wants to monitor activity events for specific userTypes (like callcenter and servicecenter)

    Can we use the userType as a filter for activity type events?

    The below subscription was created successfully, but am unable to pull results.  If I remove the filter expression, I pull results for all users.

     

    {"subscriptionConfig": [{"events" : ["activityCreated","activityUpdated","activityCanceled","activityDeleted","activityMoved"],
                            "filterExpression" : "(user.userType IN ['callcenter'])"}]}