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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Command to Copy return...
Power Apps
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!

 

 

 

I have the same question (0)
  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 602

#2
WarrenBelz Profile Picture

WarrenBelz 473 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 310

Last 30 days Overall leaderboard