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

How to ge data from an Entity into Business Central

I have created an App where I pulled certain data fields from the Odata feed inside of Business Central for Posted invoices.  I am working on calculation Commision, so I pulled things such as Amount, SalesPerson, sell to customer name, and sell to customer number.  I then have a seperate table that does a lookup to get the correct Commission %, and does the calculation, and creates an excel file with a summary of this information.  

 

Now what I would like to do is a essentially create a "Pending General Journal" inside of Business Central.  I am not sure what the best option is for this.  I also don't really know how to get this data to go back in using power Apps.  

 

Has anyone pushed data  back into Business Central? I feel like this is a simple step that I am just over thinking

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to ge data from an Entity into Business Central

Hi @MaryMThompson ,

Could you please share a bit more about your scenario?

Could you please show more details about the "Pending General Journal" that you mentioned?

Further, do you want to write data back into your Business Central table using PowerApps app?

 

If you want to write data back into your Business Central table using PowerApps app, here are the solutions:

1. Generate an app based on your Business Central table, then it would generate three screens -- BrowseScreen, DetailScreen and EditScreen.

Within the Edit screen, you could save data back to your Business Central table through the Edit form.

Please check the following blog or video for more details:

https://community.dynamics.com/nav/b/arounddynamicsnavworld/posts/powerapps-integration-with-microso...

https://www.youtube.com/watch?v=HKT6OsH2SXw

 

2. If you want to write data back to another Business Central table from an app, I think the Patch function could achieve your needs. Please set the OnSelect property of the "Submit" button to following formula:

Patch(                              /* <-- Add new records into your  Business Central Table */
         'Your Business Central Table',
Defaults('Your Business Central Table'),
{
Column1: "Xxxx",
Column2: "xxxx",
Column3: "xxx",
...
} )
Patch(                              /* <-- Edit an existing record within your  Business Central Table */
         'Your Business Central Table',
LookUp('Your Business Central Table', PrimaryColumn = "A specific value"), /* <-- Find the record you want to update */
{
Column1: "Xxxx",
Column2: "xxxx",
Column3: "xxx",
...
} )

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

Patch function

 

Best regards,

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.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: How to ge data from an Entity into Business Central

Hi @MaryMThompson ,

Could you please share a bit more about your scenario?

Could you please show more details about the "Pending General Journal" that you mentioned?

Further, do you want to write data back into your Business Central table using PowerApps app?

 

If you want to write data back into your Business Central table using PowerApps app, here are the solutions:

1. Generate an app based on your Business Central table, then it would generate three screens -- BrowseScreen, DetailScreen and EditScreen.

Within the Edit screen, you could save data back to your Business Central table through the Edit form.

Please check the following blog or video for more details:

https://community.dynamics.com/nav/b/arounddynamicsnavworld/posts/powerapps-integration-with-microso...

https://www.youtube.com/watch?v=HKT6OsH2SXw

 

2. If you want to write data back to another Business Central table from an app, I think the Patch function could achieve your needs. Please set the OnSelect property of the "Submit" button to following formula:

Patch(                              /* <-- Add new records into your  Business Central Table */
         'Your Business Central Table',
Defaults('Your Business Central Table'),
{
Column1: "Xxxx",
Column2: "xxxx",
Column3: "xxx",
...
} )
Patch(                              /* <-- Edit an existing record within your  Business Central Table */
         'Your Business Central Table',
LookUp('Your Business Central Table', PrimaryColumn = "A specific value"), /* <-- Find the record you want to update */
{
Column1: "Xxxx",
Column2: "xxxx",
Column3: "xxx",
...
} )

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

Patch function

 

Best regards,

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.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

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