Announcements
i am trying to save information to multiple sharepoint list. is this possible? could someone please help me? i am trying to sve the information from one textbox to 2 lists
Hi,[
try this code
Patch( List1, Defaults(List1), {Title: TextInput1.Text} ); Patch( List2, Defaults(List2), {Title: TextInput1.Text} );
]Please give a thumbs up if this information is helpful.Best regards,Ali Sheraz
it has an error It says "The type of this argument "title" does not match the expected type "Text"
it is because the column you are trying to patch are not text type so to solve this we use use value
and adjust the code according to your sharepoint list
Patch( List1, Defaults(List1), {Title:Value(TextInput1.Text)} ); Patch( List2, Defaults(List2), {Title: Value(TextInput1.Text)} );
ok thanks for the help It is not working
i think the issue is that thebtextinput1.text is not a textbox it is a look up field type would this make it error out? Is there a way to fix this?
// Replace 'LookupColumnName' with the actual name of your lookup column // Replace 'LookupValue' with the value you want to set in the lookup field // Replace database name with youre origional database Patch( 'Power Apps | Solve Question App 22', Defaults('Power Apps | Solve Question App 22'), { Title: TextInput1.Text, LookupColumnName: { '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Id: /*ID of the related item*/, Value: "LookupValue" } } )
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 326 Most Valuable Professional
11manish 168
sannavajjala87 75 Super User 2026 Season 1