Posts

Showing posts from June, 2022

CALL JAVASCRIPT FUNCTION ON SUBGRID REFRESH IN DYNAMICS 365

Image
In this post, we will see an example on how to call JavaScript function when a subgrid is refreshed in Dynamics 365 . Sometimes, you have a scenario where you need to call a JavaScript function when a sub-grid refresh event has occurred in the form. The subgrid refresh event might happen if a record is added to the subgrid, deleted from the subgrid, or the refresh button of the subgrid is clicked. In order to trigger the function, you have to register a function on the OnLoad event of the form (in the below exemple manageFormBasedOnRecordsInSubgrid ) which in turns, will call the OnLoad event of the subgrid After doing this, each time you add/delete record from sub-grid, the function functionTriggerredgetOnSubgridRefresh() will be triggered. Below, is a sample code for the function that will

TURNING OFF SEND ERROR REPORT IN DYNAMICS 365

Image
In Dynamics 365, when errors occur in the product, users have the option to send error reports to Microsoft about the error. The error report will contain data that can help Microsoft fix these problems and improve the products and services. A pop-up will be displayed to the user that will be able to select the needed option In this post, we will see how to turn off sending error reports to Microsoft . In order to change the error reporting preferences, you can follow the below steps Open the Power Platform admin center and go to Environments In the list of Environments, select the specific environment and open the Settings In the Settings page, under the Product settings section, click Privacy + Security

CREATE DYNAMICS 365 ENTITY IN SDK

Image
In this post, we will learn how to create a Dynamics 365 custom entity in SDK and how to set some of its properties. The below function can be used to create a custom entity public void CreateEntity() { CreateEntityRequest createrequest = new CreateEntityRequest { Entity = new EntityMetadata { SchemaName = "cak_CustomEntity", DisplayName = new Label("Custom Entity", 1033), DisplayCollectionName = new Label("Custom Entities", 1033), Description = new Label("Custom entity created using SDK", 1033), OwnershipType = OwnershipTypes.UserOwned, IsActivity = false, IsBusinessProcessEnabled = true,