
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
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://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:
Best regards,