cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

invalid argument type from SPO list lookup (table data type) says it's expecting text

So I have a powerapp form with combo box named Division which data comes from a SPO lookup list. That list is Divisions and has 3 columns: ID, Divisions, and DivMgr. 

 

The next field I'm calling DivMgr and it is a single line of text in the SPO list. For the Default for that Text Input field I'm trying the following "If(Division.Selected.Id = Divisions.ID, Divisions.'DivMgr0')" 

 

What magic syntax do I need to find a table record and push that into a text field?

Many thanks for any assistance in advance (with kudos to follow)!

 

/Robin

1 ACCEPTED SOLUTION

Accepted Solutions

... so I ended up using a lookup in a hidden field, then putting that field into my DivMgr field like so:

 

LookUp(Divisions, Division=Edit_Division.Selected.Value, 'Division Manager'.Email) 

 

Where "Divisions" is a dataset, and "Division" and "Division Manager" are columns in the lookup list, and "Edit_Division" is a combo box name that points to the main SPO list.

View solution in original post

3 REPLIES 3
Super User III
Super User III

Hi @rnorris ,

Try this

Lookup(
   Divisions,
   ID=ThisItem.ID
).'DivMgr0'

 

Please click Accept as solution 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 Thumbs Up.

 

@WarrenBelz ,

 

Well that doesn't produce any errors, but the DivMgr text box does not show any value either. 

 

Eventually I'll hide this anyway, cause I just need it populated so I can make use of the dynamic value in the flow that follows.

 

/Robin

... so I ended up using a lookup in a hidden field, then putting that field into my DivMgr field like so:

 

LookUp(Divisions, Division=Edit_Division.Selected.Value, 'Division Manager'.Email) 

 

Where "Divisions" is a dataset, and "Division" and "Division Manager" are columns in the lookup list, and "Edit_Division" is a combo box name that points to the main SPO list.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (55,414)