Hey, thank you for reaching out and sorry for the late reply.
I appreciate the assistance; however, I believe I may have failed to give enough information on the situation as I am unsure of what you mean by this. I apologize for this as I am still a new user.
We use dynamics 365 as the source of data for our company. We mostly use it for work order and customer management. There are views for both contacts and work orders. There is also a column in the work order view where customers tied to the work order are and is the reason why I thought this would be a very nice app to tie the two together.
In PowerApps currently have a gallery for work orders (galWorkOrder) on one screen, a gallery for contacts (galContacts) on another screen, and detail screens for work orders and contacts with forms tied to their respective galleries. When you click on the item in the gallery, it will take you to the corresponding screen with its information populating a form on the new screen.
I have a button on the contact detail screen called "Work History". The goal was to filter the work order gallery by the "contact name" field in the contact detail form which is called "primary contact" in our work orders. What I currently have the OnSelect for the button set to is as such:
Set(varCurrentRecord, ThisItem);
EditForm(frmContactDetails);
Navigate('Work Order Screen');
This has been throwing errors though and is my reason for turning to this site for help. With your prior comment, would I need to use the gallery.select command on the button and or change the gallery on work orders to accomplish this task.
Thank you again for the assistance!