cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Workflow Hero

Updating a Field uisng Update item or Set Value Action

Hi

I've got two lists. Devices and Knownissues. What I'm trying to do is to update the DeviceID column with a number generated in the Devices list column called ID. 

This is the Query List action I've set up saving the ID number to a variable called ID_Number

This is how I've set up the Set field value action:

 

And this is how I've set up the Update item action. I've set up default value of DeviceID to 0


After this I've got a Commit pending changes action. I've disabled the rest of the workflow to get this working first and I switch between Set field value and Update item but the DeviceID number doesn't update!

Any ideas?

Labels: (1)
0 Kudos
Reply
7 Replies
Workflow Hero

Re: Updating a Field uisng Update item or Set Value Action

Can you log your ID_Number variable and ensure it's the correct value and format?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Updating a Field uisng Update item or Set Value Action

Thanks Courtney, can you point me in the direction of how I'd do that?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Updating a Field uisng Update item or Set Value Action

There should be an action called "Log in History List" that you can use. In the field in that action, put your variable (Insert Reference). Then you can go to your workflow history and see it after you run the workflow.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Updating a Field uisng Update item or Set Value Action

Cheers. Should it show up here?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Updating a Field uisng Update item or Set Value Action

I believe so, yes. I'm in O365 so mine looks a touch different, but that looks like the spot!

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Updating a Field uisng Update item or Set Value Action

Cheers. Nothing's showing up.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Updating a Field uisng Update item or Set Value Action

Ahh, I thought that was before you ran the workflow. What does your log to history action look like? For me to get to my history, here's my path:

I click the ellipses > Advanced > Workflows

Which brings me to a Workflow "Status" page for that particular item. 

And I can click on my running or completed workflows to see the history. I use the Log to History action super frequently on my workflows because it is an invaluable debugging tool. 

Is this the same path you followed (or similar)? Did you add the log to history, publish, then run the workflow? Did you put any additional text in your Log to History action (like "Device_ID == {Device_ID}") so you would see if it logged at all? Did you make sure you were checking the workflow history on the item you ran the workflow on?

0 Kudos
Accept as Solution Reply