web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SharePoint list and fo...
Power Apps
Answered

SharePoint list and form design

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi experts,

I have a question it is more like share point list designing issue.

I am trying to build an APP to show me how my company uses the credit card, I am using SharePoint as data sourse.

sometimes the same invoice that I want to attach may contain purchase related to many programs (departments)

is there any suggestion how save the form using many programs code that requests to divide the money amount too. (One to Many )

I'll attach an image to show you what I mean exactly.

Thanks in advance

 

 

capture 7.png
Categories:
I have the same question (0)
  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on at

    I would create an invoice list and an invoice line list. On the line put the program code (which could be a lookup to a program code list. Relate invoice lines to invoice with a lookup type field.

     

    In your app you could build a screen that has the invoice header details and a gallery of related invoice lines. Set items of gallery to something like Filter(invoicelines, invoicelines.invoice.Id=Invoice.ID.

     

    @Anonymous If this answers your question please mark as solution

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to attach a invoice with multiple programs code (Departments)?

     

    Based on the needs that you mentioned, I agree with @jlindstrom 's thought almost. You could consider create another individual SP List (called "Program Codes") to store the programs codes (using "Program Code" column, Text column) and corresponding amount value (using "Amount" column, Number column).

     

    Then within your CC Usage SP List, you should configure the "Program Code" column as a LookUp field type column to reference values from the "Program Code" column in your "Program Codes" List, and enable "Allow Multiple Selections" option for this LookUp field (so that you could selected multiple options within the "Program Code" LookUp column). The Amount field value should be calculated automatically based on the selected options within the "Program Code" LookUp field.

    You need to re-generate a new canvas app based on your SP List, then go to the Edit form, set the Default property of the Amount Text Box to following:

    If(
     EditForm1.Mode = FormMode.New,
     Sum(
     ForAll(
     ProgramCodeComboBox.SelectedItems,
     LookUp('Program Codes List', 'Program Code' = Value, Amount) // find corresponding amount value for each selected program code in your 'Program Codes' List
     ),
     Value
     ),
     Parent.Default
    )

    You could select multiple options within the Program Code ComboBox, then corresponding total Amount value of these selected Program Code options would be calculated within the Amount field data card automatically.

     

    Please take a try with above solution, hopes it could help in your scenario.

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard