web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

PCF SDK Not Returning Lookup Values Using Data-set Properties in Canvas App

Posted on by

Hello everyone,

I'm currently working on a Canvas App and encountering an issue with the PCF (PowerApps Component Framework) SDK. Specifically, I'm having trouble getting the SDK to return lookup values when using data-set properties.

Here are the details:

  • Context: I'm developing a Canvas App where I'm trying to leverage PCF to interact with lookup fields in a dataset.
  • Issue: The SDK does not seem to return the expected lookup values. Instead, it returns null value.
  • Attempts to Resolve: I've double-checked the dataset schema and ensured that the lookup fields are correctly defined. I've also reviewed the official documentation but haven't found a solution to this specific issue.
 
const rows: Array<JSONObject> = new Array<JSONObject>();
        const records = this._context.parameters.items.records
        const sortedRecordsIds = this._context.parameters.items.sortedRecordIds;
        sortedRecordsIds.forEach(ids => {
            let gridDataSource: Record<string, any> = {} as Record<string, object>;
            gridDataSource.primaryId = ids;
            this._context.parameters.items.columns.forEach(c => {
                const rec = records[ids].getValue(c.name);
                const rec1 = records[ids].getFormattedValue(c.name);
                gridDataSource = { ...gridDataSource, [c.name]: rec, [`${c.name}-f`]: rec1 };
            })
            rows.push({ ...gridDataSource });
        });
        console.log("rows", rows);
        return;

 

Using this code to get values from Data-set property.

 

Has anyone else encountered this problem? Are there any workarounds or specific configurations needed to get lookup values through the PCF SDK in a Canvas App?

Any help or guidance would be greatly appreciated!

Thanks in advance!

Data-Set Code.png

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics