0

We have a Customer Community portal and the users that login to this community are assigned to the Customer Community plus license.

One of the requirements is to build a web to lead form that is accessible to the customer community plus user (via the portal).

How do I accomplish this given that Customer Community plus user does not have access to the Lead object ? Can I create a Lightning Component that will create a lead record ?

We use the Napili template.

0

You can create a VisualForce page that it's controller uses the without sharing keayword - this way all records would be available to you on the page.

I believe that also for a lightning component this would be OK - use a server side controller with the without sharing keayword.

  • You can't add a visualforce page to Community builder. It has to be a Lightning component or page – Anup Dec 14 '16 at 12:12
  • ok, so add a lightning component and on it's controller add the 'without sharing' keayword. – Itai Shmida Dec 14 '16 at 13:02

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.