Search Here

Salesforce Visualforce

 

Q1 - Different Force.com User Interface Technologies?

  • Page builder: In page builder UI is generated automatically and has limited control over the look and feel.
  • Visualforce: InVisualforce, the user interface is generated by the developer and provides full control over User Interface. Visualforce provides pixel level control over UI.

Q2 - What is Visualforce?

Visualforce is a markup language (tag-based language ) similar to HTML & XML languages. Visualforce consists of 2 primary elements Visualfore markup and Visualforce Controller.

Q3 - Where can a Visualforce page be used?

Salesforce developers can create Visualforce pages to override standard buttons and tabs, to define custom tabs, to embed components in detail page layout, to create the dashboard components and so on.

Q4 - Benefits of Visualforce?

Visualforce has user-friendly development, can integrate with other web-based user interface technologies, it has model view controller style development and many more.

Q5 - How to write a comment on the Visualforce page?

To comment on VF page use <! this is a comment>

Q6 - Different Visualforce controller explain them in brief?

Visualforce controllers are three type:

  • Standard controllers: Standard controller are available for all API entities and objects. They provide access to standard Salesforce data and behavior.
  • Custom controllers: Custom controllers are coded to create custom behavior / non-standard data sets. They can be used to create wizards and leverage callouts.
  • Controller extensions: It adds custom behavior and standard behavior. It is the combination of both standard controller & custom controller.

Q7 - Explain expressions & data binding?

In Visualforce, Dynamic content can be added using the {!} expression. This expression gets evaluated at runtime. Where VF uses the expression syntax to bind components to Salesforce data and actions in the page controller.

Q8 - What are the global variables?

Global variables are represented using $ symbol, these variables can be accessed across all the Visualforce page

  • Example: <h1>{!$user.firstname}

Q9 - Explain versioning?

Visualforce pages and VF components are versioned, previous versions are available even after new implementation are introduced.

Q10 - Explain Visualforce namespace?

In Visulforce, standard tags begin with word apex, where custom tags begin with the letter C. Salesforce user can register custom namespace instead of letter C.

Example: Standard tag : <apex:page>, Custom tag: <C:customtag>.

Q11 - How to enable Visualforce Development mode.

To enable development mode in salesforce navigate to Setup | My personal Info | Personal Information | Edit | enable development mode | Save.

What is ViewState in Visualforce?

  View state holds the state/size of the visual force page that includes the components, field values, and controller state. This is important in the light that salesforce provides only a standard size of 135kb for any individual page.

Which api used to design visual force page?

rest api - Creating Visualforce Page Using Tooling API - Salesforce Stack Exchange.

What is the difference between actionSupport and actionFunction?

1. Action function can call the controller method from java script. 
2. Action support adds AJAX support to another visualforce component and then call the controller method.

What is the actionRegion?

Another most important component that defines an area of the VF page. This area determines those components which we want to process by the Force.com server after generating an AJAX request.

What is the difference between insert and include?

NCLUDE (INSERT command) INSERT is a newer, more powerful and flexible alternative to INCLUDE . Files included with INCLUDE must always adhere to batch syntax rules, and command processing stops when the first error in an included file is encountered.

How do you use a static resource in VF page?

uppose there is a single file like any single image or standalone css file, that you need to refer in your VF page, then you can directly use the “$Resource. resourceName” to refer the static resource where '$Resource' is a global variable to use any static resource within visualforce page.

What is a remote action?

 Remote action function in salesforce allows user to access any method from any class through javasrcipt methods, and get the result as a javascript object for further manipulation.

how do you use a static resource in vf page in salesforce ?

you can directly use the “$Resource. resourceName” to refer the static resource where '$Resource' is a global variable to use any static resource within visualforce page.

What is the difference between related List, enhanced List, detail?

related List -->  Technically, items in a related list are records with a lookup or master-detail relationship to another record. More practically speaking, a related list is just a section of a record detail page that lists all the items related to that record.

enhanced List-->  The Enhanced List component allows users to display a list of objects with the ability to add or edit records quickly within the list. All custom objects and some standard objects are supported. Enhanced List is available only in Lightning Experience.

detail --->  Detail pages show you details about a record, for example, details about a particular account. Let's navigate to the Accounts home page and click an account name. The account details you see depend on how your administrator configured the page layout and your user permissions for that account.

What is the difference between controller and extension?

Although the extension class executes in system mode, the standard controller executes in user mode. As with custom controllers, you can specify whether a user can execute methods in a controller extension based on the user's profile.


What is Ajax? Have you used it? if so tell the scenario?

AJAX helps update the log-in system in scenarios where a user wants to access a certain page and can log in directly without going to the original login page. As the user logs in, AJAX will send a request to the server and the page will get updated as required by the user.

What is Jquery? Where have you used?

jQuery is a lightweight, "write less, do more", JavaScript library. The purpose of jQuery is to make it much easier to use JavaScript on your website. jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code.


What is S-Controls?

The custom s-control library is a place where you can store and upload content for use in many areas within Salesforce such as, custom links, Web tabs, custom buttons, and dashboards.

What is the use of Static Resource in Visualforce?

Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as . zip and . jar files), images, style sheets, JavaScript, and other files. Static resources can be used only within your Salesforce org, so you can't host content here for other apps or websites.

Can I pass parameters from VF page to apex method?

yes, we can pass values from VF page to APEX controller. The next question arises how can we actually achieve this? This is possible with the help of a tag called <apex:param>.

How do you refer to current page id?

If you want to refer Id parameter. you can use {!$ currentpage.parameters.id} or from controller you can apexpages. currentpage().

Tell me something $Action?

A global merge field type to use when referencing standard Salesforce actions such as displaying the Accounts tab home page, creating accounts, editing accounts, and deleting accounts.

How do you embed Google map in Visualforce?

Go to Account Layout and create Section for Google Map and add “Google Map” visual force page.

How do you pass the parameters from page to page?

You can put a value in the url to redirect to the second page. So in the second page you can get the values in the url. If you use a constructor you can use Apex. currentPage().

What are custom components?

Custom Components are a type of component that are created from a script and include all of the resources needed in order for the script to work. This allows Lens Creators to bundle together script and resources in a convenient package.

How do you make a VF page available for Salesforce1?

enter Visualforce Pages in the Quick Find box, then select Visualforce Pages. Click New. In the Name text box, enter the text that should appear in the URL as the page name. This name can contain only underscores and alphanumeric characters, and must be unique in your org.

How to use Salesforce connection?

Salesforce Connect uses a protocol-specific adapter to connect to an external system and access its data. When you define an external data source in your organization, you specify the adapter in the Type field.


What is the use of Salesforce Connect?

Salesforce Connect enables you to set up a lookup relationship between the customer object (parent) and the external object (child) for orders. Then you can set up the page layouts for the parent object to include a related list that displays child records.


What is difference between Salesforce Connect and Lightning Connect?

Lightning Connect is a feature of Salesforce Connect that specifically allows users to access data from external sources and compare it side-by-side with Salesforce data.

What is a Salesforce Connect License? 

The price of Salesforce Connect depends on the data source and starts with a subscription of USD 4000/month. It is available for both the Enterprise and Unlimited editions of Salesforce.

Is Salesforce Connect free?

No, Salesforce Connect does not offer a free plan. Learn more about Salesforce Connect pricing.

What is OData in Salesforce?

OData is an open standard that allows object definitions to be published, queried and updated. The OData specification and metadata describes object relationships, simple and complex types, and a query language.

 What is the difference between Salesforce Connect and MuleSoft?

MuleSoft is an integration platform that allows different applications and systems to communicate with each other, while Salesforce is a customer relationship management (CRM) platform that helps businesses manage their customer data and interactions.

Which is better MuleSoft or Salesforce?

Salesforce provides a set of rest APIs which can be used to integrate two different orgs. Salesforce REST API Also, you can find many blogs on how to use salesforce APIs.

Why MuleSoft is used in Salesforce?

MuleSoft will fetch data from a third-party system, transform x, y, z data elements, convert the data to JSON, and insert/upsert it into Salesforce objects. Salesforce will automate further data processing on the data saved by MuleSoft.

Can we merge 2 users in Salesforce?

When a user leaves your company or changes roles, you can merge their accounts with another user's to maintain that data in your records. You can reorganize and streamline data for ease of access in case two departments in your company merge.

Can we merge two cases in Salesforce?

One popular automation tool is the Salesforce Case Merge Wizard. This tool allows you to merge cases quickly and easily, without having to manually select each case.

Can we merge two Salesforce orgs?

Salesforce consolidation refers to the merging of several Salesforce instances into one unified Salesforce organization. 

How do I transfer data in Salesforce?

Import Data with the Data Import Wizard
  1. Prepare your data for import and create an import file. ...
  2. Start the wizard. ...
  3. Choose the data that you want to import. ...
  4. Map your data fields to Salesforce data fields. ...
  5. Review and start your import. ...
  6. Check import status.


What is Salesforce org merge?

An org merge is when two or more source Salesforce orgs are merged into a single destination org. 

How do I link two accounts in Salesforce?

Merge Accounts in Salesforce Classic
  1. Go to accounts -> Tools.
  2. Click on Merge accounts.
  3. Enter the search string to find duplicate accounts.
  4. Select up to three accounts that you want to merge and click “Next.”
  5. Select one master record and the fields that you wish to retain from each record.
  6. Click “Merge,” and it's done!

How do I manually share in Salesforce?

Manually share a record with another User or a Partner User
  1. Click Sharing on the record you want to share.
  2. Click Add.
  3. From the drop-down list, select the type of group, user, role, or territory to add.
  4. Choose the specific groups, users, roles, or territories requiring access by adding the names to the New Sharing list.

What is the difference between single org and multiple org in Salesforce?

Multi-org Salesforce architecture can empower autonomy and flexibility, while single-org allows process consistency and centralized data.

     What is org migration in Salesforce?

An org migration is a set of processes and technologies that move a production org from a source Salesforce instance to a target Salesforce instance. The org move is orchestrated by copying and/or regenerating customer data and metadata.

Can a person have 2 profiles in Salesforce?

Every user must be assigned a profile when they're created on the platform — and there can only be one profile per user. Essentially, a user's profile is the baseline authorization of access to the Org.

How many batches can run in Salesforce?

If the start method of the batch class returns a QueryLocator, the optional scope parameter value of executeBatch can be up to 2,000. If set to a higher value, Salesforce breaks the records into smaller batches of up to 2,000 records.

How many users can a Salesforce org have?

Salesforce Essentials: Ten users maximum. Salesforce Professional: Depending on the term, up to 5 or infinite users. Salesforce Enterprise: Depending on the contract, often 5 to infinite users. Salesforce Unlimited: Depending on the contract, often between 5 to unlimited users.

What is SFDX plugins?

The SFDX plugins allow developers and devops to automate tasks which are related to Duplicate Check Licenses as well as Duplicate Check configurations.

What is SFDC and SFDX?

SFDC is the name of the Salesforce CRM software, while SFDX is a set of tools and processes designed to make it easier for developers to build and manage applications on the Salesforce platform.

What is the use of SFDX CLI?

The Salesforce CLI commands help scratch org while also supporting statements for the management and creation of the org. The SFDX platform helps in controlling the process of importing and exporting data.

What is SFDX full form?

Salesforce Developer Experience ('SFDX' or just 'DX') is a set of tools designed to improve the traditional developer's experience of building on the platform.

What is CLI in Salesforce?

The Salesforce CLI is a powerful command line interface that simplifies development and build automation when working with your Salesforce org. 

What is full form of SFDC?

SFDC stands for SalesForceDotCom, or you can also say Salesforce.com. 

What are three advantages of using the SFDX?

  • mproves team development and collaboration.
  • Facilitates automated testing and continuous integration.
  • Makes the release cycle more efficient and agile.
  • Create an Org, then transfer all application source and metadata from GitHub into it.
  • A local development work-space is setup for the developer.

What is SFDC tool?

Salesforce is a CRM platform and also a centralized platform for managing customer accounts, sales leads, activities, customer support cases, and more. Users can access Salesforce through a web browser, mobile app, or desktop application.

What is CI CD in Salesforce?

Continuous integration, the CI part of CI/CD, is the practice of frequently merging development work back into the main branch of Git, your version control system (VCS). 

What is Dev Hub in Salesforce?

Dev Hub is the main Salesforce Org that you and your team use to create, delete and manage your Salesforce Scratch Orgs.

What are scratch orgs?

The scratch org is a source-driven and disposable deployment of Salesforce code and metadata, made for developers and automation (CI/CD). 




Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.