• Adnan Sunelwala
  • NEWBIE
  • 10 Points
  • Member since 2014
  • CRM Consultant
  • Cognizant Technologies Solutions

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies



I have a requirement to invoke an existing VF page (displaying list of records using StandardSetController) from my lightning component. In my JS i have constructed the URL as suggested here (https://community.skuid.com/skuid/topics/passing-selected-id-to-apex-class-using-standard-set-controller?topic-reply-list%5Bsettings%5D%5Bfilter_by%5D=all&topic-reply-list%5Bsettings%5D%5Bpage%5D=1#reply_20531756) but the VF is only displaying the record corresponding to 1st Id passed in the URL.

JS code snippet:
var el = this.template.querySelector('lightning-datatable');
var selected = el.getSelectedRows();
var arrayOfIds = [];
for(let request of selected){
     arrayOfIdsIds.push(request.Id);
}

this[NavigationMixin.GenerateUrl](
{
type: 'standard__webPage',
attributes:
{
url: '/apex/VisualForcePage?ids='+ arrayOfIds.join('&ids=')
}
}).then(generatedUrl =>
{
window.open(generatedUrl);

});


URL generated when it navigates to VF page is 

https://sample--devas.lightning.force.com/lightning/webpage/%2Fapex%2FVisualForcePage%3Fids%3Da1D3L0000000OE4UAM%26ids%3Da1D3L0000000DsRUAU

Is there something wrong with this url?
hi,

I am new to Salesforce and trying to build app 'Build a Conference Management App'. I had written a simple class to send email in my previous trailhead modules and was able to receive email then but for some reason not receiving any email now.

Could anyone please help track the issue?

public with sharing class  EmailManager {
    //Public Method
        public static void sendMail(String address, String subject, String body) {
        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
        String[] toAddresses = new String[] {address};         
        mail.setToAddresses(toAddresses);
        mail.setSubject(subject);
        mail.setPlainTextBody(body);
       Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
    }
  }

I am trying to test above method by writing below code using 'Execute Anonymous Window' 

String address = 'adnansun2002@yahoo.co.in';
String subject = 'Speaker Confirmation';
String body = 'Thank you for speaking at the conference.';
EmailManager.sendMail(address, subject, body);


 
Hi,

I need to create a lightning community using Napili template. The entire content of the community is categorized into 5 menu items which is the first level of menu section. Under each menu item, there will be few sub menu items like a parent - child. For each navigation path that lands at a child, should redirect to an url of the company. I tried all the options possible with community builder, but could not configure the way to set up second and third level of menu items. Can someone guide me how to achieve this?

Please let me know if anything is not clear.

Appreciate your help!!!

Thanks,
Dedeepya.
hi,

I am new to Salesforce and trying to build app 'Build a Conference Management App'. I had written a simple class to send email in my previous trailhead modules and was able to receive email then but for some reason not receiving any email now.

Could anyone please help track the issue?

public with sharing class  EmailManager {
    //Public Method
        public static void sendMail(String address, String subject, String body) {
        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
        String[] toAddresses = new String[] {address};         
        mail.setToAddresses(toAddresses);
        mail.setSubject(subject);
        mail.setPlainTextBody(body);
       Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
    }
  }

I am trying to test above method by writing below code using 'Execute Anonymous Window' 

String address = 'adnansun2002@yahoo.co.in';
String subject = 'Speaker Confirmation';
String body = 'Thank you for speaking at the conference.';
EmailManager.sendMail(address, subject, body);