Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

I can Patch Potential Customer (_customerid_value) to a quote record but I cannot access it in my App

(0) ShareShare
ReportReport
Posted on by 93

When I create quotes in PowerApps I can succesfully assign the Customer as an existing Account, but when I access the quote in my Apps I cant retrieve the Customer using ThisItem.'Potential Customer (_customerid_value)'

 

In my patch function I set 'Potential Customer (_customerid_value)': to a variable which contains the customer record. This works perfectly as I can see the customer when I export to PDF, But when I try to display the quote information in a gallery or a Screen I cant access it. In Dynamics interface and my word template it uses the field customeridname but that is not available in PowerApps. 

Categories:
  • pushpa2 Profile Picture
    4 on at
    Re: I can Patch Potential Customer (_customerid_value) to a quote record but I cannot access it in my App

    When we qualify the lead the data will move to Accounts,Contacts and Opportunities. Samething I want to acheive in Power app.I have written Patch function for Qualify button.The data is getting is saved in Accounts and Contacts.But in Opportunities  the error is showing 'customerId value required' means Potential customer.

     

  • dee2005 Profile Picture
    93 on at
    Re: I can Patch Potential Customer (_customerid_value) to a quote record but I cannot access it in my App

    Can you elaborate a bit more?

  • pushpa2 Profile Picture
    4 on at
    Re: I can Patch Potential Customer (_customerid_value) to a quote record but I cannot access it in my App

    How can I acheive the same issue to qualify the lead from leads to Opportunities using power apps

     

     

  • dee2005 Profile Picture
    93 on at
    Re: I can Patch Potential Customer (_customerid_value) to a quote record but I cannot access it in my App

    Thank you @Fubar ,

     

    This works

  • Verified answer
    Fubar Profile Picture
    7,892 Super User 2025 Season 1 on at
    Re: I can Patch Potential Customer (_customerid_value) to a quote record but I cannot access it in my App

    As Customer can be either account or contact, in the Gallery you have to check isBank and isType and then display the appropriate value of the account/contact

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-references#show-the-fields-of-a-customer

    If( IsBlank( ThisItem.'Company Name' ), "",
     IsType( ThisItem.'Company Name', Accounts ),
     "Account: " & AsType( ThisItem.'Company Name', Accounts ).'Account Name',
     "Contact: " & AsType( ThisItem.'Company Name', Contacts ).'Full Name'
    )

     

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
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics