Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Workflow that autopopulates fields when checkbox is checked

(0) ShareShare
ReportReport
Posted on by

So, I have a form with these fields in it:

pastedimage1562865805639v1.png

The left-most field is a two-option type field formatted as a checkbox, the middle field is a datetime field, and the right-most field is a lookup type on the user entity.

I've been trying to create a workflow that, when the user checks the box, it autopopulates the middle field with the current date and the right-most field with the user who checked the box.

The workflow is shown below. It is designed to trigger when a new project entity record is created or when the checkbox field is changed. 

pastedimage1562866020215v2.png

If the value of the checkbox is yes, I update the workflow with the following properties. I use the "execution time" of the process to get the current date, and I use "modified by" to get who changed the record:

pastedimage1562866134584v3.png

Otherwise, if the value of the checkbox is no AND either of the two fields contain data, I clear the fields:

pastedimage1562866203531v4.png

However, if I try to create a new project and check the box, nothing happens:

pastedimage1562866372593v5.png

The fields should autopopulate as soon as I check the box, but it doesn't. Can anyone help me figure out why this is the case?

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Workflow that autopopulates fields when checkbox is checked

    Hi,

    Agree with Wouter's suggestsion. You need to save the record in order to trigger the workflow i.e. workflow is triggered only when you click save.

  • Suggested answer
    Wouter Madou Profile Picture
    3,392 on at
    RE: Workflow that autopopulates fields when checkbox is checked

    In your wf you say that it needs to run after a change.

    This means that you first need to make the change and save the record.
    Without saving it it will not be known as a change.
    So after saving your record you will see the values of your workflow.

    You can change it to before, but it will still only fill in 'milliseconds' before the actual save action.

    pastedimage1562867367893v1.png

    If you want immediate results you will need to run code on your form.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans