I have a SharePoint list built by someone else with a blank text field titles "manager" I am trying to build a site workflow to automatically go through each record look at the "name" field ( people picker) then update the "manager" field with the manager name listed in the person User Profile. We DO NOT HAVE the query user profile action available.
I was able to build a list workflow to do this successfully by setting up the "update item" action to have manager equals user profile and the value is the name of the person listed in the "name" field. I dont want to use a workaround by setting the list workflow to run on modified, then create a 2nd workflow to update all items when a record is modified which will change all records and then "kick off" the first workflow but it will be a never ending cycle and not the most efficient way to do this.
I am unsure how to build this as a site workflow so far what I did was
1) Query list action:
2)For each action:
3)For each action:
4) Update item action"
I am brand new to site workflows so i likely built it wrong. an help would be greatly appreciate
Solved! Go to Solution.
@milkdud1 your Steps in # 1 & 2 are fine....I will suggest you tweak a logic in step # 3.
so just to make sure i understand below is my revised workflow
1) Query list action:
2)For each action:
3)For each action:
4) COLLECTION ACTION:
get action using COLL name and the num_index and store in new single text variable SLT Variable
4) Update item action"
is this accurate
@milkdud1 you only need 1 for loop, the one where you use ID collection....inside 1st for loop action, add my logic i.e. collection operation