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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

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