Announcements
Hi,
Is it possible to disable/lock activity timeline or the notescontrol in the timeline?
In the UI you can set "Lock the field on the form" but it does not seem to have any effect. I have also tried to lock the section with "Lock the section on the Form" but that also has no effect.
I have tried this code to disable t notescontrol in the timeline.(Works with mot other controls) It runs without any problemes but has no effect:
function sectionDisable(formContext, name, disableStatus) { var controls = formContext.getControl(); for (var i in controls) { if (controls[i]._controlName == name) { controls[i].setDisabled(disableStatus); } } }
/Frode
I think you can use the security privilege to prevent users from create operation and use the below css to make the control look like disable. You might have to use tabindex="-1" prevent keyboard navigation.
pointer-events: none; opacity: 0.4;
Best Regards,
PG
Hi Frode,
You can’t disable timeline and notes control with code, but you can just assign "Read" access of Note entity from security role to disable Notes control in Timeline.
1.Go Settings > Security > Security Roles.
2.Go Settings > Security > Users to choose one user to see which security roles are assigned.
3.select these security roles and set Note entity with only ’Read’ privilege and cancel other privileges(Create, Write, Delete, Assign, Append, Assign to, Append to).
Make sure all security roles that user is assigned have set done.
4.Test
When user (Jeff Hay) login to D365 and open one record, he just read notes that created previously, and he can’t edit these notes or create new notes.
Also, you can directly hide Note control in Timeline.
1.Go Settings > Customizations > customize the system > entities > form to double-click timeline control.
2.Test
All users can’t see Notes in Timelime, they can’t create new notes and read notes that created previously.
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
Hello Frode,
As far as I know there is no supported way to disable that control from the code.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156