cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LeonieWilliams
Level: Powered On

PowerApp not submitting data to Dynamics

I've set up a PowerApp linked to Dynamics, it's surfacing the fields ok but when I enter data for the mandatory fields and try to submit, I can't find the record anywhere in Dynamics.  Sometimes PowerApps says it may not save the data, other times it appears to submit, the form clears but there is no record created Dynamics.

 

The PowerApp was set up with the default submit button (on the tick), I'm wonder if this needs to be a different type of submit to get the data to input into Dynamics.

 

Here's a screenshot of the fields - I've connected to the Accounts and Contacts tables to show the Apprentice and Host Company values to select, which is fine (although has hit the 500 limit, but that's for another post) but just can't get the record to create in Dynamics.

 

Any ideas?

 

As a test, I created a PowerApp to create a new contact with just first name and last name, and this submitted to Dynamics with the default PowerApps submit button, so I'm connecting to Dynamics ok, just can't create another type of record - the H&S Site Observation record in this case.

 

Screen Shot 2018-08-20 at 12.24.27 PM.jpg

 

3 REPLIES 3
Community Support Team
Community Support Team

Re: PowerApp not submitting data to Dynamics

Hi @LeonieWilliams,

 

Could you please share a bit more about the H&S Site Observation that you mentioned? Is it a custom entity within your Dynamics 365?

Further, could you please show more details about the error message within your app?

 

I have made a test on my side and don't have the issue that you mentioned.

 

Please check if you have typed proper value for these mandatory fields. Please also make sure that you have defined a proper data type for these mandatory fields within your Dynamics 365 entity.

 

In addition, you could also consider take a try to use Patch function instead of SubmitForm function to save data into your Dynamics 365 entity (H&S Site Observation entity).

 

Please check and see if the following blog would help in your scenario:

https://www.inogic.com/blog/2018/07/create-records-in-dynamics-365-with-canvas-powerapp/

 

More details about the Patch function in PowerApps, please check the following article:

Patch function

 

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
LeonieWilliams
Level: Powered On

Re: PowerApp not submitting data to Dynamics

Thanks for the post, I've tried the patch function and it's still not creating a record.  I've tried the lookup screen but it just gets too complicated, and I shouldn't need to look up the contact or account, I can do that from the dropdowns in the edit screen, so not sure why I would add another screen to do that...

 

The form is a custom entity. I have connected to the H&S Site Observations table and added the data cards direct from the table.  Here's a screenshot of that:

Screen Shot 2018-08-27 at 12.05.45 PM.jpg

 

Here's what I've tried now - I want to create a new H&S Site Observation form each time, so have used the Defaults function and I want everything filled out in the EditForm1 to be on that record.  What else am I missing?

 

Screen Shot 2018-08-27 at 12.02.31 PM.jpg

qidwai
Level: Power Up

Re: PowerApp not submitting data to Dynamics

use Patch function 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 42 members 3,929 guests
Please welcome our newest community members: