Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
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
     

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans