web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Save textbox to multip...
Power Apps
Unanswered

Save textbox to multiple sharepoint list

(0) ShareShare
ReportReport
Posted on by 111

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

Categories:
I have the same question (0)
  • Ali_Sheraz_77 Profile Picture
    141 on at

    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

  • lbdrummer Profile Picture
    111 on at

    it has an error    It says "The type of this argument "title" does not match the expected type "Text"

  • Ali_Sheraz_77 Profile Picture
    141 on at

    Hi,
    [

    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)}
    );

    ]
    Please give a thumbs up if this information is helpful.
    Best regards,
    Ali Sheraz

  • lbdrummer Profile Picture
    111 on at

    ok thanks for the help   It is not working

  • lbdrummer Profile Picture
    111 on at

    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?

  • Ali_Sheraz_77 Profile Picture
    141 on at

    Hi,
    [

    // 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"
    }
    }
    )

    ]
    Please give a thumbs up if this information is helpful.
    Best regards,
    Ali Sheraz

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard