Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Change hidden field value when an associated entity is added to Event

Posted on by 107

Hi,

I have added a hidden field to my New Event form called "Are Event Products", the default value is No.

I want to change this to Yes whenever an Event Product is added, see screenshot. (The Publish Event workflow will check for this)

What is the easiest way to do this? Should I create a new workflow process to change the value and what would that look like?

Thanks you for your time,

Ollie

eventproduct.PNG

  • Suggested answer
    Oliver_McErlane Profile Picture
    Oliver_McErlane 107 on at
    RE: Change hidden field value when an associated entity is added to Event

    Thanks

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Change hidden field value when an associated entity is added to Event

    Hi Oliver,

    Don't forget to click 'Yes' under "Did this answer your question?" to close this thread.

    Thanks.  :)

  • Oliver_McErlane Profile Picture
    Oliver_McErlane 107 on at
    RE: Change hidden field value when an associated entity is added to Event

    Thank you

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Change hidden field value when an associated entity is added to Event

    Hi Oliver,

    Event Product entity and Event entity have a N: 1 relationship, so Event Product entity has an Event lookup field, and the Event form has an Event Product subgrid.

    When the Event Product record is created or updated, as long as there is value with the Event lookup field (the Event Product record has been added to the subgrid of the Event form ), then change "Are Event Products" to Yes.

    In summary, the attributes of the workflow are as follows.

    Entity: Event Product.

    pastedimage1582342561343v3.png

    Trigger: 'Record is created' and 'Record fields change', select the Event lookup field.

    pastedimage1582342580542v4.png

    Step1: Check Condition. "The Event Lookup field of the Event Product entity contains data." AND "The 'Are Event Products' field of the Event entity is No."

    pastedimage1582342915908v5.png

    Step2: Update Record. Update Event, select 'Are Event Products' field to Yes.

    pastedimage1582342950113v6.png    pastedimage1582342972461v7.png

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans