Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

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

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

pastedimage1634129989871v1.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/

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans