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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / The type of this argum...
Power Apps
Unanswered

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
    153,040 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
    153,040 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
    153,040 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard