Skip to main content
Microsoft Idea

Synapse

Needs Votes

Event Processing: Derive value from complex JSON

Vote (4) Share
Thomas Pagel's profile image

Thomas Pagel on 07 Oct 2023 19:07:08

Please allow to derive a value out of a complex JSON which is stored in a single field in your stream

Uri Barash (administrator)

Complex JSON cells can be processed today using update policies and JSON data mappings in the KQL database. Creating a no-code experience for this will depend on popuarity of the idea. 

Comments (3)
Thomas Pagel's profile image Profile Picture

Thomas Pagel on 04 Nov 2023 13:45:51

RE: Event Processing: Derive value from complex JSON

I'm not that familiar with the terminology of JSON but I guess it's a combination of object and array, with a lot of "key/value" pairs included. You can simply reach out to your colleagues from the D365 F&O team and ask them for a sample of what they deliver as a "data change event" (I can provide you with a sample as well if there's any good way how to transfer it safely)... It's really quite complex and I would like to be safe for schema changes etc. so not working with indexes but more with "keys" to identify the values I would like to have from that JSON. I think it would be just great if you can use Fabric as a sink for events out of D365, the current sync mechanism you have with Data Lake have a latency of about 1h (at least currently). With events you would be able to bring that down to a minute or so. This would enable you to react on something going on in D365 in near real-time what is not possible with other data communications right now. This idea is also connected to the one where I ask for CUD support in Event Processing. If that would work you would be able to sync tables (entities to be precise) from D365 through events, nothing would be more real-time and open up use-cases with Data Activator etc. ...

Thomas Pagel's profile image Profile Picture

Xu Jiang on 30 Oct 2023 09:43:14

RE: Event Processing: Derive value from complex JSON

Thank you, Thomas for your feedback. May I know what the data type is in the field of the stream? Is it a JSON object or JSON array or JSON-like string?If it is a JSON object, you can use "Manage field" operator to get the data into a new column.If it is a JSON array, you can use "Expand" operator to expand these arrays into separate column, then use "Manage field" to get the data into another column.If it is a JSON-like string, it is not supported yet, but in our roadmap.

Thomas Pagel's profile image Profile Picture

Thomas Pagel on 22 Oct 2023 11:04:48

RE: Event Processing: Derive value from complex JSON

I know... However it would be great for the "no-code" users to be able to do these kind of actions as well without coding...