.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to set Approvers Group for OOTB Workflow

Posted By:      Posted Date: October 06, 2010    Points: 0   Category :SharePoint


I have created a publishing site with workflow and it has already attached Page Approval workflow to my pages library. Now OOTB all the submission are direclty sent to OOTB Approvers group , but I have created my own approvers group "ABC Approvers" with some extra permissions . I want all my submission to be sent to this(as well). I know how to do this manually but I have 50 subsites in my sitecollection which in future are going to grow in numbers. 

Is there a way that I can change or add the group using object model or via powershell script. Please help.

Kind Regards,



View Complete Post

More Related Resource Links

How to get User group in SharePoint Designer 2010 within workflow?

Hi, How to get user group in sharepoint designer within workflow? Basically I have to compair that current user is belongs to particular group or not.  How can I get check user group in workflow's if condition? G. Goyal

Fill person/group column with workflow

Hi all, I would like to retrieve the 'Department' value of the creator of a list-item. Therefore I created a column named 'Department' of type person/group, show field 'department' From a worflow created with SharePoint Designer, when a item is added to the list, I fill the column 'Department' with the field 'created by'. The result is that the column 'Department' nicely displays the Department of the creator of the added item. When I do the same for a library, the column Department don't get filled, and the workflow keeps the state 'Started'. Any idea what I'm doing wrong? Kind regards. #Update When I add a new document te the library, the column 'Department' stay's empty and the workflow keeps the status 'Starting' But when I save a new document, open it again, edit it and save it again, the column 'Department' shows the department of the creator !!

Group activities in to rehosting workflow.

I want to group multiple activities in rehosted workflow designer.

OOTB Approval Workflow - Approval status could not be updated

I've setup up a standard OOTB (out of the box) approval workflow on a Pages library, in order to manage the approval of all pages created and updated.  This operates as expected, and the users are mostly happy, execpt for one scenario: Once a page has been submitted for approval, if the approver wants to edit the page, it stops the workflow (after prompting) which then requires the workflow to be started again.  They would like it so the approver can edit and then approve, without restarting the whole workflow process. There is a setting in the approval workflow configuration of the 'Complete the Workflow' section in the 'Cancel this Workflow when the' area, and by unchecking the 'Document is changed' option, I believe this should enable approvers to edit the page and then approve the page, without stopping the workflow  However, the workflow appears to operate as expected, except the page does not automatically get approved.  By looking in the workflow history, I can see the following error: Post-completion activity performed. Approval status could not be updated. I've tried this on two separate MOSS 2007 Enterprise farms, both are publishing sites and I'm running as a site collection administrator, both with the same results. Is anyone else getting this, is this normal?! Is there another way to approach this, without having to go

Workflow "Remove user from group"

Simple as that, anyone know of a 3rd party or simple script to get this done, its the ONLY thing holding me back from completing a major project >_<   Never have done share point custom work flows but this seems to be a time to learn >_<

Sharepoint 2010 WorkFlow Task AssignedTo Windows Group doesnt send email notification

Hi, Which configuration would prevent sharepoint to send a notification when a workFlow task is assigned to a Windows Group with an email ? The same task with a single User send a notification. Thanks, Patrice      

MOSS 2007 - SharePoint Designer Workflow failing when using group vs individual user

I am creating a simple workflow in SharePoint designer that will email a selected user when a list is modified.  I am applying the condition "if modified by" in Designer.  This condition works fine and the email is sent when I select a specific user myDomain\username.  It does not work when I attempt to associate a SharePoint group with the "if modified by" filter. In my example the list has only one SharePoint group associated with it, this is the only group with permissions for the list.  The group contains multiple users. The workflow is successful with the following scenario: if modified by myDomain\user1 or if modified by myDomain\user2 The workflow fails with the follwoing scenario: if modified by mySharePointGroupName  (which includes myDomain\user1 and myDomain\user2) This would be an ungodly if statement with a large membership SharePoint group.  This would also be a nightmare as people leave the organization and their account credentials are left in the large if statement in the workflow.  Looking for the modified condition when associated with a group seems like the logical way of doing this. I also tried "myDomain\domain users" which accounts for all user in my domain, this failed as well. Any advice would be greatly appreciated.

SP-Designer Workflow Task assigned to a Security Group Problem

Task assigned to a Security Group Should be Filter basic on Show items only when the this conditon is true: "Assign To is Equal to [Me]" This above condtion shows my task only , not all task. So How i ve to make following Condition in it. "Assign To(Security Group) Contains [Me](currnt loged user). Actually Problem is that workflow is assinging a task to a GROUP( having a lot sharpeoint users) , if i m the current user(exists in that group) then i shud get the my task only ,which is assigned to me only , nothing else user's task. So pls help me. Thanks in Advance.Regards- Sharad

OOTB Approval Workflow SharePoint 2010 - Blank "Requested By" field appears in Task Item edit/view f



I am having a simple OOTB  approval worflow associated to the simple document library. Task is created when an document is uploaded to the library.  When I click the task item in task list, I see a blank field "Requested By"  right below the "Status" column and I am unable to understand from where this field is coming and how to populate this field. Any help would be great...

How to get approver comments from OOTB workflow and display as a column in Tasks list



My problem is simple, although solution can be complex. If you know, when you start OOTB approval workflow, it creates a task item in Tasks list. An approver can click the task and open the page where he can approve/reject, also, where he can leave his comments in the "Type comments to include with your response:" textbox. These comments are included in the email which is sent after approval/rejection. Well, I looked at the columns in the Tasks list (Workflow Tasks list too) and I couldn't find any column that specifically stores these comments. I'm sure they are stored somewhere, they just can't be gone with an email.

My question is where are the comments and how to get and display them as a column in the Tasks list. I hope there is a UI way to do this. But if not, I'm ready to develop something like event handler for that.

Thank you!

Regards, R.D.M.

How to set an overload group on arguments in the workflow designer?



I'm wondering how to set an overload group (http://msdn.microsoft.com/en-us/library/ee358733.aspx) to arguments using the workflow designer. If I click on an argument in the Arguments tab in Visual Studio, the properties window shows a checkbox for the Required attribute, but no property for the OverloadGroup.

Is there a way to use overload groups in the designer?

Thanks in advance,

Sharepoint sequential Purchase Requisition workflow using expense total to determine approvers


I am working on a sequential workflow in VS2008 that needs to determine approvers based on the total expense field entered in the PO form (Infopath 2007).  Right now I have the form set as a browser-based form associated with a document library to kick off the workflow.  The tricky part is the approval logic needs to pull approvers from SQL server 2008 tables and I am struggling with best approach---should this be a separate task form and module that uses the submitted data (classes formed from an init form)?  If so, are there any examples out there using SQL-based queries on HR hierarchy data to work from?


Approval Workflow does not send Start Email to approvers


We've a SharePoint Server 2007 (which is upgraded from our SharePoint 2003 Portal Server + SP2 ).  

There is a strange problem working with Workflows.

When a standard Workflow is started for a document in an Existing Document Library, The Document's WorkFlow status changes to "In progress" and an Email is sent to the initiator; In the site Task List, also, the tasks are assigned correctly to approvers. but no emails are sent to approvers!!!

I should add that approvers WILL receive a due date warning email on the Task Due Date. 

The only missing part is "Task Started/Assigned" Emails.


Can anybody help? 

How to assign values to workflow task person or group custom field?

Using visual studio 2008, in createTask_MethodInvoking, I have the following code. RequestFields has the values from the InfoPath form. ApprovingPersons is a person or group field, added to the task list by my custom task content type. I checked the task list associated with the workflow and I see the custom field.

SPUser user;
SPFieldUserValueCollection fuvc = new SPFieldUserValueCollection();
foreach (Contact person in RequestFields.Persons)
      user = workflowProperties.Web.EnsureUser(person.LoginName);
      fuvc.Add(new SPFieldUserValue(workflowProperties.Web, user.ID, user.Name));

// this is the line causing problem, I believe
PreApprovalTask_TaskProperties.ExtendedProperties["ApprovingPersons"] = fuvc;

I got the following error message:

at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] argument



More than 10 approvers in a SPD approval workflow




I'm working on a custom approval workflow (using the approval template) in SPD 2010, it works fine...

BUT i need to have more than 10 approvers (fixed approvers) and in SPD 2010 it seems that we can only set 10 approvers manually .

There's probably a way to do this but I can't find it !


Thanks for your help !

Recover OOTB Workflow


Hi guys,


Someone in my company 'removed' (I dont know how) all workflows that appears on /_layouts/wrkmng.aspx

I'm trying to figure out how to re-add all the OOTB workflows to my site collection again.

Is that possible?



Problem passing local variable for Approvers email in customised Approval workflow


I am building an Approval workflow using SPD and have used the Start an Approval Workflow task action.

The workflow works on a change register and looks up different list of approvers assigned to change items.

Using Local Variables, the look up assignment works fine.

My problem is that when I pass the Approvers variable to the email at the end of the workflow (the on Current Item with... part) it appears the variable in empty?

I have used the approach of adding a variable check in the content of the emails - as the workflow sends the emails anyway. The lookup works fine - it’s just the email at the end of the process that does not seem to be able to see the contents of the variables that are shown to be set earlier.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend