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 Platform Community / Forums / Power Apps / Rest builder - "Value ...
Power Apps
Unanswered

Rest builder - "Value should be of type: guid: Parameter Name: id" error

(2) ShareShare
ReportReport
Posted on by 4
I am trying to retrieve related record using rest builder. i have entiyA:new_pod and entiyB: new_aatrial ... relationship: 1:N.
In rest builder I have given entity: new_aatrial, column: aatrialid, ,many to one relationship: new_pod_new_aatrial, column: new_podid & comparecolumnB fields.
Now i generated Xrm.WebApi and utilised the code in form library js.
 
Xrm.WebApi.retrieveRecord("new_aatrial", "", "?$select=new_aatrialid&$expand=new_pod($select=new_podid,new_comparecolumnpodb)").then(
    function success(result) {
        console.log(result);
        // Columns
        var new_aatrialid = result["new_aatrialid"]; // Guid
        
        // Many To One Relationships
        if (result.hasOwnProperty("new_pod") && result["new_pod"] !== null) {
            var new_pod_new_podid = result["new_pod"]["new_podid"]; // Guid
            var new_pod_new_comparecolumnpodb = result["new_pod"]["new_comparecolumnpodb"]; // Whole Number
            var new_pod_new_comparecolumnpodb_formatted = result["new_pod"]["new_comparecolumnpodb@OData.Community.Display.V1.FormattedValue"];
        }
    },
    function(error) {
        console.log(error.message);
    }
);



It throws this error
I have the same question (0)
  • stampcoin Profile Picture
    5,153 Super User 2026 Season 1 on at
    @sangu Hi,
     
    The red marked , you may consider passing the guid here.
     
    I definitly commeted on Friday....

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard