Skip to main content

Notifications

Dynamics 365 general forum
Suggested answer

Appointment Duration/End Time - business rule configuration

Posted on by 2
Hello!
 
We have a business rule enabled on the appointment entity to set the appointment 'Duration' based on a custom field value 'Consult Type':
 
When the appointment is first created, it sets the end time correctly, based on the duration that has been set by the Business Rule.
 
However, if the user changes the 'Consult Type', the Duration updates accordingly, but the End Time doesn't. What are we missing?
 
  • Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Appointment Duration/End Time - business rule configuration
    Hi,
    You mean the Duration value changed, but the end time didn't change with it, right?
    Tested it and it does, if the business rule changes the duration, the end time will not be updated with it:
    Maybe we can consider that changing end time in the business rule.
     
     
  • FB-24050455-0 Profile Picture
    FB-24050455-0 2 on at
    Appointment Duration/End Time - business rule configuration
    Hi Leah, I am using Set Field Value. The business rule itself its functioning perfectly, but then the usual OOTB behaviour of the end time adjusting based on the duration is not.
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Appointment Duration/End Time - business rule configuration
    Hi,
    Can you share screenshot about this business rule?
    Which action is selected when setting the value in the Business rule?
    Set Default Value: Value will only be set when the record is created.
    Set Field Value: Not limited to records being created, values can be set when update records.
    https://rajeevpentyala.com/2022/01/19/power-apps-business-rule-set-field-value-vs-set-default-value/
    I hope you can mark my answer verified if it answer your question! If you have any questions, please feel free to contact me.
    Regards,
    Leah
     

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,700 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,058 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans