"Duration and EndDateTime must match" error when IsAllDayEvent is passed by defaultFieldValues
Last updated 9 days ago ·Reference W-9539364 ·Reported By 2 users
In Review
Summary
If we pass IsAllDayEvent as the default value of creating new Event modal form, "Duration and EndDateTime must match" error occurs when saving the event.
/lightning/o/Event/new?defaultFieldValues=IsAllDayEvent=true
Repro
1. Go to Setting > Feature Settings > Sales > Activity Settings
2.Enable "Enable Multiday Events".
3.Go to Setting > Object Manager > Event > Buttons, Links, and Actions > New Button or Link
4.Create list button with follows:
Display Type:List Button
Behavior:Display in existing window with sidebar
Content Source:URL
—
/lightning/o/Event/new?defaultFieldValues=
IsAllDayEvent=true
—
5.Place the button to Open Activities related list in opportunity page layout.
6.Go to Personal Settings > Display & Layout > Record Page Settings > select Related Lists and Click Save.
7.Create an opportunity record.
8.Click the button in Open Activities related list
9.Select any Subject.
10.Click save.
11.Error occurs.
—
Duration and EndDateTime must match.
—
Workaround
Disable All-Day Event and re-enable it.
OR
Change Start date and revert it.
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.
