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 Apps
Answered

PATCH FORMULA

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I would like to know what error this formula is:

 

Patch('Security ActionPlan1';Defaults('Security ActionPlan1';
{
Responsável:TextInput1.Text;
'Descrição do Problema':TextInput2.Text;
Ação:TextInput3.Text;
Prazo:DatePicker1.SelectedDate;
Status:Dropdown1.Selected.Value
}));;

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

    For Dropdown.Selected

     

    Patch('Security ActionPlan1';Defaults('Security ActionPlan1';
    {
    Responsável:TextInput1.Text;
    'Descrição do Problema':TextInput2.Text;
    Ação:TextInput3.Text;
    Prazo:DatePicker1.SelectedDate;
    Status:Dropdown1.Selected
    }));;

     

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

    Hi @Anonymous ,

    Seem that your Status column is a Choice column, if yes, you should use code like this:

    Status:{Value:"Your Value"}

    So try this formula:

    Patch('Security ActionPlan1';Defaults('Security ActionPlan1';
    {
    Responsável:TextInput1.Text;
    'Descrição do Problema':TextInput2.Text;
    Ação:TextInput3.Text;
    Prazo:DatePicker1.SelectedDate;
    Status:{Value:Dropdown1.Selected.Value}
    }));;

    Best regards,

    Allen

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It didn't work, more errors appeared,

    I deleted your change and the error that appears is this

    erroformula.JPGerroformula2.JPG

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    As I Mentioned, For the choice Column Patch command

     

    Status:Dropdown1.Selected

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It didn't work either

    erroformula3.JPG

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous

     

    Can you please share the error information?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    erroformula.JPG

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Looks like one closing parenthesis is missing. Highlighted below

     

    Patch('Security ActionPlan1';Defaults('Security ActionPlan1');

     

    and remove one at the end

     

    Refer below example

     

    Patch('Security ActionPlan1';Defaults('Security ActionPlan1');
    {
    Responsável:TextInput1.Text;
    'Descrição do Problema':TextInput2.Text;
    Ação:TextInput3.Text;
    Prazo:DatePicker1.SelectedDate;
    Status:Dropdown1.Selected
    });

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    But it is being shut down

     

    Patch ('Security ActionPlan1'; Defaults ('Security ActionPlan1';
    {
    Responsável: TextInput1.Text;
    'Descrição do Problema': TextInput2.Text;
    Ação: TextInput3.Text;
    Prazo: DatePicker1.SelectedDate;
    Status:Dropdown1.Selected
    }));;

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous

     

    Looks still like you are using the old code. Did you updated the corrected one like below

     

    Patch('Security ActionPlan1';Defaults('Security ActionPlan1');
    {
    Responsável:TextInput1.Text;
    'Descrição do Problema':TextInput2.Text;
    Ação:TextInput3.Text;
    Prazo:DatePicker1.SelectedDate;
    Status:Dropdown1.Selected
    });

     

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 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard