Hi VeeraReddy Akkili ,
Welcome to Microsoft Q&A platform and thanks for posting your query.
As I understand your query, you want to load the json payload received from az function app to dataflow without loading it to blobstorage or datalake. It would be better if you could share some screenshot of the pipeline what you have created till now.
To extract the json elements without the need to use lookup , you can use openJSON function in SQL . You can use script activity or lookup activity pointing the dataset to sql and use the below format to call openJson function:
DECLARE @json NVARCHAR(MAX) = N'[
{
"Order": {
"Number":"SO43659",
"Date":"2011-05-31T00:00:00"
},
"AccountNumber":"AW29825",
"Item": {
"Price":2024.9940,
"Quantity":1
}
},
{
"Order": {
"Number":"SO43661",
"Date":"2011-06-01T00:00:00"
},
"AccountNumber":"AW73565",
"Item": {
"Price":2024.9940,
"Quantity":3
}
}
]'
SELECT *
FROM OPENJSON ( @json )
WITH (
Number VARCHAR(200) '$.Order.Number',
Date DATETIME '$.Order.Date',
Customer VARCHAR(200) '$.AccountNumber',
Quantity INT '$.Item.Quantity',
[Order] NVARCHAR(MAX) AS JSON
)
Here instead of the hardcoded json , you can pass the 'az function activity output expression ' dynamically to the variable.
Kindly find more details about openjson here: https://youtu.be/hfujOfmiDDM?list=PLsJW07-_K61JkuvlNfCK9gTEft_N8MVsP&t=687
Hope it helps. Please let us know how it goes. Thankyou