Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Access "Date Range" selection from the Schedule Board with JavaScript

(0) ShareShare
ReportReport
Posted on by 15

Hello!

I’ve gotten a requirement and I’m not sure if this is even possible. Basically what I want to do is to be able to store/get the ”Date range” data that the user chooses from the Schedule Board inside a variable in JavaScript OnLoad.

See picture below:

SB1.png

Is there anyway of doing this, like using the ”getElementById” function?

I am aware that Microsoft does not want you to access the DOM. https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/use-javascript?view=op-9-1. But this is the only way where I can see the values, see below.

SB2.pngSB3.png

I’ve researched and so far I haven’t found a solution that is up to date or that is working. Furthermore, I’ve also tried using Xpath without any success.

Thanks for any help!

  • RE: Access "Date Range" selection from the Schedule Board with JavaScript

    Hello, have you tried to use formContext on the JavaScript function?

    Something like this: formContext.getAttribute("field_name").getValue();

    I attach a link that contains many examples: rkcrm.wordpress.com/.../

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans