Identify specific change from hosted feature layer webhook

171
3
12-06-2021 02:48 AM
Labels (2)
rachelm
New Contributor III

I am trying to use an Integromat webhook based on Feature Updates to identify the specific changes that occurred: attribute fields or geometry. I intended to add a filter to the webhook to only function on geometry changes. Is this possible?

I've watched the video Getting Started with Hosted Feature Layer Webhooks and have successfully obtained my results url. But it returns all the updated feature's data, and not exactly what was changed. 

Additionally, what is the functional difference between Feature Update and Feature Edit? (https://developers.arcgis.com/rest/services-reference/online/web-hooks-payloads-feature-service-.htm)

Tags (1)
0 Kudos
3 Replies
Peter_Klingman
Esri Regular Contributor

Hi @rachelm so you are looking to obtain only the fields from the feature that have updated rather than the entire feature that was updated? For example if I update the status field that is the only one you would want back? 

Features edited includes adds and deletes as well as updates. 

Thanks,

-Peter 

0 Kudos
rachelm
New Contributor III

Hi @Peter_Klingman 

Yes, I'm only looking for the actual edited field(s). In this particular case for  geometry updates.

If nothing else I can try to store the ShapeArea field in a Data Store and then compare every time there is an update but that is very not ideal.

thanks!

Rachel 

0 Kudos
Peter_Klingman
Esri Regular Contributor

Hi @rachelm - in this case I believe you could use the returnHasGeometryUpdates argument in extractChanges. This will return a boolean in the extract changes response. So you cannot conditionally fire the webhook based on a geometry or attribute update, but you can filter any subsequent actions after the extract changes response is received based on if geometry was changed or not.