cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Iro_
Helper I
Helper I

Invoice Processing Automation Starter Kit / Can I add columns to power App?

Hello,

 

I am wondering if the power app of the starter kit is customizable so that I can add more columns to the invoices list:

 

Iro__0-1632208311543.png

 

I need to add columns such as "Date", "Bill To", "Tax" etc (in order for the user to be able to see all the invoice fields without having to open each invoice).

 

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
CedrickB
Power Apps
Power Apps

Hi,

Here is a procedure

1. Edit the "Document Automation Application" that you can find in the Apps menu of Power Apps

2. In the editor go to "OnSelect" property of the "Refresh Button" in the "Document List Screen"

CedrickB_0-1632325788061.png

3. Replace this code

ClearCollect(
  DocumentsToDisplay,
  Sort(
    'Document Automation Processings',
    'Created On',
    SortOrder.Descending
  )
);

By this code

ClearCollect(
DocumentsToDisplayTemp,
AddColumns(
Sort(
'Document Automation Processings',
'Created On',
SortOrder.Descending
) As DocProcessing,
"FileName",
DocProcessing.'File Name',
"CreateOn",
DocProcessing.'Created On',
"ProcessingStatus",
DocProcessing.'Processing Status',
"ExtractedData",
LookUp(
[@'Document Automation Data'],
'Document Automation Processing'.Name = DocProcessing.Name
)
)
);
ClearCollect(
DocumentsToDisplay,
AddColumns(
DocumentsToDisplayTemp,
"Data1",
ExtractedData.Data1,
"Data2",
ExtractedData.Data2,
"Data3",
ExtractedData.Data3
)
);

4. Rename the "Data1", "Data2", "Data3", etc... to the proper label

5. Save and close your app to force the cache to be refreshed

6. Edit the app again and click on the "ProcessedDocumentsDataTable"

CedrickB_1-1632326071699.png

7. In the right pane, click on "Edit Fields"

CedrickB_2-1632326123257.png

You should be able to pick the new "Data1"... fields previously added.

8. Save, publish and close your app

 

NOTE that Performance may be less optimal with these new fields.

Let me know if you are encountering issues.

View solution in original post

1 REPLY 1
CedrickB
Power Apps
Power Apps

Hi,

Here is a procedure

1. Edit the "Document Automation Application" that you can find in the Apps menu of Power Apps

2. In the editor go to "OnSelect" property of the "Refresh Button" in the "Document List Screen"

CedrickB_0-1632325788061.png

3. Replace this code

ClearCollect(
  DocumentsToDisplay,
  Sort(
    'Document Automation Processings',
    'Created On',
    SortOrder.Descending
  )
);

By this code

ClearCollect(
DocumentsToDisplayTemp,
AddColumns(
Sort(
'Document Automation Processings',
'Created On',
SortOrder.Descending
) As DocProcessing,
"FileName",
DocProcessing.'File Name',
"CreateOn",
DocProcessing.'Created On',
"ProcessingStatus",
DocProcessing.'Processing Status',
"ExtractedData",
LookUp(
[@'Document Automation Data'],
'Document Automation Processing'.Name = DocProcessing.Name
)
)
);
ClearCollect(
DocumentsToDisplay,
AddColumns(
DocumentsToDisplayTemp,
"Data1",
ExtractedData.Data1,
"Data2",
ExtractedData.Data2,
"Data3",
ExtractedData.Data3
)
);

4. Rename the "Data1", "Data2", "Data3", etc... to the proper label

5. Save and close your app to force the cache to be refreshed

6. Edit the app again and click on the "ProcessedDocumentsDataTable"

CedrickB_1-1632326071699.png

7. In the right pane, click on "Edit Fields"

CedrickB_2-1632326123257.png

You should be able to pick the new "Data1"... fields previously added.

8. Save, publish and close your app

 

NOTE that Performance may be less optimal with these new fields.

Let me know if you are encountering issues.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Kudoed Authors
Users online (1,951)