I have an Real Time Analytic that includes an Event Detector. 99% of the time this works great from Start to Ended. But once in a while the device (Track Id) stops sending transactions before the Event Ends and since there are no further transactions the Event also never Expires. Resulting in Dispatchers seeing phantom Events.
I would Like to include an Option in the PopUP to manually close the Event by including a URL they could click on that would do an Rest API call to update the Event Status Field in the Feature Layer.
My issue is that the Rest API push needs an Authorization Token in the Stream and I don't see that as one of the Session Values available to me when building the URL with Arcade. Anyone have any ideas how I can get it to complete the instruction. But so far my research does not indicate getting the token would be possible ..
https://developers.arcgis.com/rest/services-reference/enterprise/feature-service/
https://community.esri.com/t5/developers-ideas/arcade-function-to-get-logged-user-token/idi-p/117140...