How to check logged in users from a list
Hi all I am need to create a workflow related to accounts. In this i need to create a two level approval first from team leader and from the director and it has to go to the secretory. I have made a work flow as shown in the link below http://s18.postimage.org/rbxvb1hmh/image.jpg can any one tell me how to check the current logged in user from a list for example. For Example List1 userName Role James TeamLeader Bill Director Rebeca Secretory I know that we can create groups and access the it from there. But can any one have a look at above link and tell me the changes i need to make to incorporate this. Regards
April 29th, 2012 12:41pm

Hi roma, According to your description, you need to create a two level approval workflow and you want to check logged in users in the workflow. In my personal opinion, your implementation of this workflow have some problem. You used a status column to control the process of the workflow. But everyone in the process can change this column. Thats why you need to know the log-in user. In order to implement a multi-level approval workflow, you can use a workflow variable instead of a column to control/persist the process of the workflow. And you can perform collect data from a user action to know whether one approver approves or rejects the document. The collect data from a user action can assign a task (which can also send an email)to a single user or group and return the answer of the user. The approve result is store in the workflow variable so that nobody can change it manually. Please refer to this link to get more information about collect data from a user action. You can also check this article to create a multi-level approval workflow. In SharePoint 2010(the image you provided looks like SharePoint Designer 2010), you can also use the approval activity to achieve your requirement. For information about approval activity, please read this document for more information. Hope that helps. Thanks.Lambda Zhao TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
April 30th, 2012 4:48am

Thank you Lambda for pointing out the problems and a very detailed replay. I will look in to it and the links. But is there a way to check for current logged user to a list contain a couple of users with there roles using SharePoint designer
April 30th, 2012 7:13am

Hi roma, As per my knowledge, you cannot check it out of the box in SharePoint designer 2007, but you can get the current user by using Workflow Context:Current User. thanks,Lambda Zhao TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 1st, 2012 11:56pm

Ok Lambada, Thank you
May 2nd, 2012 4:18am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics