locked
Workflow created for Record Status Change only reading 1st If statement , it's not reading steps written inside "Otherwise" block RRS feed

  • Question

  • Hello All,

    I have created a Workflow in MS CRM 2013 that runs when my Custom Activity Status Changes (By Clicking on Mark As Complete). There is an If and Otherwise blocks. When Workflow triggers it only reads the 1st If block statement, means when If Condition satisfies then it goes inside the block but if "If" condition doesn't satisfies then it is not reading the "Otherwise If" condition and getting completed without doing anything written inside that block.

    Like

    If value != "Yes" Then

    {

    Stop Workflow

    }

    Otherwise If Value != "No"

    {

    update field value of same activity record

    send mail

    }

    If "If" statement is satisfying then it's reading the steps but if it is not satisfying then is not going to "Otherwise" block even though the "Otherwise If" condition is true.

    Please help me I am really frustrated with that and stacked to the same place from last 2 days, any help will be really appreciated. 

    Many Thanks in Advance.

    Manish

    Sunday, February 23, 2014 5:24 PM

All replies

  • Duplicate of http://social.msdn.microsoft.com/Forums/en-US/ebaa3328-cddf-48be-8e09-efb0d50f60a0/workflow-created-for-record-status-change-only-reading-1st-if-statement-its-not-reading-steps?forum=crm


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Sunday, February 23, 2014 8:50 PM
    Answerer
  • Hi Scott,

    Thanks for your reply, but even after removing the "Otherwise" block it's not reading the next steps.

    Now my statement is like:

    If value != "Yes" Then

    {

    Stop Workflow

    }

    update field value of same activity record // Update record before completing

    send mail // Send email

    Thanks,

    Manish

    Monday, February 24, 2014 6:35 AM
  • Manish, Make sure have you the option of workflow when to run?
    Monday, February 24, 2014 8:05 AM
  • I set it to trigger on Status Change.
    Monday, February 24, 2014 8:34 AM
  • You don't get what I said. Now please look at the following snapshot. Please mark to run it on demand or as a child process.

    Monday, February 24, 2014 8:51 AM
  • Hi Ali,

    I am working on MS CRM 2013 Realtime workflow, so i don't think this option is mandatory.

    Thanks,

    Manish

    Monday, February 24, 2014 9:10 AM
  • Hi Manish,

    Can you try this and see whats happening,

    If value != "Yes" Then

    {

    Stop Workflow

    }

    Otherwise

    {

    update field value of same activity record

    send mail

    }


    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful" Thank you, DT

    Monday, February 24, 2014 9:18 AM