cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Workflow: set approval status based on certain field's value on a list

Is it possible to set list item's approval status based on certain field's value?

Capture1.PNG

We have form that sets field's (Tarkastettu) value to "Ok". After this the workflow should set this list item's approval status to Approved. We have enabled content approval in this list's settings. We have tried the "Office 365 Set Approval Status" with several different settings, but without any luck:

Capture2.PNG

Have anyone of you made this kind of workflow? What are we doing wrong?

Thanks in advance,

-Jani

Labels: (1)
Tags (2)
0 Kudos
Reply
6 Replies
Workflow Hero

Re: Workflow: set approval status based on certain field's value on a list

Hi Jani,

If you need to update 'this list item's approval status to Approved' as you said, did you try the action Set field in current item?

Regards,

Christophe

Accept as Solution Reply
Not applicable

Re: Workflow: set approval status based on certain field's value on a list

Hi Christophe,

Set field in current item -action does not seem to show the Approval status -field.

setfieldincurrent.png

-Jani

Accept as Solution Reply
Workflow Hero

Re: Workflow: set approval status based on certain field's value on a list

Hello,

1. Check if the user who are running has the right to set the Approval status (Permisson "Approve")

2. Before you can approve an item, it has to follow an process, here it might be necessary that the item /document must have an draft state before you can set it as approved. Here some explanation for the general behavior.

Hope it helps

Br oli

0 Kudos
Accept as Solution Reply
Not applicable

Re: Workflow: set approval status based on certain field's value on a list

Hello Oliver,

  • The user running the workflow has full control over the site and the list.
  • We have enabled the versioning and drafts for this list

versioning.PNG

-Jani

Accept as Solution Reply
Workflow Hero

Re: Workflow: set approval status based on certain field's value on a list

Ok, just for testing proposals.

Increase number of versions are kept. (Or remove the ticks, what means "unlimited" versions are kept)

Set the item/doc to Draft

Set the item/doc to Approved

Insert the Action "Check out Item"

Insert the Action "Pause for duration", set it to 1min // it is necessary because the system need time to check out the item

Insert the Action "Check In Item"

BR

Oli

Accept as Solution Reply
Community Manager Community Manager
Community Manager

Re: Workflow: set approval status based on certain field's value on a list

Jani,

I did a test for this and its working without an issue. I was updating another column and set the workflow to kickoff on a change.  The workflow then ran successfully and updated the approval status to what I set it via the action.

Are you not seeing this in yours or are you trying to do the two changes within the same workflow?

Accept as Solution Reply