cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mrpowergage
Resolver I
Resolver I

Patch Task Activity Status

I have a checkbox. Which OnChecked I want to patch the update to the Tasks table.

NB this is an activity task in the dataverse/dynamics.

The below doesn't work. It throws the error: "Invalid argument type. Expecting a
OptionSetValue value, but different schema."

Patch(Tasks,ThisItem,{'Status Reason':'Activity Status (Tasks)'.Completed})


These are the columns provided:

Untitled 2.jpg


I have also tried 'Activity Status (Activities)' with the same results.

 

Any ideas what is going on here?

1 ACCEPTED SOLUTION

Accepted Solutions
mrpowergage
Resolver I
Resolver I

I needed to update both the statecode and the statuscode at the same time

 

Patch(Tasks,ThisItem,{statuscode:'Status Reason (Tasks)'.Completed,statecode:'Activity Status (Tasks)'.Completed})

 

View solution in original post

1 REPLY 1
mrpowergage
Resolver I
Resolver I

I needed to update both the statecode and the statuscode at the same time

 

Patch(Tasks,ThisItem,{statuscode:'Status Reason (Tasks)'.Completed,statecode:'Activity Status (Tasks)'.Completed})

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,514)