cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
pridDubDub
New Member

Problem creating new CDS Record in Flow

Hey,

 

I'm really stuck trying to use the Create New Record - Common Data Service action in flow.

 

I've used it a couple of other times for other flows and all seems fine, so I'm not sure what I'm missing this time.

 

What I'm trying to do is really simple, when a record gets created for Entity A, I want to create a record in Entity B.

 

It's getting triggered fine, but I'm getting a fail 'bad request' on the create step.

{

"status": 400,

"message": "Object reference not set to an instance of an object.",

"error": { "message": "Object reference not set to an instance of an object." },

"source": "xxxxxx.crm11.dynamics.com",

"errors": [],

"debugInfo": "clientRequestId: b909b1d9-5091-4a87-9d9a-23e0a8d3b085"

}

 

In the body, there is a blank input for 'ownerid_type' - which I feel might be important in some way, I'm just not sure how 🙂

 

{ "name": "Test", "_ownerid_type": "" }

 

Many thanks for your help

Pete

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Problem creating new CDS Record in Flow

Hi @pridDubDub 

 

If it's a lookup field then you need to set the related entity name / GUID.  Please see below. 

 

image.png



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

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Problem creating new CDS Record in Flow

Hi @pridDubDub 

 

Could you please post your flow screenshot?

 

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
Super User
Super User

Re: Problem creating new CDS Record in Flow

Hi @pridDubDub 

 

If it's a lookup field then you need to set the related entity name / GUID.  Please see below. 

 

image.png



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

View solution in original post

pridDubDub
New Member

Re: Problem creating new CDS Record in Flow

Thanks so much, that was it, there was a cheeky extra relationship I wasn't dealing with.

 

thanks again

Pete

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (6,958)