Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

JavaScript code for Formula field

Posted on by 37
Good Afternoon All,
 
I am new to Dynamics 365 CRM and I am trying to create a formula (Calculated) field that counts the number of days between two dates (created on date and today), not counting weekends.
I am not a developer and do not know how to write JavaScript. I have tried code generators but they did not help much.
Does someone have a JavaScript code that they can and would be willing to share with me?
 
Thank you
Shawn Low
  • Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    JavaScript code for Formula field
    Hi Shawn,
    You can find JavaScript code that does this here.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans