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'
      }
)

Thank you. It works😀

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,851)