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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / XRM.WebAPI.retrieveRec...
Power Apps
Unanswered

XRM.WebAPI.retrieveRecord not returning row although it is present

(0) ShareShare
ReportReport
Posted on by 305

I frequently use this code for other tables and it works just fine but for some reason it's not working for one particular table.

This is for the same account that has created the database and has full access

I can even see this record in the form so i know access rights is not a problem

Have confirmed the row guid and column name and even tried with other column names like jg_name but it's simply not working and returning null

 

 

 

const result= 
await Xrm.WebApi.retrieveRecord("jg_tdslowerdeductioncertificate", "137a85ca-dadd-ed11-8846-000d3a0a6cc7", "?$select=jg_tdsrate"); 
 displayDebugMessage(result);
 displayDebugMessage("tds certificate table returned the value "+result.jg_tdsrate);

 

 

 

displayDebugMessage(result) is showing blank

displayDebugMessage("tds certificate table returned the value "+result.jg_tdsrate); is resulting in a jg_tdsrate is undefined error

 

I have tried for hours and I'm baffled why the record is not being returned

 

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on at

    the code is simple and if the field value it's not null it should be return.

    You can try with my tool Dataverse REST Builder (https://github.com/GuidoPreite/DRB) it generates the correct syntax (it doesn't use the await and the Xrm.WebApi can be only executed using the Managed Solution, but it will be always generated) and check there what's going on, if also inside my tool the value is null, then it's not a syntax problem.

  • Rutu01 Profile Picture
    305 on at

    I tried returning all the rows 1 top 1 row etc but it keeps returning null. Perhaps there is some bug with some table and it's taken up two days already so i'm just going to delete the table and retry another time with a fresh table. 

Under review

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

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard