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 / Custom Api - Error on ...
Power Apps
Unanswered

Custom Api - Error on user Custom closed types

(0) ShareShare
ReportReport
Posted on by 143

Hello everybody,
I am trying to follow the guide on this link for use custom closed type inside a Custom Api.
I am able to use open type, so actually I take an input parameters, cast it as an entity and I can read custom properties. But if I try to cast it as a Location class, that inherit from Entity, the CRM throw an error about invalid cast. 
It is the same in output. If I create an entity without logical name, I can return that entity as a json object. But if I create the Location class as in the example and try to return it, I receive an error like "Incorrect Json".

As anybody tried to use custom closed types on a custom api? It would be really useful. I am already using open type, but using custom closed type would improve my code.

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

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
Kalathiya Profile Picture

Kalathiya 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard