Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Workflow not triggering on Change of field

(0) ShareShare
ReportReport
Posted on by

Hi experts, 

i have created a workflow in the project entity so that when the user selects a primary contact lookup field, the workflow should automatically populate the phone number field. 

My workflow works only when I save the form and not when the lookup field changes.

Please help. 

Here are parameters of the workflow:

Screen-Shot-2018_2D00_02_2D00_19-at-1.43.12-PM.png

Thanks!

Jon

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Workflow not triggering on Change of field

    Hi Jon ,

    Workflow will trigger based on records which exists in your database or when you are saving the database in stage 30. So using workflow you can not achieve.

    You can write JavaScript in this case.

  • Verified answer
    Guido Preite Profile Picture
    54,077 Moderator on at
    RE: Workflow not triggering on Change of field

    the workflow is triggered when you save and because is synchronous you are able to see the phone number after you save.

    If you need to show the phone number immediately after the lookup change, then you need to add a javascript code in the onchange event of the lookup field to fetch the phone number (using the webapi) and set inside the field.

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans