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 / Using toggle input wit...
Power Apps
Answered

Using toggle input with Patch

(0) ShareShare
ReportReport
Posted on by

I am having issues using patch. In the pictures below I have a sharepoint list and my basic app.

I am sending data from the app to the list. My issue is I want to also send the on off input of the toggle into the special order column based on its value.

 

Patch('Parts to Order', {Title: Scan.Value, Job: jobname.Text, Who: User().FullName, When: Now()}) This I have working

 

But I want to add the toggle input

Patch('Parts to Order', {Title: Scan.Value, Job: jobname.Text, Who: User().FullName, When: Now() + 'Special Order_DataCard1': Toggle1.value})

 

It is probably simple just do not know where I am getting it wrong at. Any help would ne much appreciated. 

Capture2.JPG
Capture.JPG
Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @hluppold1 

    In this case you need to patch the column in your list, not the datacard in your form.

    Patch('Parts to Order', 
    {Title: Scan.Value,
    Job: jobname.Text,
    Who: User().FullName,
    When: Now(),
    'Special Order': Toggle1.Value}
    )

    Assuming that 'Special Order' is the name of your column in your list (which it looks like).

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

     

    Try this patch function

    Patch('Parts to Order', {Title: Scan.Value, Job: jobname.Text, Who: User().FullName, When: Now() , 'Special Order': Toggle1.value})

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @hluppold1 ,

    Could you please share a bit more about the 'Special Order' column in your SP list? Is it a Yes/No type column?

     

    Based on the formula that you provided, I think there is something wrong with it. Please take a try to modify your formula as below:

    Patch(
    'Parts to Order',
    Defaults('Parts to Order'), /* <-- Add formula here */
    {
    Title: Scan.Value,
    Job: jobname.Text,
    Who: User().FullName,
    When: Now(),
    'Special Order': Toggle1.Value /* <-- Add formula here , The 'Special Order' represents the Special Order column in your SP list */
    }
    )

    Note: I assume that the 'Special Order' column is a Yes/No type column in your SP list.

    More details about Patch function in PowerApps, please check the following article:

    Patch function

     

    Best regards,

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard