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 / The type of this argum...
Power Apps
Answered

The type of this argument 'List Name' does not match the expected type 'Record'. Found type 'Error'

(1) ShareShare
ReportReport
Posted on by 166
I have a share point list with column Company as lookup (this column is looking into another share point list called companies and pointing to Title).
 
Below is the code I have written in Power apps patch function.
 
 
I have tried
  • Company:cmbCompany.Selected.Value
  • Company:cmbCompany.Selected.Text
  • Company:cmbCompany.SelectedItems
and many other combinations.
 
Set the value to Allow nulls in list setting for this column.
 
Here are the properties of combox box used
 
 
 
Companies List 
 
 
This is where I am expecting the data to be saved into Waiver List page
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,283 Most Valuable Professional on at
    You have changed the Items of your Combo Box from the standard Choices(ListName.FieldName) - Lookup columns will cause you more grief than this (I have never used them with Power Apps), but assuming that this is a single choice Combo Box, the Patch would be something like
    Patch(
       Waivers,
       Defaults(Waivers),
       {
          Company:
          {
             Value: cmbCompany.Selected.Title,
             Id:
             LookUp(
                Companies,
                Title = cmbCompany.Selected.Title
             ).ID
          }
       }
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • PraveenC Profile Picture
    166 on at
    Hello WarrenBelz,
     
    This teams to be working. Can you also please suggest for the combo box which are popualated in code in Items event.
    For ex: for Types column, i have added the values manually.
     
    When I use this code it still throws the same error
     
    Types:cmbtype.Selected.Value
  • WarrenBelz Profile Picture
    155,283 Most Valuable Professional on at
    Where are you using that code ?
  • PraveenC Profile Picture
    166 on at
    Used this code and it works fine
     
     Company: {
                        Value: cmbCompany.Selected.Title,
                        Id: LookUp(
                            Companies,
                            Title = cmbCompany.Selected.Title
                        ).ID
    }
  • WarrenBelz Profile Picture
    155,283 Most Valuable Professional on at
    Yes - that is exactly what I posted

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,055

#2
Valantis Profile Picture

Valantis 666

#2
11manish Profile Picture

11manish 666

Last 30 days Overall leaderboard