Forum Discussion

adamcodes716's avatar
adamcodes716
Regular Visitor
2 years ago
Solved

Trying to expand a json array into multiple columns

I am trying to set up an ingestion from an event hub to a KQL database.  The difficulty in doing this is that there is a payload field that is a few levels down.  I am trying to do this via the UI using an Event Processor to do this and I can go most of the way there.  I can get to the point where I have a column with the payload.

 

Here is a simple example of that column:  [{"name":"itemA", "section":"34", "key":"1234"}]

 

I could use "expand" here, but this breaks out the payload into 3 rows.  The problem with this is that the "key" only exists in one of the rows and I have no way to tie it back to the other entries.  Is there another option using Event Processor?  I am trying to avoid doing this in code.

  • Hey! This doesn't appear to be a question related to Dataflow Gen2. I'll try to reroute this to the appropriate forum.

3 Replies

  • miguel's avatar
    miguel
    Community Admin

    Hey! This doesn't appear to be a question related to Dataflow Gen2. I'll try to reroute this to the appropriate forum.

  • Oops, sorry about that.  Please let me know if I need to re-create.