Hi Power Apps Community,
My issue is that I could not get the value of Account Name field of Account entity in my canvas app.
As I know that Power Apps does not allow to get value of a field from an related entity.
So I tried the following ways to get Account name from an opportunity (ModelDrivenFormIntegration refers to Opportunity entity)
1. LookUp(Accounts, accountid = [@ModelDrivenFormIntegration].Item.Account, 'Account Name')
2. LookUp(Accounts, Account = [@ModelDrivenFormIntegration].Item.Account, 'Account Name')
3. First(Filter(Accounts, accountid = [@ModelDrivenFormIntegration].Item.Account)).'Account Name'
4. First(Filter(Accounts, Account = [@ModelDrivenFormIntegration].Item.Account)).'Account Name'
The result is always empty
All Opportunities in Sales application have an related account
I was also wondering if LookUp function works properly, so i made a following small test, and Account Name shown up.
So I guess the root cause lied in the condition of LookUp or Filter function but I don't know how to fix it.
Look forward to your solution / advice.
Many thanks,
Nhan
Solved! Go to Solution.
Hi @kiendao911990 :
Could you tell me what the relationship is between ‘opportunity’ and ‘Account’? N:1? Or 1:N ? Or N;N?
Firstly, let me explain why the result is always empty.
The point is the ModelDrivenFormIntegration control does not provide a value for fields of a related entity.
So the result of [@ModelDrivenFormIntegration].Item.Account is an empty table.
Finally, I’ve made some test for your reference:
I assume the relationship between ‘opportunity’ and ‘Account’ is N;1.
LookUp(Opportunities,Opportunity=[@ModelDrivenFormIntegration].Item.Opportunity).Account.'Account Name'
The point is going back to your data source(Opportunity) to find the specified record to refer to the value of the relevant entity.
I think this link will help you a lot:
Known issues and limitations with embedded canvas apps
Best Regards,
Bof
Hi @kiendao911990 :
Could you tell me what the relationship is between ‘opportunity’ and ‘Account’? N:1? Or 1:N ? Or N;N?
Firstly, let me explain why the result is always empty.
The point is the ModelDrivenFormIntegration control does not provide a value for fields of a related entity.
So the result of [@ModelDrivenFormIntegration].Item.Account is an empty table.
Finally, I’ve made some test for your reference:
I assume the relationship between ‘opportunity’ and ‘Account’ is N;1.
LookUp(Opportunities,Opportunity=[@ModelDrivenFormIntegration].Item.Opportunity).Account.'Account Name'
The point is going back to your data source(Opportunity) to find the specified record to refer to the value of the relevant entity.
I think this link will help you a lot:
Known issues and limitations with embedded canvas apps
Best Regards,
Bof
Guangzhou Aoqun Brush Industry Technology Co., Ltd. is a large brush manufacturing enterprise combining design, development, production, sales and service.
Brush, Strip Brush, Cleaning Brush, Roller Brush and different other products with "Aoqun" brand sell well in more than 50 countries around the world, professional in over 30 industries, also cooperating with the world-famous enterprises, like CRRC Group, Schinder, Hitachi, Kone and Combi etc.
Adhering to the tenet that "Integrity shapes our futures'', with the oringinal spirit of "Profession, Concentration and Focus", persisting in scientific management, pursuing superior quality, Aoqun Company always produces every piece of satisfying brush with heart. We are committed to build an excellent brand of our nation, and make more contribution to "Made with Wisdom in China".
Hi Bof,
The relationship is N:1.
Thank you very much for your help.
I can get the value of Account Name field now.
Cheers,
Nhan
User | Count |
---|---|
228 | |
103 | |
97 | |
57 | |
31 |
User | Count |
---|---|
283 | |
113 | |
107 | |
63 | |
62 |