cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jayant_2203
Helper II
Helper II

Dynamic 365 Application to save contact

Hi All,


I am trying to create an application with Dynamic 365 Business Central as my Data source. I have created a form to submit the data to contact table. But while i am trying to save the data there is an error that i face. Can you guys please help me solving this?

Jayant_2203_0-1627295970286.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
GarethPrisk
Resident Rockstar
Resident Rockstar

The code is obscured. Please post it in your next reply.

I assume it's a Patch() and you're specifying the Defaults() parameter, so it should interpret that function block as an insert. However, without seeing all of the code, it's hard to tell what else might be causing the error.

Additionally, when this happens, the entire function block may be underlined in red but the offending column (if known) is highlighted in a thicker/bolder red. This can help identify if you have a column that it doesn't like.

For example, this may be creating a Contact but also referencing the Contact (or another yet to be created Contact in another field), and causing the issue.

View solution in original post

1 REPLY 1
GarethPrisk
Resident Rockstar
Resident Rockstar

The code is obscured. Please post it in your next reply.

I assume it's a Patch() and you're specifying the Defaults() parameter, so it should interpret that function block as an insert. However, without seeing all of the code, it's hard to tell what else might be causing the error.

Additionally, when this happens, the entire function block may be underlined in red but the offending column (if known) is highlighted in a thicker/bolder red. This can help identify if you have a column that it doesn't like.

For example, this may be creating a Contact but also referencing the Contact (or another yet to be created Contact in another field), and causing the issue.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,093)