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 :
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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
RichardM Profile Picture

RichardM 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans