3

Is it possible to open out of the box "Salesforce Lightning Enhanced Notes" editor on click of a link / button so that we have more control over our lightning UI screen.

If we see on below screenshot, when user clicks on "Notes" from bottom utility bar, we want to launch "Salesforce Lightning Enhanced Notes" editor.

enter image description here

1

sure, you can it can be like this:

({
    openFirstUtility : function(component, event, helper) {
        var utilityAPI = component.find("utilitybar");
        utilityAPI.getAllUtilityInfo().then(function(response) {
            var myUtilityInfo = response[0];
            utilityAPI.openUtility({
                utilityId: myUtilityInfo.id
            });
       })
        .catch(function(error) {
            console.log(error);
        });
    }
})

more details: https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_openUtility.htm https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_getUtilityInfo.htm

Hope this helps!!

1

I have a similar requirement and I tried the solution suggested by Abhijith. I was able to open Note utility, but not a particular note from the list of notes. Wondering if there is a way to actually open a particular note or blank note editor instead of the whole Note utility.

  • i am also looking for solution to open a Note through the Enhanced Note popup window. have you found the answer? – pnoytechie Mar 21 '20 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.