web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : ZGiiQY3KPRr24+kvGMh0nF
Power Apps - Microsoft Dataverse
Answered

Command to Copy returning blank Customer with Data Type Unsupported

Like (0) ShareShare
ReportReport
Posted on 18 May 2023 11:49:59 by 3

Hello, 

 

I'm trying to customize a model driven app and have Copy function to clone selected record values. It works great on all columns apart from 1 which is a lookup to Customers on the Accounts Table. 

 

When I inspect the formula in Command Designer there is an message on Self.Selected.Item.Customer = This data type is unsupported for evaluation yet no error occur with executing, it just doesn't copy the value and record is blank. 

 

What I can't understand, is I have another column 'Factory' which is also a lookup to Accounts table and works perfectly. 

The 2 columns are set up slightly differently, with Customer being a lookup to Customer Data Type, and Factory being a lookup to the Accounts Table, then a filter applied to the Form to only show Factories. 

i.e...

 Factory column which copies data perfectly...

BDS1_1-1684409916917.png

Customer column does not...

BDS1_2-1684409942506.png

 

Why does this behave differently, and is there a solution, other than re-creating my Customer column as a Lookup?

 

Thanks for any help!

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Drew Poggemann Profile Picture
    9,283 Most Valuable Professional on 19 May 2023 at 10:02:48
    Re: Command to Copy returning blank Customer with Data Type Unsupported

    Hi @BDS1 

    The Customer column is "special" as it can be either an Account or a Contact.  There is a customerid_type field that will identify if the value is an Account or Contact.  If you don't need this field to be "either" (i.e. just an Account) then you would want to define the field as an Account table instead.

     

    You might want to look at the following discussion around the Customer field in Power Automate as it might help you here (https://benediktbergmann.eu/2020/02/04/how-to-use-customer-field-in-power-automate/

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 686 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 433 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 266 Moderator

Last 30 days Overall leaderboard

Featured topics

Loading complete