I am novice to salesforce, i have following usecase in my project developed using salesforce with vlocity.

1, restrict community users accessing URLs to community pages based on a flag (flag is coming from external API).

2, Hide or disable html element based on the flag.

Basically how to handle this kind of authorization in salesforce community (having number of lighting components and vlocity components)?


  • 1
    Welcome to SFSE, please take some time to read How to Ask and take the tour. Once you have done so, make sure you include details of your problem (screenshots, steps to reproduce etc.) alongside with any errors you get when applied your solution. – Eduard Aug 23 '18 at 14:45
  • 3
    Have a look at Audience Targeting developer.salesforce.com/docs/… – Folkert Aug 23 '18 at 14:52

The method depends on the technology you're using. Here are 3 articles you can look at to determine how to get information from the URL into your code.

  1. Get URL Parameter of lightning component
  2. Get URL Parameter in Visualforce
  3. get URL parameter Apex

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.