cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted

... 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
Highlighted
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.

 

Highlighted

@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

Highlighted

... 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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,760)