Skip to main content

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?

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


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


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.


Cheers. Should it show up here?


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


Cheers. Nothing's showing up.


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:

204835_pastedImage_1.png

I click the ellipses > Advanced > Workflows

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

204839_pastedImage_2.png

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?


Reply