infopath/sharepoint designer - InfoPath Dev
in

InfoPath Dev

infopath/sharepoint designer

Last post 06-22-2015 08:31 AM by DDEBBABY. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-02-2015 11:31 AM

    infopath/sharepoint designer

    I have a form that has an Approve/Reject dropdown.  I am creating a workflow in SharePoint designer 2013, and for some reason it will not see when reject is selected.  Here is the code.  Can someone tell me what I am doing wrong?

    Stage:Supervisor Approval

                   If Current Item:SupervisorApprove equals Reject

                                  Email Current Item:Main Authors

                   Wait for SupervisorApprove to equal Approve

                   Email Current Item:SubjectAreaExpert

    Transition to stage

                   Go to SubjectAreaE

    Stage:SubjectAreaExpert Approval

                   If Current Item:SubectAreaExpertApprove equals Reject

                                  Email Current Item:Main Authors

                                  Wait for SubectAreaExpertApprove to equal Approve

                                  Email Current Item:IP

    Transition to stage

                   Go to IP Approval

  • 06-18-2015 12:08 PM In reply to

    Re: infopath/sharepoint designer

    Sorry here is the updated code

    When it gets to supervisor approval it just stops. The supCalc field does change to know but the workflow goes no further.  I am assuming it is cause the supcalc fileld but I am unsure how else to tell if the firld has changed to Reject.  I have tried everything...

    Stage:Sent for supervisor approval
     

    Wait for SupCalc to equal No

     If Current Item:SuppervisorApprove equals Approve

      Email Current Item:Main Authors
      Email Current Item:SubjectAreaExpert

     Else
     

     If Current Item:SupervisorStatus equals Reject
       Email Current Item:Main Authors

       Wait for SuppervisorApprove to equal Approve

    Transition to stage
     Go to Sent for SubjectAreaExpert Approval

    Stage:Sent for SubjectAreaExpert Approval

     Wait for SAECalc to equal No

     If Current Item:SubjectAreaExpertApprove equals Approve

      Email Current Item:Main Authors
      Email Current Item:IP
     

    Else

      If Current Item:SubjectAreaExpertApprove equals Reject

       Email Current Item:Main Authors
       Wait for SubjectAreaExpertApprove to equal Approve

    Transition to stage
     Go to sent for IP Approval

    Stage:sent for IP Approval

     Wait for IPCalc to equal No

     If Current Item:IPStatus equals Approve

      Email Current Item:Main Authors
     Else

      If Current Item:IPStatus equals Reject
       Email Current Item:Main Authors
       Wait for IPApprove to equal Approve

    Transition to stage
     Go to Workflow Complete

    Stage:Workflow Complete
     Comment: Workflow Complete
     Email Debbie Smith
    Transition to stage
     Go to End of Workflow

  • 06-18-2015 12:20 PM In reply to

    Re: infopath/sharepoint designer

     Have you tried adding a log step for each workflow step to see what is or is not running? I'm confused by one field being used to check for Approve and another for Reject. I do see in the form's design that the default for the status field is the approve field.

    Hilary Stoupa

  • 06-18-2015 02:01 PM In reply to

    Re: infopath/sharepoint designer

    Sorry I was offline.  I can add the log steps now.  should I change the default status?  if you look at the fields when I change the field it is chaging the status to no so I think that is working properly.  the default for the status field is what is selected in the supervisorApprove field.  I just added that field to see if if would see the changed value in a text field rather than drop down.
  • 06-22-2015 08:31 AM In reply to

    Re: infopath/sharepoint designer

    Okay question for you.  I have recreted the code below.  The workflow works this way however, If the status is approved I need it to move to the next stage.  Of course the way I have it set it will not.  Do you have any sugestions on what to change.  I am supposed to have this complete today!

    Stage:Alert User
     If Current Item:Abstract equals Yes
      Email Current Item:Supervisor
      Email Current Item:Main Authors
      If Current Item:Abstract equals No
       Email Current Item:Main Authors
      Wait for Abstract to equal Yes
      Log sent for supervisor approval to the workflow history list
    Transition to stage
     Go to Wait for approval change in supervisor

    Stage:Wait for approval change in supervisor
     Set Variable: Supervisorstatus1 to Reject
     The following actions will run in parallel:
      Step: Supervisor Approved
       Wait for SuppervisorApprove to equal Approve
       Set Variable: Supervisorstatus1 to Approve
       Email Current Item:Main Authors
       Email Current Item:SubjectAreaExpert
      Step: Supervisor Rejected
       Wait for SuppervisorApprove to equal Reject
       Email Current Item:Main Authors
    Transition to stage
     Go to Sent for SubjectAreaExpert Approval

    Stage:Sent for SubjectAreaExpert Approval
     Set Variable: SubjectAreaExpertStatus1 to Reject
     The following actions will run in parallel:
      Step: SAE Approve
       Wait for SubjectAreaExpertApprove to equal Approve
       Set Variable: SubjectAreaExpertStatus1 to Approve
       Email Current Item:Main Authors
       Email Current Item:IP
      Step: SAE Reject
       Wait for SuppervisorApprove to equal Reject
       Email Current Item:Main Authors
    Transition to stage
     Go to sent for IP Approval

    Stage:sent for IP Approval
     If Current Item:IPApprove is not empty value
      Log status has changed to the workflow history list
     If Current Item:IPApprove equals Approve
      Email Current Item:Main Authors
     Else
      Email Current Item:Main Authors
    Transition to stage
     Go to Workflow Complete

    Stage:Workflow Complete
     Comment: Workflow Complete
     Email Debbie Smith
    Transition to stage
     Go to End of Workflow

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.