Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Type "EntityReference" is not supported for workflow-enabled unbound custom API / Type "Entity" is not supported for workflow-enabled custom API

(0) ShareShare
ReportReport
Posted on by 18,048

If you are creating a Custom API and if it is an unbound API to perform any common or global action, and if you selected “Yes” for (Enabled For Workflow), you will get the following errors when you try adding input (Custom API Request Parameter) or output (Custom API Response Property) parameters of type Entity Reference or Entity.

Exception Message: Type “EntityReference” is not supported for workflow-enabled unbound custom API

Exception Message: Type “Entity” is not supported for workflow-enabled custom API

When I got these errors, googled the error message and did not find any link that described the reason for the error but I finally found the doc page that details the limitations of Custom API enable for Workflow. Please see the screenshot from the doc page below

pastedimage1634130167591v1.png

https://docs.microsoft.com/en-us/powerapps/developer/data-platform/customapi-table-columns#enabled-for-workflow

As you can see from the screenshot, you can only use Entity Reference parameter in a bound Custom API when its Enabled for Workflow. And Entity, EntityCollection and String arrayparameters cannot be used in a Custom API enabled for Workflow, whether it is bound or unbound.

https://kokulan.blog/2021/10/13/type-entityreference-is-not-supported-for-workflow-enabled-unbound-custom-api-type-entity-is-not-supported-for-workflow-enabled-custom-api/

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans