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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Resource not found for the segment error even from CRM Rest builder

(0) ShareShare
ReportReport
Posted on by 239

I just made a full copy of the instance and a webapi call (Retrievemultiple) isnt working in the new instance.

The call is to a custom entity, I am logged in using Sys admin and I can browse to that entity and see all records.

Retrivemultiple even fails from CRM rest builder, I get the same error even from CRM Rest builder:

Resource not found for the segment: atn_sampleentity

Here's code generated by Rest builder:

Xrm.WebApi.online.retrieveMultipleRecords("atn_casedimension", "?$select=_atn_defaultteam_value,_atn_failureescalationuser_value,atn_name,atn_priority,atn_privatedocumentsite,atn_rammcase").then(
    function success(results) {
        for (var i = 0; i < results.entities.length; i++) {
            var _atn_defaultteam_value = results.entities[i]["_atn_defaultteam_value"];
            var _atn_defaultteam_value_formatted = results.entities[i]["_atn_defaultteam_value@OData.Community.Display.V1.FormattedValue"];
            var _atn_defaultteam_value_lookuplogicalname = results.entities[i]["_atn_defaultteam_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            var _atn_failureescalationuser_value = results.entities[i]["_atn_failureescalationuser_value"];
            var _atn_failureescalationuser_value_formatted = results.entities[i]["_atn_failureescalationuser_value@OData.Community.Display.V1.FormattedValue"];
            var _atn_failureescalationuser_value_lookuplogicalname = results.entities[i]["_atn_failureescalationuser_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            var atn_name = results.entities[i]["atn_name"];
            var atn_priority = results.entities[i]["atn_priority"];
            var atn_priority_formatted = results.entities[i]["atn_priority@OData.Community.Display.V1.FormattedValue"];
            var atn_privatedocumentsite = results.entities[i]["atn_privatedocumentsite"];
            var atn_privatedocumentsite_formatted = results.entities[i]["atn_privatedocumentsite@OData.Community.Display.V1.FormattedValue"];
            var atn_rammcase = results.entities[i]["atn_rammcase"];
            var atn_rammcase_formatted = results.entities[i]["atn_rammcase@OData.Community.Display.V1.FormattedValue"];
        }
    },
    function(error) {
        Xrm.Utility.alertDialog(error.message);
    }
);


*This post is locked for comments

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans