Showing posts with label SQL Server. Show all posts
Showing posts with label SQL Server. Show all posts

Monday, 11 August 2025

Convert Sql select statement result into JSON formate .

Formats the query result as JSON using the 'FOR JSON PATH' mode, where you have full control over the JSON structure by using column aliases.

SQL Query:-

SELECT 

    FirstName,

    LastName

FOR JSON PATH, WITHOUT_ARRAY_WRAPPER

JSON Output- 

{"FirstName":"Ajit","LastName":"Agarwal"}


Dynamics 365 Ribbon Button JavaScript customization function- Displays a popup message when the button is clicked.

 function RequestRibbonCustomisation(primaryControl) { var formContext = primaryControl; alert("Coming soon! Work in Progress....