cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Holzi02
New Member

The type of this argument X dos not match the expected Type Record. Type text as found

I am currently creating a beverage ordering app. I want to create records in "beverage orders" from labels. There are different drinks and each drink has its own number. This means that "VG1000" is the drink and "Wasser_Gruen_Count" is how many drinks should be ordered. The one picture shows an example how a record should look like. To create a record I want to use the patch function, but unfortunately I get the following error message when I enter the line. The error message means "The type of this argument X dos not match the expected Type Record. Type text as found." What is my error?WhatsApp Image 2021-03-18 at 08.53.20.jpegWhatsApp Image 2021-03-18 at 08.58.32.jpegWhatsApp Image 2021-03-18 at 08.55.02.jpeg

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @Holzi02 

 

From your screenshot, Getrank appears to be look up/related column. Can you confirm that's the case?

If so, the patch syntax you would use would look something like this

Patch('Getranke-Bestellungen';
      Defaults('Getranke-Bestellungen');
      {
          Getrank: LookUp('GetrankLookupTable'; YourFieldName="VG100");
           Anzahl: 'Wasser Gruen Count'
      }
)

View solution in original post

2 REPLIES 2
timl
Super User
Super User

Hi @Holzi02 

 

From your screenshot, Getrank appears to be look up/related column. Can you confirm that's the case?

If so, the patch syntax you would use would look something like this

Patch('Getranke-Bestellungen';
      Defaults('Getranke-Bestellungen');
      {
          Getrank: LookUp('GetrankLookupTable'; YourFieldName="VG100");
           Anzahl: 'Wasser Gruen Count'
      }
)

View solution in original post

Thank you. It works😀

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.

Users online (1,393)