Hi all,
This post is an extension to the following post, but creating a new one as the topic has changed
We have implemented a process that identifies the edits from an OnPost Webhook from a branch version and we're able to successfully extract the data from the webhook. However, how do we determine what version name was used to generate the OnPost trigger?
We want to identify the version name (which aligns with an as-built edit process) so that we can follow workflow processes.
Cheers,
@geovolve - Haven't found a way of finding out which versions the changes are originating from. The webhook payload doesn't expose that.
You can use differences capability to compare different versions to find out what the changes are but this needs to be done before posting. Once posted, the information about versions is lost.
Which got me thinking, you could have a attribute rule that writes the version details against the object that was changed. This should be available as an attribute via the webhook->extract changes process in the previous post.
GdbVersion($feature)
https://community.esri.com/t5/attribute-rules-videos/use-gdbversion-to-return-the-current-version-be...
It looks like it returns the Name of the version not the GUID. You might need to make another to version management endpoint to get the version GUID if needed.
Yeh thanks @gis_KIWI4 that was the workaround that we had implemented but its not very elegant.
Looking at Robs comment below, I guess we'll raise it as a feature request.
If you haven't already, log an issue for this. Its either a bug or something that would be a good feature. Not including the version name in the on post message to the web hook seems like a good idea.
Thanks @RobertKrisher I'll log a feature request.