lightning component with interface lightning:availableForFlowScreens gives error when <design:attribute> has sObject attributes in orgs with namespace
Last updated 2021-09-28 ·Reference W-5748094 ·Reported By 36 users
No Fix
Summary
Lightning component with interface lightning:availableForFlowScreens gives error when <design:attribute> uses sObject attributes and the org has namespace prefix. Error message:
Failed to save FlowScreen.design: The lightning:availableForFlowScreens interface doesn't support these attribute types in the design resource: <namespace>.<sObject>. : Source
Repro
1. In a fresh org, create Namespace(https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/namespaces_creating.htm)
2. Open Developer Console
3. Create a new lightning component and add the following code to the cmp file and save
<aura:component implements="lightning:availableForFlowScreens" access="global" >
<aura:attribute name="case" type="Case" access="global"/>
<div>
hello
</div>
</aura:component>
4. Open Design from bundle
5. Replace the code with the following:
<design:component>
<design:attribute name="case" label="Case"/>
</design:component>
6. Save the file
Actual Result:
Save not successful. Error message:
The lightning:availableForFlowScreens interface doesn't support these attribute types in the design resource: <PREFIX OF YOUR ORG>.case. : Source
Expected Result:
Successfully saved.
Workaround
No
Reported By (36)










Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.