Null values are getting inserted into sql table using logic app

G Rohini Bharadwaja 46 Reputation points
2022-11-06T02:41:56.357+00:00

Hi All,

I have tried to create a logic app for HTTP request for inserting a row in sql table, but when the data is pushed through postman, null values are getting inserted instead of the values that i am posting.

HTTP Request JSON Body

{
"type": "object",
"properties": {
"Id": {
"type": "string"
},
"Name": {
"type": "string"
}
}
}

Values posted using Postman:

{
"Id":"10",
"Name":"Azure logic app"
}

257505-image.png

Any suggestions please!

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,551 questions
SQL Server | Other
{count} vote

Accepted answer
  1. Bruno Lucas 4,436 Reputation points MVP
    2022-11-07T02:25:54.847+00:00

    Hi @G Rohini Bharadwaja

    I think I know what is going on

    your content type is set to empty

    257618-image.png

    try to change to this:

    257644-image.png

    make sure it's all in one line and nothing left below

    257645-image.png

    When I set my Postman like yours, I get nothing on my logic app:

    257624-image.png

    -------------------------------

    Here is my complete POSTMAN setup:

    Make sure is "POST" , select body to add the json and select 'raw' and 'json""

    257763-image.png

    minimun headers:

    257669-image.png

    No Auth
    257717-image.png

    Try again with those settings.

    Case that information helps, don't forget to vote or mark as Answer to help the community. Cheers!

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.