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.
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.
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:
More details about the Patch function in PowerApps, please check the following article:
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:
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?
Check it out!
Check it out!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand