Hello All,
I am new to Powerapps, i have 2 datasources namely
1. ScanData1 : URN, InoutDate, User
2. Preregister : URN, CompanyName, Visitor Name
Both of them have URN as the common field.
I want to get the data from Preregister Database : CompanyName and VisitorName
Please advice how to go about this
Solved! Go to Solution.
Hi,
Could you please help me on the issue. I have used lookup value from different table and saving all the fields to one table in SQL.
But the problem is Powerapps shows correct data once i scan it, however when i check in SQL table it shows wrong data.
I have attached 3 screensnips in one attachement.
One is formula of powerapps
two is main table from where the lookup is happening
third is the final data coming from powerapps.
Please advise.
Hi,
I have used the below formula for sending the data to SQL
Collect('[dbo].[ScanData1]', {URN: urn.Text, InOutDate: Now(), User: User().FullName, 'Visitor Name': visitornamelookup.Text, 'Company Name': companylookup.Text}); Select(BarcodeScanner1)
I am able to get the lookup data in app but once i click save button using the above formula, its not saving the correct data.
Please in the last reply, i asked that you show the lookup formula
Try this:
Patch('[dbo].[ScanData1]',Defaults('[dbo].[ScanData1]', {URN: urn.Text, InOutDate: Now(), User: User().FullName, 'Visitor Name': visitornamelookup.Text, 'Company Name': companylookup.Text}); Select(BarcodeScanner1)
Are the unknown records part of some records in the table or completely unknown
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.
Patching from gallery
Use this:
ForAll(GalleryName.AllItems, Patch('[dbo].[ScanData1]', Defaults('[dbo].[ScanData1]'),{URN: urn.Text, InOutDate: Now(), User: User().FullName, 'Visitor Name': visitornamelookup.Text, 'Company Name': companylookup.Text}); Select(BarcodeScanner1)
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
251 | |
250 | |
84 | |
36 | |
32 |
User | Count |
---|---|
337 | |
262 | |
123 | |
72 | |
46 |