Workflow - Wait for field change

Hi All,
I am just starting to experiment with sharepoint 2013 (in office365) workflows and am running into an issue.
What I am trying to create is a sort of approval workflow in which multiple people need to approve the item. I created a column for each department that needs to approve the item and the default value for the column is 'awaiting approval'.
So the first department gets an email that they need to approve or deny the item. I want the workflow to wait for the value 'awaiting approval' gets changed and if it changes to deny stop the workflow, else go to the next department.
The problem is that 'wait for field change' does not seem to do the trick. I can tell it to wait for the field to change to approved, but if it is denied it won't go further to the denied state.
I guess there is a trick for this but I can't find it. Any ideas?
Thanks in advance,
Eddy

I'm not sure wait for field change will work. This action requires you to wait until it equals a specific value, rather than just for the field to change. So if you want approve or deny, this won't work because you can only wait for it to be approved or
wait for it to be denied, not both. Basically, just as you say.
I would just have stages ("Awaiting Department 1", "Awaiting Department 2", etc) that is a hidden choice field set by the workflow. Choice fields then for each department for their approval. Conditions on the workflow fire based on the Awaiting Department
field.
Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

Similar Messages

  • SPD Workflow executing twice on Wait for field change

    I have a workflow where I have a Wait for field change action. Once the field is changed it sends an email. But it also goes back through the whole workflow again. So it sends 2 emails. How do I correct?
    The workflow is set to run on item created and item changed.

    I'm not sure wait for field change will work. This action requires you to wait until it equals a specific value, rather than just for the field to change. So if you want approve or deny, this won't work because you can only wait for it to be approved or
    wait for it to be denied, not both. Basically, just as you say.
    I would just have stages ("Awaiting Department 1", "Awaiting Department 2", etc) that is a hidden choice field set by the workflow. Choice fields then for each department for their approval. Conditions on the workflow fire based on the Awaiting Department
    field.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Change "to equal" to "to be greater than" in Wait for Field to equal Value"

    In Sharepoint Designer 2010, in the workflow Action "Wait for Field to equal Value", I could change the "to equal" to "to be greater than". I can't find how to do this in SPD 2013.
    Can someone please help?
    Thank you!

    Hi
    PieterVanHeerden, is a big problem that gives us the change Microsoft . An option to mitigate this problem could be to use an additional workflow that runs whenever the item is updated . Workflow evaluate the condition that you need and when it is Ok, updates
    the value of a field used as flag called eg " Control_Hora_Inicio_Completo " with " true " value.
    In your current workflow you should modify the condition for the WorkflowF stops until the Control_Hora_Inicio_Completo field equal to " True " when it meets the Workflow continue and you're sure you have entered a value , whatever that is .
    I hope you can try and you work.
    Greetings from Argentina .
    Maxi
    Msorli

  • Correlations in Workflow - wait for Delete event problem

    Hi All,
    I am working on version ECC5.
    I have a workflow that needs to wait for any changes to i0008, i0007, i0509 and i2001 for the person who is the subject of the workflow.  I have used correlations to do this and it is all working fine except for the Delete event.
    For each infotype I wait for each event ie. Approved, Changed, Created, ApprovedCancelled and Delete.  When the events are published the wait event is triggered and the workflow goes to the next steps where it does a recalculation,  fires off a new workflow and ends the current one.  This is working for all of the events except Delete.  The Delete event is set up exactly the same as the rest, but somehow the workflow wait event is not triggered.  It is happening with the Delete event for all the Infotypes I am waiting for.
    Does anybody have any suggestions as to what may be the problem. 
    Thanks
    Sandra

    Arghadip/Martin thanks for your replies.
    Yes, the delete event is being published.  I am using the same object e.g BasicPay for the delete event that I am using for the other events - Approved, Created etc. that are working.   The correlation and the wait for event steps are set up exactly the same way as they are for the events that are working.  I find it curious that the delete event doesn't work for any of the infotypes.   Why?  Could it be that when a record is deleted the object no longer exists?
    Any suggestions?
    Thanks
    Sandra

  • "Waiting for applying changes" staying forever when syncing, never ending. Cant finish syncing latest ITumes with IPhone 4S, last iOS.

    "Waiting for applying changes" staying forver when syncing, never ending. Cant finish syncing: latest ITumes with IPhone 4S, last iOS.

    "Waiting for applying changes" staying forver when syncing, never ending. Cant finish syncing: latest ITumes with IPhone 4S, last iOS.

  • Wait for field to equal to value not working in Sharepoint desginer 2013

    Hi ,
    I have two Work flow
    WF1 & WF2
    In below image WF2 it will update a list column where WF1 work flow In Progress
    In WF1
    It wait for Other Task Parallel value equal to started.
    WF2 Update the list correctly but WF1 not work properly but
    when I update list Item then it works fine for WF1 .
    Please let me know if any thing wrong.
    Regards
    Sachin

    Hi cameron,
    We have two list as mention below
    Agent list -Attach WF1
    Task list-Attach WF2
    WF1 one wait for action change column value from WF2
    WF2 update a column value as show in fig above perfectly fine, where WF1 in waiting state to get the status.
    but status is already updated.
    When I have edit the same  item in which WF2 update its column value then my WF1 working fine for " wait for Other Task Parallel value equal to started" action in my Agent list.
    Regards
    Sachin

  • IPhone sync stuck at Step 5 of 5 waiting for the changes to be applied

    iPhone sync stuck at Step 5 of 5 waiting for the changes to be applied

    For me it was stuck. So with the iphone/pad etc plugged in I was having the failings at the last step.
    I got it to work by unticking "Sync this ****** over wifi" and onnly ticking"manually manage music and videos"
    Maybe it gets confussed and I thought I was managing it anyway.
    Anyway - that worked for me, literally did the ticks. Off it goes, now adding 1500+ tunes

  • Shopping Cart Workflow - "Wait for change event" not firing?

    Hi there,
    I have a scenario where if I create a shopping cart above my spending limit it will go into the approver's inbox, that is fine.
    Now if I change the total value of the shopping cart to be within my spending limit the original workflow should be "logically deleted" and a "no step approval workflow" should be triggered.
    I see when the SC workflow triggers it also branches with a "wait for events", so that if it changes etc it will get caught here.
    When I change the SC it does not do anything, the value of the cart changes but it still sits in the approvers inbox and the "no step approval workflow" does not trigger.
    We are busy upgrading to SRM 5.0, it worked perfectly in the SRM 3.0 system we had.
    Any ideas what would cause the "change event" not to fire?
    Thanks for the help
    Lynton

    Hey Masa,
    You are the man!! That solved it.....I have implemented the BBP_WFL_SECUR_BADI and for whatever reason I set the security level to 4 when it should have been 2.
    4     "High" (workflow is never restarted when changes are made)
    3     "Medium" (WF restarted conditionally when changes are made)
    2     "Low" (workflow is always restarted when changes are made)
    1     "None" (changes to the object are not allowed)
    0     "Not defined"
    Thanks for the help
    Lynton

  • Workflow WAIT FOR EVENT STEP deadline not working

    Hi,
    Need some inputs for the experienced people;
    I have a wait for event step in a workflow with deadline monitoring (Latest End) but it doesn't seem to work.
    Ofcourse, all the required setting are in place and deadline works fine for other Activity steps.
    The problem is specific to Wait for event step.
    The alternative is having a fork but I just want to know why the wait step with deadline doesn't work.
    Thanks,
    Roopesh

    Hello Ajay,
    Can you share with us what did you do to solve your problem?
    I'm facing the same thing in my project now, I'm wandering if you could help me with this one.
    I have this wait for an event step wich is configured to wait 4 minutes since the work item creation. I've also selected 'Modeled' on the Action field, and a display text for the outcome.
    But in one of my tests, the event hasn't occurred and the workflow stuck in this task forever.
    Thanks in advance.
    Regards.
    Actually, I think I got this handled. This thread was really helpful to me: http://scn.sap.com/thread/47482
    Message was edited by: Leandro Farias dos Santos Abreu

  • Workflow - WAIT for Condition not working

    Dear All,
    This is regarding the WAIT step of workflow. It was used as WAIT for Condition. The condition is to check the application server's time (system field) with some local variable of time. Till this step meets the condition specified, the workflow will wait for some x hours. If this condition is satisfied, the workflow is expected to continue with the next steps.
    During the execution of the workflow, the wait step history shows that it is created successfully. But in ready status only. In the graphical log it shows <i>No Agent </i> along with this wait step.
    There is no field wherein I could assign this agent. Also the job SWWDHEX is working fine.
    Kindly help in sorting out this issue.
    Thanks & Regards

    Hi Rob,
    Thanks for your response. I tried using the Deadline monitoring in Activity step. I tried using the Requested Start tab with Expression for this step. The requirement is to hold the processing for some x hours depending on following business requirements -
    If there is a ticket for issue with New status then wait for X hours. During this X hours the technician is supposed to acknowledge the ticket. So hold the workflow for X hours and as the X hours are over, check for ticket status. If the ticket status is still new then escalate it to managers saying ticket not acknowledged using Send Mail step.
    Hence I had to ask the workflow to wait for some X hours.
    The Requested Start tab requires the reference Date/Time + a direct input value (ZZ) for min or hour or day etc fields.
    Now here the Time field is either a reference time AT which the activity will start with a delay of the ZZ Min/Hours/Day that we give in the next field OR this Time is exact value of time for which the workflow should hold.
    e.g.
    1.
    Date 27-Dec-06
    Time 00:10:00
    + 1 min
    then here it is either 11 min, the workflow should hold for processing or
    it is on 27th Dec 2006, 12 past 10'O clock time and when this time reaches, the workflow should wait for 1 min and then proceed.
    As none of the above logics were working. So I couldn't exactly make out what this Time field actually requires. I thought it was time when reaches the workflow should hold for some ZZ min.
    Again, the time value what I can give to this workflow is of application server time. But in the log of the workflow shows that work item refers to presentation server time everywhere. Hence it is difficult to compare also.
    So finally I took a wait step wherein both the variables of the time were given to starting event of workflow.
    Kindly help me in sorting out this issue.
    Thanks & Regards

  • Workflow - Wait for PO release

    Hi ALL,
    My requirement is that, after the PO change by ME22N the WF should Wait for PO release before I can call MIGO for Goods receipt.
    But my WF is directly calling MIGO after the ME22N, even though I have put a Wait for event task in between.
    Object type - BUS2012
    The WAIT event is - RELEASED
    the bibding parameters are &_EVT_OBJECT& from Event to &PURCHASEORDER& in the workflow.
    The wait condition is executing successfully and then MIGO is called, where as I have not yet Released the PO.
    How to make the WF wait for the Release.
    DP

    Hi,
    As per my understanding, is your workflow goes for next step after release of any level ?
    Please check whether the event RELEASED triggers for each level of release.
    Regards,
    JMB

  • Workflow -  Wait for event

    I have a requirement like this:
    In the workflow, judge an object is released or not. If not release. the workflow will stop.
    Now we need to write a program to check the status of the object every 15 mins, if the object is released, then an event will be raised to allow the pending workflow to continue.
    How do I achieve this?

    No Problem Yu,
    See below. Rough steps but I think you can fill in the meat on bones.
    Creating event.
      Step 1. Execute SWO1  it is O not zero.
      Step 2. Create business object. If you do not have one already. I assume you do not have one. Make sure you define key fields which uniquely identifies your object.
      Step 3. Create one event under events node. Make sure key fields are part of event parameters. Save and activate object.
      Step 4. Now triggering the event. In your besopke program which will run as background job. Once you decide object is released. The call function module SWE_EVENT_CREATE to trigger workflow. example given below. Check where used list of this FM you will find many examples. Use any example where EVENT_CONTAINER parameter under tables is being used you'll need this to pass data to event parameters.
    CALL FUNCTION 'SWE_EVENT_CREATE'
      EXPORTING
        OBJTYPE                       =  T_OBJTYPE
        OBJKEY                        =  T_OBJKEY
        EVENT                         =  T_EVENT
            CREATOR                       = ' '
            TAKE_WORKITEM_REQUESTER       = ' '
            START_WITH_DELAY              = ' '
            START_RECFB_SYNCHRON          = ' '
            NO_COMMIT_FOR_QUEUE           = ' '
            DEBUG_FLAG                    = ' '
            NO_LOGGING                    = ' '
            IDENT                         =
    IMPORTING
       EVENT_ID                      = T_EVENT_ID
    TABLES
       EVENT_CONTAINER               = T_EVENT_CONTAINER
    EXCEPTIONS
       OBJTYPE_NOT_FOUND             = 1
       OTHERS                        = 2
    Creating wait step.
        When you insert a new step in workflow it will ask you the kind of step you want to insert. Choose wait for event and after that it is not very tough all you have to give is give business object and event name. Do binding, this is important as this will make sure your workflow is reacting to correct instance of object.
    Warm Regads,
    Anuj Nagpal.
    Edited by: Anuj Nagpal on Sep 17, 2009 5:32 PM
    Edited by: Anuj Nagpal on Sep 17, 2009 5:33 PM

  • Error in Workflow wait for event node

    Hello Experts,
    I am working on one QM notification. I shall explain the scenario first:
    1) User will take the usage decision on inspection lot in QA11. When user will take decision and save inspection lot BUS2045 event USAGEDECISIONMADE will be triggered and initiate my workflow here.
    2) After workflow initiation system will create notification and send to approver, but here i have wait step in my workflow for BUS2078 - Created (Notification).
    wait for Event step
    BO: BUS2078
    EV: CREATED
    I am posting error below:
    Error when starting work item 000000294361
    Error when processing node '0000000060' (ParForEach index 000000)
    Error when creating a component of type 'Wait Step'
    Error when creating an event item
    Error within method CL_SWF_RUN_WIM_EVENT->_CREATE_WORKITEM_CONTAINER
    Error within method CL_SWF_RUN_WIM_EVENT->_GET_INIT_WORKITEM_CONTAINER
    Workflow 000000294361 wait step 0000000060: No valid object ID in container element 'Notification
    Node 60 - wait for event step.
    Re.,
    Guri

    Hi,
    Based on your description what I felt is you are making use  of a wait step in which you have choose to wait till BUS2078 event CREATED is occured ... right.. Now can you please clear me that where and how this event will triggered.
    or is it some thign like you are making use of event creator step and in this case, When ever you are making use of the eventcreator  step and a BOR object inside it make sure that specific BOR object is already instatitaed in the workflow container , if it is instantiated then only it will try to identify the instance  or the BOR and it will try to rasie the event.
    Regards
    Pavan

  • How to get OIM workflow waiting for a task successfully completed?

    The requirement is to get OIM provisiong workflow pending and wait for a external status ready. When the external status not ready, I return "REJECTED" which mapped to "P" in "Task->Reponse" tab. Meanwhile, in the "Task->General" tab, I set the "Retry Count" to 5 and "Retry Period in Minutes" to 1.
    I have hoped that once the task return "REJECTED", the workflow enter status "Pending". One minute later, the task re-instanced by OIM to have another check for whether the external status ready. If ready, return "COMPLETED". If not yet, return "REJECTED" and workflow re-enter pending. And on and on, until to max to 5 times attempt. But in fact, OIM workflow never attempt to re-enter the task again after the 1st time "REJECTED" returned.
    How to do with this?

    Use the code snippet below to get the task status. Based on this you can filter rejected tasks.
    userintf = (tcUserOperationsIntf) ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    provintf = (tcProvisioningOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcProvisioningOperationsIntf");
    long userKey=100;
    tcResultSet userresultSet = userintf.getObjects(userKey);
    for(int i=0;i<userresultSet.getRowCount();i++)
         userresultSet.goToRow(i);
         long processKey = userresultSet.getLongValue("Process Instance.Key");
         tcResultSet provresultSet = provintf.getProcessDetail(processKey);
         for(int j=0; i<provresultSet.getRowCount();j++)
              provresultSet.goToRow(j);
              String taskName = provresultSet.getStringValue("Process Definition.Tasks.Task Name");
              String taskStatus = provresultSet.getStringValue("Process Instance.Task Details.Status");
    Let me know if you have any queries...

  • Workflow - waiting for the communication Service - Msg 672

    Hi,
    We are facing problem in a program, which triggers mail through a workflow.
    when the notification is rejected it calls an workflow
    and when the notification is approved it calls an workflow
    in the 2nd case.. when the notification is approved the mail is not getting delivered to the user.
    in SOST we found that it is showing the satus sent.. with the Msg 672 ( waiting for communication services)
    can anyone guide.. what may be wrong .. or where to check it and solve this issue
    Thanks
    am s

    Hi,
    You can use the program lines..
    *** These two statemnets are used to force the mail to send it to the
    *receipeint otherwise we need to go to SOST tcode where we need to press
    * F8 to send the mail to the other user. To avoid this we need to use
    *these two statemnets. Here the mail is not in queue.
    submit rsconn01 using selection-set 'INT' and return.
    call function 'SO_DEQUEUE_UPDATE_LOCKS'.
    * SUBMIT rsconn01 WITH mode   = 'INT'
    *                      WITH output = 'X'
    *                      AND RETURN.
    But since you care sending the mail through a workflow and not programatically,
    Copy the standard BO, SELFITEM in which you can add the above two commands in the SENDTASKDESCRIPTION method.
    Create a standard task in PFTC binding the z BO and give this task in your mail step which will force the mail to your inbox.
    Regards
    Indu

Maybe you are looking for

  • Ipod touch is not syncing apps or allowing app changes in itunes

    ipod touch apps not syncing in itunes or allowing you to change what apps are on touch or even add new ones through itunes...very frustrated!!!!  I have two and both are having same issue..  I have updates on everything even computer. My iphone works

  • Speaker cannot be detected (occasionally)

    Hi, I have connected a Creative I-Trigue 200 to my new PC, just to have some basic sounds/music (I am not really particular about sound quality). However, it seems that the PC sound card occasionally can detect the speakers, but sometimes it does not

  • IInfoStore.sendTo(IInfoObjects) - modify format of source document

    Hi, Should I be able to modify the format of an IInfoObject when distributing the object using the IInfoStore.sendTo() method?  I have tried setting a destination format on IDestination using IFormatInfo.setFormat("CrystalReport", IReportFormatOption

  • Error in OVS!!

    i am getting error which is mentioned below regarding OVS,particularly when the browser is running slow and i am clicking 2nd time for the value help. If anyone know the answer,give me the solution. I will reward point. error is like .... The followi

  • Coax-OUT with Digital I/O-Modul doesn't w

    Hallo, i've got big problems with my X-Fi. I bought a cable for the digital connection to my amplifier with integrated D/A-Board.(http://www.advance-acoustic.com/en-product.php?id=25) This is how the driver looks: http://img248.imageshack.us/my.php?i