Thanks in advance!
I have a main Sharepoint List called Projects. This List has several Lists related to it via a field called ProjectID. For now we'll boil those other lists down to one called HDA. HDA has a Lookup field called ProjectID that connects to the ProjectID field in the Projects List. In my PowerApps I have a form where the user can create a new record in Projects. I have a button to SubmitForm the form. I would like that button to also create a new record in the HDA List based upon the ProjectID field. The twist is that the ProjectID field in the Projects List is auto-generated/incremented using PowerAutomate, so that whenever a new record is created in that Sharepoint List the ProjectID field is automatically filled with the next number in the sequence. Because of this, I do not have a DataCard in the Form where the user inputs the ProjectID for the Projects List. I know I will be using the Patch function to accomplish this, but I'm not sure what syntax to use to make the HDA List ProjectID (which is a Lookup column) equal to the newly created ProjectID field in the Projects List. One thought I had was to add to the ProjectID field back in as DataCard but make it invisible, however, I'm still not sure of the syntax to use in Patch in order to use it or whether it would even work.
Any help would be much appreciated.