locked
How to update Workflow variable cross-workflow in SharePoint Designer 2007? RRS feed

  • Question

  • Hi All,

    created two SharePoint designer 2007 workflow, which attached WF1 to Pages and WF2 Workflow Tasks List,

    then I created a workflow variable in WF2,

    can I update the variable in WF2 by action in WF1?

    appreciated any help, thank you.

    Friday, April 8, 2011 6:56 AM

All replies

  • You can't do that directly.

    What is your business goal?  There may be another way to meet the requirement.


    --Paul Galvin, BrightStarr
      Microsoft MVP - SharePoint
      Blogging @ http://www.mstechblogs.com/paul
      Twitter @ http://www.twitter.com/pagalvin
    Friday, April 8, 2011 1:39 PM
  • Hi Paul,

    I got a default Approval workflow in Pages, which send to 2 approvers in sequencial order,

    but the default workflow not allow to do customizing on the email notification based on approval status (approved/rejected)

    so I planed to have a SharePoint Designer 2007 workflow attached on Workflow Task List,

    where it check the condition of the Pages, then send out email.

    There will be 4 conditions to send out email:

    1) send email to APPROVER1, when page "Submit for approval"

        Workflow Tasks:

        assigned to = approver1, status = Not Started

        Pages:

        Approval Status = Pending

    2) send email to APPROVER2, when approver1 approved

        Workflow Tasks:

        assigned to approver1, status = Completed

        assigned to approved2, status = Not Started

        Pages:

        Approval Status = Pending

     3) send email to REQUESTOR, when approver1 rejected

         Workflow Tasks:

         assigned to approver1, status = Completed

         Pages:

         Approval Status = Rejected

      4) send email to APPROVER1, when approver2 rejected

          Workflow Tasks:

          assigned to approver1, status = Completed

          assigned to approver2, status = Completed

          Pages:

          Approval Status = Approved

    The problem I encounter was not able to check the Pages's Approval Status,

    because the Designer workflow attached on Workflow Tasks.

     

    1 way might be working if I create an event handler trigger when ItemAdded and ItemUpdated in Workflow Tasks,

    then by using SPUtility.SendEmail() to users in group.

     

    If possible I do not hope to go into coding level,

    please advice, thank you in advanced.

     

    Sams

     

    Sunday, April 10, 2011 2:08 AM
  • I tried having an Event Handler to Add Item into a custom list, where the custom list contain the Pages Approval Status & Assigned To,

    then I created a workflow attached on the custom list trigger when Item is Added.

    there is an item created in the custom list by Event Handler, but the workflow is not trigger,

    however if I add in the item manually into the same custom list, the workflow triggered.

    Any idea how can this be??

    thanks


    • Edited by Mike Walsh FIN Sunday, April 10, 2011 5:00 PM Too early for a bump (especially at weekend) so "Anyone?" removed. The post survives because you added more information in it, but don't expect immediate responses in future
    Sunday, April 10, 2011 4:43 PM