Salesforce Interview Questions with Answers Part 42

1. How to include external javascript file in lightning component?

You can use a RequireJS component or Loader component to load external JS or CSS files.

2. How to debug lightning component controllers in Salesforce?

3. Is it possible to use other frameworks like AngularJs or KendoUI with lightning components ?


4. Is Lightning an MVC framework ?

No. It’s a component-based framework.

5. Which parts of Lightning Components are server-side and which are client-side ?

Lightning Components use JavaScript on the client side and Apex on the server side.

6. What is the use of the aura:method tag in Lightning ?

We can Use < aura:method > to define a method as part of a component’s API. This enables us to directly call a method in a component’s client-side controller instead of firing and handling a component event. Using simplifies the code needed for a parent component to call a method on a child component that it contains.

7. Can we Include One component to another ?

Yes, we can Include one lightning component to another lightning component.

8. How can we  deploy components to production org ?

We can deploy component by using managed packages, IDE, Migration Tool or Change Sets.

9. Difference between REST API and SOAP API?

Varies on records that can be handled. Generally if we want to access less number of records we go for REST API.

10. What is the maximum allowed time limit while making a callout to external service in apex?

Maximum of 120 second time limit is enforced while making callout to external service.

11. What is the default timeout period while calling webservice from Apex.

10 sec.

12. Community User Visibility in Salesforce

13. What is the use of Sharing Set in Salesforce Community?


No comments:

Post a Comment