BC Friday Tips #25 Use Build-in Methods

Here’s this week’s #BCFridayTips for #msdyn365bc developers.
💡 Did you know that each data type in AL has built-in instance methods?
Just press dot (.) after a variable to see what’s available!
For example, a Text variable gives you: 
➡️ Contains 
➡️ Replace 
➡️ Remove 
➡️ Split 
➡️ Substring 
➡️ ToUpper / ToLower 
➡️ Trim
A Date variable provides: 
➡️ Day 
➡️ DayOfWeek 
➡️ Month 
➡️ WeekNo 
➡️ Year
Why? 
✅ Saves time. No need to reinvent the wheel.
Next time you’re handling data, check the built-in methods first!
 
																			 
																			 
																			 
																											 
																											 
																											 
																											 
																											 
																											 
																											 
																											 
																											 
																											
Didn’t know there are functions for Date type, thanks!
hi