Use Sharepint Approval Workflow to update column in list item

Good afternoon all,
I am working in SP / SPD 2007.
I have set up a standard SP Approval workflow for a new list I am working with.
The workflow assigns tasks to the approvers serially and works fine so far. It sends to the first approver. upon approval it sends to the second approver. Upon approval the workflow marks the workflow column in the "All Items" view as "Approved"
All is well to this point.
My question is this. Can I append an action to this workflow? I have a separate "Status" column. All new items are initially marked "Pending Approval".
I would like that column to be changed to "Approved" upon completion of the approval workflow. I need this separate column for audit purposes as it includes several other important statuses that we track thoughout a request lifecycle. I just want
to automate the updating of this column via the approval workflow.
Any thoughts?
Steve
Steve Connelly

Hi Steve,
We can archive this simply in SharePoint 2010, but for SharePoint 2007, we can to create custom approval workflow.
Here are 2 workarounds for you.
Create a custom approval workflow with Visual Studio.
http://msdn.microsoft.com/en-us/library/cc627283(v=office.12).aspx
Use an InfoPath Form instead.
http://msdn.microsoft.com/en-us/library/cc627286(v=office.12).aspx
Thanks & Regards,
Emir Liu
TechNet Subscriber Support in forum
If you have any feedback on our support, please click
here.
Emir Liu
TechNet Community Support

Similar Messages

  • SPD 2013 - Copy Document action - how do you update the copied list item's metadata?

    SharePoint 2013 Designer no longer has the Copy List Item Action, it only has a Copy Document action. It seems that this action provides no way of saving the copied documents list item ID. How do you update the list item after it has been copied??
    Any help is appreciated.
    Greg Pierson

    Hi,
    According to your post, my understanding is that you wanted to copy the list item in SharePoint 2013.
    The Copy List Item is
    available only on the SharePoint 2010 Workflow platform, you can create a SharePoint 2010 workflow using the SharePoint 2010 workflow platform to achieve it.
    You can also use the Content and Structure to copy the list items: Site Settings->Site Administration->Content and Structure.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Error: "The workflow could not delete the list item"

    Have set up 2 lists:  Events and EventsArchive.  They have all the same fields.  I have created a workflow in SPD using an impersonation step (I have Full control of the site/site collection).  Workflow is essentially this:
        If Curent Item:Expired 
    equals
    Yes
           Copy item in Current Item to
    EventsArchive
           then Delete item in
    Current Item.
    The item is copying over to the EventsArchive list just fine, but the "delete" part is not happening.  Instead, I get the following error:
    The workflow could not delete the list item. Make sure the list exists and the user has permissions to delete items in the list.
    The list obviously exists (or I wouldn't be able to copy an item from it), and I have as much permissions as anyone can have, so I'm not sure where else to turn with this. 
    Thanks in advance for your help!

    Hi,
    To test the issue, I create a simple workflow without using Impersonation step:
    It works.
    Could you please create new lists to avoid custom settings and test the issue again?
    Similar thread:
    https://social.msdn.microsoft.com/Forums/office/en-US/3fa94026-4487-4e4c-a5b4-12a79d6ee6a2/workflow-delete-item-not-working?forum=sharepointcustomizationprevious
    Regards,  
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Single approval workflow to apply on multiple selected item in Sharepoint 2010

    Hi All,
    I have the following work flow requirement:
    1. Select multiple list items/ documents from a library
    2. Start a single approval work flow for all the selected items
    3. Which creates single approval task for all the approvers (Hence Multiple approvers)
    4. rejection by single approver rejects all the approval process
    (step 4 i know)
    How can i go ahead with this?
    Met vriendelijke groet / Best Regards,
    ir. Poojith Jain | SharePoint Developer
    LinkedIn

    Hi All,
    I have the following work flow requirement:
    1. Select multiple list items/ documents from a library
    2. Start a single approval work flow for all the selected items
    3. Which creates single approval task for all the approvers (Hence Multiple approvers)
    4. rejection by single approver rejects all the approval process
    (step 4 i know)
    How can i go ahead with this?
    Met vriendelijke groet / Best Regards,
    ir. Poojith Jain | SharePoint Developer
    LinkedIn
    Hi, which solution did you follow to accomplish that?

  • Multiple column in List item

    Hellow all
    I have 3 Column Code,Name,Salary
    I want a list item which show all 3 Data in one list item
    The picture will Clear you my Requirement
    Linkhttp://h1.ripway.com/Sharry2/ok.bmp
    Regards
    Shahzaib

    You want a static list_item or a dynamic list item, which is populated by a select statement??
    If you want a statis list item you can add your values from property palette; if you want a dynamic list item, I don't know if it is possible, because I have tried only with one column; you can try by make a concatenation of your columns separated by ','; for example you can try this code:
    select col1||','||col2||','||col3 as your_column_name
    from your table
    where your conditionIf you use create_group_from_query built_in, make sure to write column name 2 times, because one is for value of list item and the other is for label.
    Hope it helps you,
    Fabrizio
    If this answer is helpful or correct, please mark it. Thanks.

  • Using REST API: Query search box to return list items

    Hey,
    My goal is to create a search box which returns the items (matching to the name) from a list.
    Bonus: The return would happen without requiring user to click a
    Search button or such.
    To achieve this I assume the SharePoint 2013's REST API should be used. I'm completely inexperienced in using the REST API so all kind of suggestions are available.

    Hi,
    Here are some articles about SharePoint 2013 REST API for your reference:
    Get started with the SharePoint 2013 REST service
    http://msdn.microsoft.com/en-us/library/office/fp142380(v=office.15).aspx
    How to: Complete basic operations using SharePoint 2013 REST endpoints
    http://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    SharePoint 2013 – CRUD on List Items Using REST Services & jQuery
    http://www.plusconsulting.com/blog/2013/05/crud-on-list-items-using-rest-services-jquery/
    Working with SharePoint list data - OData, REST and JavaScript
    http://blogs.technet.com/b/fromthefield/archive/2013/09/05/working-with-sharepoint-list-data-odata-rest-and-javascript.aspx
    Best regards
    Dennis Guo
    TechNet Community Support

  • SPD workflow not updating a Lookup Column

    I have a 2 lists (Computers & Lending Library) that both have a look-up column (Item Status) pointing to a 3rd list (Item Status - Category).
    Both lists are properly looking up when manually edited via the web interface. When I try to use a SPD workflow to "Update or Create List Item" and I set the column in the Lending Library (Item Status) = Current Item (Items Status) the column is not populated.
    I took the same value and updated a Text column and the value is "0".
    The strange thing is when setting the (Item Status) it only gives me the options:
    As Integer
    Lookup ID (as Integer)
    Lookup Value (as Integer)
    What am I missing?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    Its been a long time since I looked at this but yes we did figure it out.
    Here is my Comment to myself on the lookup: "Must extract the [Item type] as a string and then lookup the corresponding List Item [ID] in the "Item Type - Category" list, use that value to update the "LendLib"[Item
    Type]."
    As suggested you need to reference the ID of the lookup, and I am caching that. Then when setting the [Item Type] column, by referencing the [ID] column in the Lookup list, then set your value to the Title of that lookup.
    If I recall the issue was the lookup, if you don't use the [ID] then you don't actually retrieve the value from the [Title] column correctly.
    My screenshots below are a bit confusing at first because my Lookup List is called "Item Type - Category" and the column in the 2nd list that is the
    Lookup Column,  is called "Item Type".
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Approval workflow - email notification

    Hi,
    I was run out of idea how to complete my assigned job, need oracle expert to help on email notification workflow.
    Currently I am working on workflow enhancement with oracle application E-Business Suite for our company.
    My job is to add in new approval process to approve Bank Details transaction through AME.
    For this Bank Details transaction, the existing approval process is will only route to HR.
    Now my job is to add Admin & Manager approval, which mean once the transaction is submitted and the approval processes are as below:
    Admin --> Manager --> HR
    But this approval process will fall into 2 scenarios as below criteria.
    Scenario1: If the selected Bank Name from List Of View (LOV) not "Other Bank" then the approval process is Manager --> HR
    Scenario2: If the selected Bank Name from LOV is "Other Bank" (once Other Bank selected, user will need to enter the new Bank Name) then the approval process is Admin --> Manager --> HR
    Once Admin approve, Admin will add the new Bank Name into LOV.
    Both scenarios will auto trigger email notification to the approver once there is pending for Admin and Manager approval.
    For scenario1, our email process package able to send out email notification to the manager.
    But for scenario2, email notification not send to Admin. FYI, our Admin is a group of persons assigned to Admin group.
    My doubt here is how to let this email notification able to send out to Admin group?
    Hopefully anyone of oracle workflow expert could help me as soon as possible.
    Thanks.

    Hi Mike,
    According to your post, my understanding is that you wanted to use workflow to send emails to the approvers when a task process completed in SharePoint Designer 2010.
    First, when you add the “Start Approval Process” action to create the workflow in SharePoint Designer 2010, you can click on “these users” to set the task process participants and you can choose “One at
    a time (serial)” or “All at once (parallel)” to set how the tasks will
    be created.
    Then, if you want to send an email to the approver when a single task process completed, you can click on “Approval” in the
    “Start Approval Process” step to edit the task process and click on “Change the behavior of a single task” in the “Customization”
    to add the “Send a Task Notification Email” action in “When a Task Completes” section as below:
    And if you want to send emails to the all approvers when all tasks are completed, you can click on “Approval” in
    the “Start Approval Process” step to edit the task process and click on “Change the behavior of the overall task process” in
    the “Customization” to add the “Send an Email” action in “When the Task Process Completes” section as below:
    If you want to use the approval workflow to update the content approval status, then you can add the “Set Workflow Variable” action to set “Variable: EnableContentApproval” to “Yes” after you add the “Start
    Approval Process” action in the workflow, and it should be added above the step “Start Approval Process”.
    Please refer to the link below to add the “Set Workflow Variable” step in the workflow:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b5bebacf-4bb9-4e43-84d7-6eb2714f071d/is-there-an-option-to-set-content-approval-status-according-to-approval-process-workflow?forum=sharepointcustomizationprevious
    Best Regards,
    Victoria
    Victoria Xia
    TechNet Community Support

  • Approval Workflow does not update the Content Approval status if started automatically

    Hi,
    I’m using a simple Approval Workflow associated with
    Content Approval on site pages. It works fine when I set it to be started manually (by using
    Allow this workflow to be manually started by an authenticated user with Edit Item permissions
     option) and on the completion of the workflow the
    Content Approval status is updated accordingly. But when I set it to be started automatically (by using
    Start this workflow when a new item is created
     / Start this workflow when an item is changed
    options), it does not updates the Content Approval status. Note that I’ve set the
    Update the approval status after the workflow is completed (use this workflow to control content approval)
    option to true.
    Regards

    Hello,
    It is recommended to select "Start this workflow to approve publishing a major version of an item" when you want to use the workflow to manage content approval for
    a library.
    According to the Notes for “Enable Content Approval” option in
    this reference:
    If you are using this Approval workflow to manage content approval (moderation) for a library, and you selected the Start this workflow to approve publishing a major version
    of an item check box on the Add a Workflow page..
    If you did not select the Start this workflow to approve publishing a major version of an item check box on the Add a Workflow page because you do not want this workflow to
    be the default content approval workflow for a library, you can select the Update the approval status (use this workflow to control content approval) check box to make this workflow a secondary content approval workflow that specific users can
    start manually.
    That means having an approval workflow start automatically when a document is changed or created is not a good practice when you want to use the workflow to manage
    content approval for a library. You should either select "Start this workflow to approve publishing a major version of an item" or give users the option to start the workflow manually at the time they want to submit for an approval.
    Thanks & Regards.
    Lily Wu

  • "SharePoint list itme update error : Invalid data has been used to update the list item. The field you are trying to update may be read only."

    Hi Everyone,
    i am facing one problem ...
    when i am updating an SharePoint List item, it is throwing above error....
    This is my code......
     try
                    tbl = getListDateTable("NCR");
                    DataTable dt = tbl;
                    oWebsite = mysite.OpenWeb();
                    oList = oWebsite.Lists["NCR"];
                    SPListItem itemToUpdate = null;
                    foreach (SPListItem listItem in oList.Items)
                        listItem.Update();
                        workOrderID = Convert.ToInt32(txtTitle.Text);
                        itemToUpdate = listItem;
                    //SPListItem itemToUpdate = oList.GetItemById(workOrderID);
                    //itemToUpdate.Fields["Title"].ReadOnlyField = false;
                    //string str = ddlStatus.SelectedValue;
                    itemToUpdate["Title"] = txtTitle.Text;
                    itemToUpdate["JobNumber"] = txtJobNumber.Text;
                    itemToUpdate["PartNumber"] = txtPartNumber.Text;
                    itemToUpdate["PartDescription"] = txtPartDescription.Text;
                    //itemToUpdate["RequiredBy"] = txtRequiredBy.Text;
                    itemToUpdate["ReportedBy"] = txtReportedBy.Text;
                    itemToUpdate["WrittenBy"] = txtWrittenBy.Text;
                    //itemToUpdate["DateOpened"] = txtDateOpened.SelectedDate;
                    //itemToUpdate["DateClosed"] = txtDateClosed.SelectedDate;
                    itemToUpdate.Update();
                    oList.Update();
                   // bind();
                catch (Exception ex)
                    throw ex;
    Thanks
    viswanath

    Hi Viswanath,
    If you are using People/User Type Field Column then use below code methord
    SPUser user = web.EnsureUser(loginName);
    item["UserTypeFieldName"] = user;
    Lookup Type Field Column then use below code methord
    public static SPFieldLookupValue GetLookupFieldFromValue(string lookupValue,string lookupSourceColumn, SPList lookupSourceList)
    SPFieldLookupValue value = null;
    SPQuery query = new SPQuery();
    query.Query = "<Where><Eq><FieldRef Name='" + lookupSourceColumn + "'/><Value Type='Text'>" + lookupValue + "</Value></Eq></Where>";
    SPListItemCollection listItems = lookupSourceList.GetItems(query);
    if(listItems.Count > 0 )
    value = new SPFieldLookupValue(listItems[0].ID,lookupValue);
    return value;
    item["LookupField"] = GetLookupFieldFromValue(lookupfieldValue, lookupSourceColumn, listName);
    Please mark the replies as answers if they help or unmark if not.

  • Difference between Due Date for All Tasks and Duration per task in an approval workflow

    Hello,
    I'm starting to read up and learn about approval workflows in Designer 2010.  I am confused by the fields "Due Date for all Tasks" and the "Duration per task".  I understand that the Due date for all Tasks is the date that all
    of the tasks in the workflow must be completed by.  And I understand that the duration means each task has x number of days to complete.
    But I dont know whey we need them both.  If I have the task duration set to two days and there are 3 tasks involved, then wouldn't the due date be 6 days from the start?  Why would I have a due date for all tasks that is completely different than
    the sum of the duration of days for each task? 
    Please help shed some light!

    Hi Michelle,
    Due date for all tasks, this setting specifies the date by which all tasks are due. It’s used for serial and parallel
    task.
    Duration per tasks, this setting specifies the date by which an individual
     task is due, it’s used for serial workflow participants.
    Note, when you create an approval workflow, select task process participants(approvers oob approval workflow), we can also
    select once at a time(serial) or all at once(parallel).
    For more information, see
    http://office.microsoft.com/en-us/sharepoint-server-help/use-an-approval-workflow-HA101793831.aspx
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • Approval workflow - user sees greyed out box

    Hi All,
    I've implemented approval workflow on one of my lists.
    User who is placed in Approvers input box receives mail, but when he tries to do the action on this workflow, box with accept/reject buttons is greyed out.
    I gave mentioned user full control security - it doesn't help. Do I need any permission for approval users, or maybe it is caused by something else?
    Regards,
    Michal

    try these links:
    https://social.msdn.microsoft.com/Forums/en-US/523fdf01-ef54-4cd0-af1b-95ab7de996db/workflow-task-approve-reject-buttons-are-greyed-out?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/en-US/523fdf01-ef54-4cd0-af1b-95ab7de996db/workflow-task-approve-reject-buttons-are-greyed-out?forum=sharepointcustomizationprevious
    https://levinwayne.wordpress.com/2012/05/23/how-do-i-add-an-approval-workflow-to-my-sharepoint-list/
    https://community.nintex.com/thread/2218
    check whether user has approve permission on list items or not.
    Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing

  • Error auto-firing an approval workflow inside a project's workspace

    Hi all,
    I have activated the SS2010 Workflow in PWA site collection features in order to use an approval workflow in one of my project's workspace. I setup the workflow under "Project Documents" and select to auto-start upon an item's creation. However this doesn't happen and I always get an eventreceiver exception in Event log. It works as expected when I fire it manually. I am connected as the system account.
    Is this a known issue or is the log correct stating that a system account cannot trigger a workflow autostart (below)???
    Event log details:
    Error loading and running event receiver Microsoft.Office.Project.PWA.WSSEventReceivers.PSDBUpdater in Microsoft.Office.Project.Server.PWA,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c. Additional information is below.
    : Value cannot be null.
    Parameter name: s
    ULS related lines:
    02/28/2010 23:55:04.38  w3wp.exe (0x071C)                        0x15DC SharePoint Foundation          Workflow Infrastructure        b9vu Unexpected Declarative workflows cannot automatically start if the triggering action was performed by System Account. Canceling workflow auto-start. List Id: %s, Item Id: %d, Workflow Association Id: %s 
    02/28/2010 23:55:04.62  w3wp.exe (0x071C)                        0x15DC SharePoint Foundation          General                        6875 Critical Error loading and running event receiver Microsoft.Office.Project.PWA.WSSEventReceivers.PSDBUpdater in Microsoft.Office.Project.Server.PWA,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c. Additional information is below.  : Value cannot be null.  Parameter name: s 
    TIA,
    Tassos

    Tassos:
    You might have better response to this question here:
    http://social.technet.microsoft.com/Forums/en-US/project2010custprog/threads
    Gary Chefetz, MCITP, MCP, MVP msProjectExperts
    Project and Project ServerFAQs
    Project Server Help BLOG

  • Update a list item based sort order of created by column value

    HI
    using powershell script how to sort a list column before update a list  item.
    here i created a document library and uploaded some documents and update ProcessNo column based sort order of created column
    value.
    Add-PSSnapin Microsoft.SharePoint.PowerShell -EA SilentlyContinue
    $webURL = "http://tspmcwfe:91" $listName = "Courts"
    Get the SPWeb object and save it to a variable
    $web = Get-SPWeb $webURL
    $list = $web.Lists[$listName] 
    $items = $list.items
    Go through all items
    foreach($item in $items)
    $item["ProcessNo"] = 1
    $item.Update()
    $web.Dispose()

    Hi,
    According to your description, my understanding is that you want to sort the list items order before updating items using PowerShell.
    I suggest you can use the Sort-Object command to sort the list items.
    Here are some detailed articles for your reference:
    Better SharePoint Lists and List Items in PowerShell
    Sort-Object
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Delegation of Approvals (Approval Workflow in Purchasing Module)

    Hi,
    I am using AME(Approval Management Engine) to generate the list of approvers for all the requisitions.
    My requirement is:
    If a requisiton requires approval of 'ABC'. But ABC is not able to approve it because he is on leave. So the workflow should automatically be delegated to another approver.
    This situation also comes when ABC didn't approve the requisition for a fixed time. After that time limit it will be delegated.
    Regards,
    Sambit

    Sam wrote:
    ABC is not able to approve it because he is on leave. So the workflow should automatically be delegated to another approver.Setup vacation rule for the leave period to delegate the approval notification to someone else.
    This situation also comes when ABC didn't approve the requisition for a fixed time. After that time limit it will be delegated.Setup timeout in the workflow.
    Thanks,
    PS.

Maybe you are looking for