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

What do I place in 'Values' for a 'Switch' action that is using an integer variable (Nintex and SharePoint 2010)? I am basically looking for is value = variable execute branch 1 if value does not eqaul variable execture branch 2

Need:

- send list item from List A to list B (same subsite)

- if user modifies item in list A, item in list B is updated (and a new item is NOT created in list B)

Current WF:

- query running to gather unique integer from list B stored in variable_1

- Switch action evaluating value in variable_1

Problem:

What do I put in the branchs for value 1 and value 2?

Reply
2 Replies
Automation Master
Automation Master

Re: What do I place in 'Values' for a 'Switch' action that is using an integer variable (Nintex and SharePoint 2010)? I am basically looking for is value = variable execute branch 1 if value does not eqaul variable execture branch 2

switch action can not compare against variable.

you have to provide constant literals.

your better option would be run if or set a condition actions

Reply
Nintex Employee
Nintex Employee

Re: What do I place in 'Values' for a 'Switch' action that is using an integer variable (Nintex and SharePoint 2010)? I am basically looking for is value = variable execute branch 1 if value does not eqaul variable execture branch 2

Hello Daniel Gonski​ -

If I am understanding this correctly, on create or modify, kick off the workflow. Check if the item exists in ListB, if it does, update ListB, if not, create new in ListB.

There are a lot of different ways to accomplish this, but if you want to keep it simple, perhaps create two workflows. One triggered on create and one triggered on modify. This way you can add in all your logic for each in its own workflow. Just keep in mind that you will need to have a unique identifier that relates the item in both lists.

Hope this helps!

Reply