Shared variables in Dynamics 365 plugins are essentially global variables that are accessible across all plugin steps and instances. These variables can be used to store data that needs to be shared across different steps of the plugin or across different instances of the same plugin. Using shared variables in Dynamics 365 plugins provides several … Continue reading Dynamics 365 Shared Variables – Share data between Plugins
Tag: Javascript
Dynamics 365 Language Codes
List of supported languages and their LCIDs for Dynamics 365. Language CodeDescription (informative)BCP 47 Code1025Arabic - Saudi Arabiaar-SA1026Bulgarianbg-BG1027Catalanca-ES1028Chinese - Taiwanzh-TW1029Czechcs-CZ1030Danishda-DK1031German - Germanyde-DE1032Greekel-GR1033English - United Statesen-US1034Spanish - Spain (Traditional Sort)es-ES1035Finnishfi-FI1036French - Francefr-FR1037Hebrewhe-IL1038Hungarianhu-HU1039Icelandicis-IS1040Italian - Italyit-IT1041Japaneseja-JP1042Koreanko-KR1043Dutch - Netherlandsnl-NL1044Norwegian (Bokmål)nb-NO1045Polishpl-PL1046Portuguese - Brazilpt-BR1047Rhaeto-Romanicrm-CH1048Romanianro-RO1049Russianru-RU1050Croatianhr-HR1051Slovaksk-SK1052Albanian - Albaniasq-AL1053Swedishsv-SE1054Thaith-TH1055Turkishtr-TR1056Urdu - Pakistanur-PK1057Indonesianid-ID1058Ukrainianuk-UA1059Belarusianbe-BY1060Sloveniansl-SI1061Estonianet-EE1062Latvianlv-LV1063Lithuanianlt-LT1064Tajiktg-Cyrl-TJ1065Persianfa-IR1066Vietnamesevi-VN1067Armenian - Armeniahy-AM1068Azeri (Latin)az-Latn-AZ1069Basqueeu-ES1070Sorbianwen-DE1071F.Y.R.O. Macedonianmk-MK1072Sutust-ZA1073Tsongats-ZA1074Tswanatn-ZA1075Vendaven-ZA1076Xhosaxh-ZA1077Zuluzu-ZA1078Afrikaans - South Africaaf-ZA1079Georgianka-GE1080Faroesefo-FO1081Hindihi-IN1082Maltesemt-MT1083Samise-NO1084Gaelic (Scotland)gd-GB1085Yiddishyi1086Malay - Malaysiams-MY1087Kazakhkk-KZ1088Kyrgyz (Cyrillic)ky-KG1089Swahilisw-KE1090Turkmentk-TM1091Uzbek (Latin)uz-Latn-UZ1092Tatartt-RU1093Bengali (India)bn-IN1094Punjabipa-IN1095Gujaratigu-IN1096Oriyaor-IN1097Tamilta-IN1098Telugute-IN1099Kannadakn-IN1100Malayalamml-IN1101Assameseas-IN1102Marathimr-IN1103Sanskritsa-IN1104Mongolian … Continue reading Dynamics 365 Language Codes
Dynamics 365 – Retrieve Multiple Records with WebApi and JavaScript
The Xrm.WebApi is one of the important modules in Dynamics 365 that allows the CRM users to interact and perform operations with Dynamics 365 platform by sending and receiving data via web services. One of the most important function of Xrm.WebApi is retrieveMultipleRecords, which allows developers to retrieve a collection of records from Dynamics 365 … Continue reading Dynamics 365 – Retrieve Multiple Records with WebApi and JavaScript
Dynamics 365 – Hide/Disable/Edit Business Process Flow Fields using JavaScript
In Dynamics 365, Business Process Flow attributes are just like Form attributes. You can use most of the controls in the same way as you normally do for Form attributes. Let's look at the most common ones together. Get Business Process Flow attribute control using Javascript To get attributes Add "header_process" before schema name of … Continue reading Dynamics 365 – Hide/Disable/Edit Business Process Flow Fields using JavaScript
Dynamics 365 – Call Power Automate Flow from JavaScript
In this post I will show the steps to call Cloud(Power Automate) flow from Javascript. I will send a JSON request body to my flow and get a JSON response body back. We will do that in 3 simple steps. Let's start. Step 1 - Create a Power Automate Flow Go to https://make.powerautomate.com/ and choose … Continue reading Dynamics 365 – Call Power Automate Flow from JavaScript
Dynamics 365 – How to Show/Hide Sections and Form tabs
Just like attributes, tabs and sections are also controllers of the forms in Dynamics 365. You can apply same logic to show and hide those controls by using Javascript. For the tabs; you need to know unique name of the tab you are going to show/hide.For the sections, you need to know unique name and … Continue reading Dynamics 365 – How to Show/Hide Sections and Form tabs
Dynamics 365 – Different Ways of Showing Form Level Error Messages – setFormNotification | setIsValid
Form notifications are useful when you want to prevent the user saving the form if the form fields do not meet the conditions. Say you have 2 date fields called "Start Date" and "End Date". You want the records can only be saved if the "End Date" is bigger than the "Start Date". You have … Continue reading Dynamics 365 – Different Ways of Showing Form Level Error Messages – setFormNotification | setIsValid
Dynamics 365 – How to get and use formContext
The formContext is a part of executionContext and it replaces deprecated Xrm.Page starting from Version 9. Xrm.Page object was used to represent a form or an item on the form. With the latest version, the Xrm.Page object is deprecated, and you should use the getFormContext method of the passed in execution context object to return reference to the appropriate form or … Continue reading Dynamics 365 – How to get and use formContext
Dynamics 365 – How to Trigger OnChange Event of an Attribute
fireOnChange() function is used to trigger the registered onChange events of an attribute. It is also very useful when you update an attribute through Javascript Code and it onChange event doesn't trigger. When you update an attribute from Javascript code, its onChange event doesn't trigger. If you want it to be triggered, you have to … Continue reading Dynamics 365 – How to Trigger OnChange Event of an Attribute
Dynamics 365 Updating Readonly Field – setSubmitMode()
To update readonly fields with Javascript simply use setSubmitMode() after setValue() function. always: The data is always sent with a save. never: The data is never sent with a save. When this value is used, the column(s) in the form for this column cannot be edited. dirty: Default behavior. The data is sent with the … Continue reading Dynamics 365 Updating Readonly Field – setSubmitMode()