cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rnorris
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
WarrenBelz
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (73,465)