Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Workflow - How to test for blank values?

(0) ShareShare
ReportReport
Posted on by 29

Hello,

I'm setting up a timesheet workflow. In the workflow I'd like it to test for whether a project manager is specified or not (is the project manager field blank). I can't get the workflow to cooperate though.

The condition looks like this:

pastedimage1686041696544v2.png

And the project looks like this:

pastedimage1686041720070v3.png

Yet the workflow evaluates like this:

It's meant to evaluate as "True". Is there a way to make that happen?

Br Joachim

  • Joachimpwc Profile Picture
    Joachimpwc 29 on at
    RE: Workflow - How to test for blank values?

    Hello both,

    Thank you for your assistance.

    Br Joachim

  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Workflow - How to test for blank values?

    Then you need to provide 0 as the value. Seems it's a RecId field.

    Thanks,

    Girish S.

  • Joachimpwc Profile Picture
    Joachimpwc 29 on at
    RE: Workflow - How to test for blank values?

    Hello,

    It doesn't seem to be string, not sure if it's RecId. Using 0 instead of blank seems to fix the issue. Will have to test it a bit more, but the test I'm running now works as intended.

    Br Joachim

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Workflow - How to test for blank values?

    Right click on that control and click on form name: FormName >> It will open the new dialog form >> In that form under Administration tab >> Under Form control type - See what the type is.

    Refer to the below screenshot.

    Thanks,

    Girish S.

  • Verified answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Workflow - How to test for blank values?

    If there is value in Project manager field, is the condition returns True or False. Also, instead of blank try adding zero in the value (If its RecId, then blank will not work).

  • Joachimpwc Profile Picture
    Joachimpwc 29 on at
    RE: Workflow - How to test for blank values?

    Hello Mohit,

    I actually saw the replies in that link as well, which led me to where I am now. That link is also part of why I don't understand the issue.

    How do I check for whether it returns a RecId or String?

    @Girish, I'm pretty sure that the way the condition is now should be: If project manager field is blank = True

    Br Joachim

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Workflow - How to test for blank values?

    Hi, Your condition to check if value is empty looks fine. Is the Project Manager field returning String value or RecId.

    community.dynamics.com/.../wf-with-conditional-decision-check-for-blank-field

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Workflow - How to test for blank values?

    Hi,

    As per the condition you have added condition as if the project manager is empty then the condition will be evaluated to false.

    If the project manager field is not empty, then the condition will be true.

    Try assigning the project manager field to value and then submit the workflow.

    Thanks,

    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans