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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patching "Status" colu...
Power Apps
Unanswered

Patching "Status" column of dataverse

(0) ShareShare
ReportReport
Posted on by 91

I would like to patch a record making status "Inactive".

But it shows error "Network error when using Patch function: The specified column generated by the server and can't be specified."

Is there any way to patch the "Status" and "Status Reason" columns?

 

My code is as follow:

 Patch(
 'Service Options',
 Defaults('Service Options'),
 {
 Service: "Field App",
 Option: "Upload / Download Fail",
 Status: 'Status (Service Options)'.Inactive,
 'Status Reason': 'Status Reason (Service Options)'.'Incomplete Information'
 }
 )

 

I don't want to make default "Status" as "Inactive".

I have the same question (0)
  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at
    Re: Patching "Status" column of dataverse

    Hi @ynaing,

    Yes you can Patch a record as inactive but it cannot be done on create, it must be done after the record is created. So first created the record and then you can update it as inactive like this:

     

    Patch('Service Options',
     Patch(
     'Service Options',
     Defaults('Service Options'),
     {
     Service: "Field App",
     Option: "Upload / Download Fail"
     }
     ),
     {
     Status: 'Status (Service Options)'.Inactive,
     'Status Reason': 'Status Reason (Service Options)'.'Incomplete Information'
     }
    )

     

     

    You can also update directly if the item is selected from a gallery meaning it has already been created:

     

    Patch('Service Options', MyGallery.Selected,
     {
     Service: "Field App",
     Option: "Upload / Download Fail"
     Status: 'Status (Service Options)'.Inactive,
     'Status Reason': 'Status Reason (Service Options)'.'Incomplete Information'
     }
    )

     

     Hope this helps!

  • ynaing Profile Picture
    91 on at
    Re: Patching "Status" column of dataverse

    Thanks for your answer.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 819 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 308 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 222 Super User 2025 Season 2

Last 30 days Overall leaderboard