JavaScript 101 for the Power Platform - PART 2

preview_player
Показать описание
Power Platform "Citizen Coders" ... Don't be intimidated by JavaScript! I work on Power Platform and Microsoft Dynamics 365 projects for small business, medium-sized business and enterprise every single day for the last 17 years, and I have not been on a project where at least a TINY bit of JavaScript was require. You can't go wrong just getting the very simple basics down.

So ... learn the basics of JavaScript for Power Platform and Microsoft Dynamics 365. This two-part playlist walks through the process of creating a simple JavaScript and then deploying it to a form Microsoft Dynamics 365 and the Power Platform.

Part 1 = JavaScript line by line - Execution Context, Form Context, and showing and hiding a tab.

Part 2 = Deploying our JavaScript from Part 1 onLoad and also onChange.

We also discuss some best practices, error handling, the console, and more.

Finally, here is the code I promised I would upload right here in the description:

/*
Setting things up
Business Case/Condition: When the BF Status equals either Ready for Contact, Contacted, or Responded, show the tab. All other values, hide the tab.
Attribute= new_bfstatus
Not Reviewed = 100000000
Ready for Email Check = 100000005
Ready for Contact = 100000001
Contacted = 100000002
Responded = 100000003
DQ = 100000004
followup = Follow Up Tab
*/

function showhidecomp(executionContext) {
try {

if (bfstatus == "100000001" || bfstatus == "100000002" || bfstatus == "100000003") {
}


} // end of try

catch (tryerror) {
}

} // end of function
Рекомендации по теме
Комментарии
Автор

Execellent video ! Both part 1 and part 2. Very nice concise explanation. Thank you!!🙏

dkg