Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
587 views
in Technique[技术] by (71.8m points)

powerapps set default value on a lookup field of Sharepoint list

hallo i have powerapps edit form of a sharePoint listA that contain a lookUp filed. the lookUp filed contain ids from listB.

i need the value of this lookUp filed to be selected automatically.

this is the lookup filed in the powerApps form

enter image description here

I tried to First(filter()) the Choice collection but no success.. any ideas ?

question from:https://stackoverflow.com/questions/65854450/powerapps-set-default-value-on-a-lookup-field-of-sharepoint-list

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The PowerApps LookUp() function can contain two or three arguments and needs somekind of matching criteria.

LookUp(dataSource, column = value) returns the first record that matches the criteria

LookUp(dataSource, column1 = value, column2) returns a single column (column2) in the first record that matches the criteria.

You likely don't need the Sharepoint "Lookup-type" column once you get the hang of the PowerApps LookUp() function. (in fact, with Sharepoint as a data source, I NEVER use complex column types except for people-type).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...