web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Workflow condition isn't working

(0) ShareShare
ReportReport
Posted on by 133

Hello all,

I have created one custom workflow few days ago. Now, we have a requirement to add one condition in it. But the condition isn't working at all. 

The condition always returns true. Is there anything we have to modify using code or we are missing something in the workflow?

pastedimage1651833015713v2.png

Here, as shown in the image, I have added one condition to the workflow, that If the department is 1464 then GRN workflow 4, else GRN workflow 3.

But whatever department I have in my table, it always returns true in the condition, and runs GRN workflow 4.

What am I doing wrong nmaenpaa ?

Thanks in advance,

Bhagyashree Dave

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Bhagyashree,

    Does your table have a field DefaultDimension? For an example in Purchase order workflow, You can get the Department value using Purchase orders.DefaultDImension.Department

    pastedimage1651836640800v1.png

  • Bhagyashree Dave Profile Picture
    133 on at

    Hi Gunjan,

    Yes, I have that too in my table, and also I have stored value of department individually. Still it's not working for any of them.

    pastedimage1651837772933v1.png

    Is there anything I need to add from coding side to flow the values?

    I don't understand what's happening here, I tried to change the condition, but whatever I put in the condition, it always returns true.

    Even if the value is blank, it returns true. Can you suggest what I should add or change?

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Bhagyashree,

    have you checked the value of the field in the backend? Also, if you have made any changes to the workflow configuration, have you activated the new version?

  • Bhagyashree Dave Profile Picture
    133 on at

    Yes,

    I debugged the submit manager class, in which I am getting my table with all the values in it.

    And yes, I have activated the new version. It also shows in the workflow history.

  • abdultp Profile Picture
    867 on at

    In the workflow view history, does it gives condition evaluated to True even if it's False?

  • Bhagyashree Dave Profile Picture
    133 on at

    yes, that's what happening here.

    In my condition it should be true only if the department is equal to 1464, but it returns true in all the situations.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans