I am going to try to give you a sample formula without knowing your exact column names. Also, how are you capturing the input from the user for Sharepoint1 ID? I am going to assume that its in a textbox. Let me know if its different.
The datatable Items property should be something like this:
Filter(Sharepoint2, ID = textbox1.text)
OR if you want to populate all items for Sharepoint2 where the ID is a value in Sharepoint1, then:
Filter(Sharepoint2, ID in Sharepoint1.ID)
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!
Hardit(Haman)