Need to Merge Two DataTable with same Columns in Powerapps
I want to create a datatable which is merge of two dataTable that contain Account and Contact Data respectively which I fetched from Dynamic CRM to connect Database. Now What happen When I Merge that Datatable through accountid it will not work as expected.
using Lookup It will not work.
accountid in Account and parentAccountid in Contacts both are Guid Data Type.
So Can you please Suggest me how we can do that I almost waste couple of hours.
I think It is because i have created two datatable name AccountDb and ContactDb . And Now What I am doing is merge these two datatable into one. But when we use AddColumns(AccountDb,"MainPhone",LookUp(--- check refernce),'Main Phone') it is not working because AccountDb datatype is now Control instead of TABLE . Same code is used directly to Account table it works like AddColumns(Accounts,"MainPhone",LookUp(---Checkreference--),'Main Phone').
Please Give suggest what I do to merge through that AccountDb Table which I created in PowerApps