cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

HTTP Request Received > Add record in CDS

Hi, 

 

I'm creating a flow which is triggered by an incoming API message in 'When a HTTP request is received'. Receiving and parsing the json file seems to work but when I add the functionality to add the record to a CDS entity my tests fail on the first step. I tried, and exactly followed multiple solutions in blogs and forum threads but when I add steps behind the json parsing the flow starts to fail. What am I doing wrong? 

 

Message body:

[
{
"workOrderId": "XX26F4XX-9999-9999-TEST-00155D669999",
"mobilePhone": "0699999999"

}
]

 

JSON Schema (generated by the action):

{
    "type""array",
    "items": {
        "type""object",
        "properties": {
            "workOrderId": {
                "type""string"
            },
            "mobilePhone": {
                "type""string"
            }
        },
        "required": [
            "workOrderId",
            "mobilePhone"
        ]
    }
}

 

Working:

2020-09-16 16_33_43-Run History _ Power Automate and 4 more pages - [InPrivate] - Microsoft​ Edge.png2020-09-16 16_34_00-Run History _ Power Automate and 4 more pages - [InPrivate] - Microsoft​ Edge.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Not working anymore:

2020-09-16 16_37_42-Run History _ Power Automate and 4 more pages - [InPrivate] - Microsoft​ Edge.png

 

2020-09-16 16_38_19-Edit your flow _ Power Automate and 4 more pages - [InPrivate] - Microsoft​ Edge.png2020-09-16 16_38_47-Edit your flow _ Power Automate and 4 more pages - [InPrivate] - Microsoft​ Edge.png

 

 

 

 

 

 

 

 

 

 

 

 

2020-09-16 16_38_59-Edit your flow _ Power Automate and 4 more pages - [InPrivate] - Microsoft​ Edge.png

 

 

 

 

 

 

 

 

 

 

 

 

Thanks in advance,

Jeroen

 

Update 18/09/2020:

 

What seemed to have resolved the issue was switching on and saving and switching off again and saving the 'Schema validation' in the advanced settings. It maybe had to do with filling the 'Request body jsnon schema' but not wanting to use it. 

 

JeroenP_0-1600428043308.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: HTTP Request Received > Add record in CDS

Hi @JeroenP 

 

Thanks for the update. Since your issue is resolved could you please mark it as solution accepted.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

1 REPLY 1
Highlighted
Super User III
Super User III

Re: HTTP Request Received > Add record in CDS

Hi @JeroenP 

 

Thanks for the update. Since your issue is resolved could you please mark it as solution accepted.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (6,793)