Lightning

Get Loggedin User Details in LWC without Apex call

Getting user object fields value in Lightning web component without calling an Apex class.

While working on User Interface design, many times you need to display logged in user interface. Salesforce gives a way to get ID of logged in user directly, but all other fields are usually fetched by calling an apex class.

Continue reading “Get Loggedin User Details in LWC without Apex call”
Lightning

Create a JSON string in JavaScript

Sometimes we might need to create a custom JSON string in a JavaScript section. Custom JSON string means, it can have any field which is or is not in any sObjects. There are multiple ways to create JSON string.

Continue reading “Create a JSON string in JavaScript”