Hi @braxx ,
It's hard to tell without knowing what are the parameters you are expecting in your Azure Function, but from the error msg, it looks like name is one of the parameters you wanted. If that is the case, request-body should look like the following:
{
"name":[
{
"Url": "https://www. 4714347",
"Title": "asdsfflkldsf",
"Initiative": "as5d",
"Start Date": "46130"
},
{
"Url": "https://www. 4717",
"Title": "asdsffdsf",
"Initiative": "asd",
"Start Date": "44130"
}
]
}
Please modify the SP accordingly and it should work. Here is an example:
DECLARE @json _construct varchar(MAX) = '{"name": {X}}';
DECLARE @json VARCHAR(MAX);
SET @json = (SELECT col1, col2, col3 FROM dbo.Table FOR JSON PATH);
SELECT REPLACE(@json _construct,'{X}', @json ) AS json_output;
Please let me know if this helps. Thanks! :)