Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Trigger a workflow on condition when two entities created on time is same

Posted on by 1,017

Hi,

I would like to trigger a workflow on field change and the condition I am trying to achieve is we have X and Y entities and their created on Time is equal or close to 1 day we would like to create a additional record.

Can someone please share the screenshot with steps. I tried to do this but I am having the trouble in adding the condition for Created ON Match step.

Thanks you!

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Trigger a workflow on condition when two entities created on time is same

    Hi partner,

    1.If you want to trigger a workflow when changing a field, you could add a condition in process like this.

    For example, I want to trigger the workflow when I change the name field on account.

    pastedimage1568776343070v2.png

    pastedimage1568776323322v1.png

    2. Then you said when the two entitis' createdon is the same or close to 1 day, you could set another condition.

    pastedimage1568776399609v3.png

    pastedimage1568776425661v4.png

    pastedimage1568792612412v1.png

    pastedimage1568792633192v2.png

    You could find the related entities in the "Look for" list and add the fields of the related entities as conditons.

    pastedimage1568776785267v6.png

    Then we add an action to create a new record.

    pastedimage1568776893302v7.png

    Please note that, according to your description, there are 3 situations:

    a.You want to trigger this workflow when change a filed in entity Z which has N:1 relationships with X and Y.If so, the above method can be used.

    b.You want to trigger this workflow when change a filed in entity Z which has 1:N relationships with X and Y.If so, you could only create a custom plug-in with C# to get all the X&Y records and compare each record's created on.

    c.You want to trigger this workflow when change a field in entity X or entity Y. Only when the main entity has a N:1 relationship with the related entity then you could find it in "Look for" list.

    If my description is not very clear, please share more details about your requiemend about which entity do you want to tirgger workflow and then I will help you do more analysis.

    Hope it helps.

    Best Regards,

    Leo

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans