Question

I'm not sure if this is possible. I would like to have a SharePoint 2013 workflow update a list item in another list only if: column A contains 'x' and column B contains 'y'.

I know I am able to compare a single column but I need two as there will be multiple values that match in the first column.

Example of what I want in SharePoint.

If ( val1 == x && val2 == y ){ 
    update (This) item.
}

enter image description here

Était-ce utile?

La solution 2

Alright ladies and gentlemen here's the answer:

I was able to use an HTTP call to get and loop through the items on the 2nd list. Then I was able to check the values of each column on each item and find the specific item I needed. Knowing that allowed me to update that specific item and that item only with the new data from List A.

For more information on how to setup and use the HTTP call check here.

Thanks for the all help / suggestions.

enter image description here

Autres conseils

Happily, this is straightforward to achieve.

What you need to do is insert a section 'If' action immediately after the first, ensuring the 'and/or' toggle is set correctly at the second (and subsequent) 'If' statements.

You should end up with something that looks like the following screenshot

SPD2013 Multiple If Statements

Where the Column A value is in a separate list you will need to lookup that value as shown in the attached screenshot

enter image description here

which essentially translates to : GET 'Column A' FROM 'List B' WHERE 'List B lookup field' EQUALS 'lookup value'.

The end result will look and work the same as before, albeit with the value of Column A being retrieved from List B rather than the current list.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top