Select to view content in your preferred language

Add an option to specify layer numbers when creating an enterprise feature service webhook

149
0
07-26-2024 04:35 AM
Status: Open
MadhavPoosarla
Emerging Contributor

Problem Statement: In any published service, the layer ids that have been modified are not included in the notification sent by the ArcGIS enterprise application webhook service.

Impact: The application processing the notification sent by the ArcGIS enterprise application webhook, needs to retrieve all layer metadata in order to interpret the modified layer ids.

Proposed Solution: Since webhooks are created at the service level, we request to include modified layer ids during webhook creation. By implementing this solution, users can streamline metadata retrieval and process the notification by focusing on relevant layers only.

Example: Created feature service webhook at Enterprise with change type as FeatureCreated, FeatureUpdated and FeatureDeleted.

After performing create feature operation on that service we received below notification Payload for created event on our registered url.

{

   "serviceType": "FeatureServer",

   "changesUrl": "https://machine.domain.com/webadaptor/rest/services/Hosted/my_Service/FeatureServer/extractChanges?s...

   "name": "ArcGIS_adapterHosted_Demo",

   "id": "3945126d-edff-440a-9c87-b7972d6af61a",

   "folderName": "Hosted",

   "serviceName": "AdapterHostedCopy",

   "events": [{

           "eventType": "FeaturesCreated",

           "when": 1721647618015

       }

   ]

}

 

Above Payload doesn't provide information of layer, our requirement is we are looking option to add ...