Skip to main content

Notifications

Dynamics 365 general forum

Workflow Trouble: Update Field on Contact Based on Fields in Opportunity

Posted on by 250

Hello,

Today I have been trying to update a yes/no field on a contact record based on the values in fields on an opportunity.  The workflows shows that it runs successfully but the field on the contact record doesn't change. Is there a trick to using fields on opportunity records to update contact records? I want to use the contact field as criteria for a marketing list.

This is my workflow which runs in the background and has scope set to organization:

Starts when record is created, record fields change

Check Condition:  EMR Demo Date 1 Completed By contains data AND EMR Demo Date 1 is on or after 4/24/19  AND opportunity status is Open

Check Condition: Potential Customer (Contact).Added to Air Support is No OR does not contain data

Update: Set Potential Customer (Contact).Added to Air Support to Yes

OpptyWorkflow042419.JPG

Thanks!

Beth

Categories:
  • Verified answer
    LuHao Profile Picture
    LuHao 40,872 on at
    RE: Workflow Trouble: Update Field on Contact Based on Fields in Opportunity

    Hi Jones,

    I am very glad that your problem has been solved.  :)

    Please mark the verified answer to close this theme. This will help other users with the same theme, if they have the same problem, they can refer to this post directly.

    0576.6710.6.JPG

    Thanks.

    Best Regards,

    Lu Hao

  • JonesEA_2018 Profile Picture
    JonesEA_2018 250 on at
    RE: Workflow Trouble: Update Field on Contact Based on Fields in Opportunity

    Thanks for the response, Lu Hao.  

    I combined the conditions as you suggested and switched Potential Customer (Contact) to Contact.  The result was the same.  The workflow shows it executed successfully but the contact record is not updated.

    Then it occurred to me the EMR Demo Date 1 Completed By field is a lookup field. I created a new text field and a workflow to copy the lookup value to it. Then added that new field to the workflow's check conditions.  I left Contact as the entity to update in the original workflow.  When I tried the original workflow again the contact field in Contact was successfully updated.  The workflow is now set to start when there are changes to the copied text field and the date field. So far it is working properly.

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Workflow Trouble: Update Field on Contact Based on Fields in Opportunity

    Hi Jones,

    If the workflow runs successfully, but the fields are not updated, then it is most likely that the workflow condition setting is wrong. The workflow determines that the condition is not met, so the update field is not executed.

    Please check the workflow condition configuration carefully.

    In addition, I noticed that the entity you updated is Potential Customer (Contact). If you change it to Contact, could you successfully update the field?

    5127.3.JPG

    I recommend that you set the two conditions together rather than separately.

    5127.3.JPG

    Hope this helps.

    Best Regards,

    Lu Hao

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans