Hi!
I have created a plugin that can manage events that came from the Background using the EnvironmentManager.Instance.SendMessage.
Now, I want to do that “communication” throught the REST API, but I dont know how to get the Id of the Event, I mean, check that when I retrieve the eventTypes I get the events from the custom item I created:
“displayName”: “Dev Active (MIP Device Status)”,
"id": "04e51bba-dcd2-4a47-8aa6-2980326bb4c2",
"name": "Dev Active (MIP Device Status)",
"lastModified": "2025-01-03T15:35:21.1070000Z",
"description": "",
"generatorType": "MIP",
"generatorSubtype": "",
"generatorName": "Device Test Plugin",
"generatorID": "9A8E41B1-70DF-4184-8407-6A92851DF3CF",
"generatorGroupName": "MIP Device Status",
"generatorGroupId": "cbe96f4d-f482-48d0-b00a-19b044652959",
"occursGlobally": true,
"builtIn": false,
"counterEventID": "04e51bba-dcd2-4a47-8aa6-2980326bb4c2",
"sourceArray": \[
"MIPItem"
\],
"sourceFilterArray": \[
"6a3061f1-31c0-40bc-8515-7c1b27ab2533",
""
\],
"stateGroupId": "2321526b-4630-497a-aa53-419ebdcd057c",
"state": "Active",
"relations": {
"parent": {
"type": "eventTypeGroups",
"id": "cbe96f4d-f482-48d0-b00a-19b044652959"
},
"self": {
"type": "eventTypes",
"id": "04e51bba-dcd2-4a47-8aa6-2980326bb4c2"
}
}
But the trigger has different “”
{
"data": {
"specversion": "1.0",
"type": "06c5010d-11f2-4d70-bd79-4cec3a20d589",
"source": "sites/514babee-ec9d-4339-9d63-780c6a469a16",
"time": "2025-02-01T10:31:35.7282852Z",
"id": "93ac93e4-6dbd-4cf9-9e36-e58bbded2d3a",
"localId": 0,
"datatype": "free-form"
}
}
So I dont know how to “link” the Id from the custom item and the trigger
How can I do it? Do I have to create and specific event in the configuration to manage it?
Thank you for your help!