Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Command to Copy returning blank Customer with Data Type Unsupported

(0) ShareShare
ReportReport
Posted on 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:
  • Verified answer
    Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on at
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics