Posts

Showing posts from January, 2024

Calculated field and Rollup field in Dynamics 365

 Calculated field and Rollup field in Dynamics 365 Calculated Field     Roll Up Field     Data is calculated as soon as form is loaded    The rollups are calculated by scheduled system jobs that run asynchronously in the background.    calculated fields let you automate manual calculations used in your business processes.     A rollup field contains an aggregate value computed over the records related to a specified record    The calculated fields comprise of calculations that use the fields from the current entity or related parent entities.    The roll up fields comprise of Aggregation that use the fields from the current entity or related child entities.    Expression support is available on the current entity and the related parent entity fields in the Condition sections and the Action sections.    Wide selection of aggregate functions. You can aggregate data by using the following functions: SUM, COUNT, MIN, MAX and AVG.    A seamless integration of the calculated fields wit

JavaScript SET and GET for different fields in Dynamics 365 CRM

Image
JavaScript SET and GET for different fields in Dynamics 365 CRM: -   When event triggers then it passes “ execution context ” as the first parameter to the JavaScript func tion .   We can enable and disable this by clicking on the checkbox for Pass execution context as the first parameter.     Firstly, we need to create a form context from execution context.   Below JavaScript code will do that,     After creating the “ formContext ” we can get the form fields data from it.   Single Line of Text: -   GET method: -     SET method: -         Two Option set: -   GET method: -     SET method: -       We should use values as “true” or “false” for two option set.     Option set: -   To get option set value , return type is number       To get option set Text , return type is strin g       getOptions () method will return an Array of Option Objects with “ text ” and “ value ” as k eys.         Lookup field: -   Lookup data is an array of object, which contains keys as “id ”,