Skip to content
Discussion options

You must be logged in to vote

This scenario is now supported. Generated SharePoint services include  getReferencedEntity(), which can retrieve available values for choice, lookup, and person/group columns.

Example:

const result = await MyListService.getReferencedEntity('', 'ChoiceColumnName');
const values = (result.data as { value?: unknown[] })?.value ?? result.data;

Documentation:
https://learn.microsoft.com/power-apps/developer/code-apps/how-to/sharepoint-operations#referenced-entities-choices--lookup--person

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ergonza93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants