+ Start a Discussion
Naveen kumar 812Naveen kumar 812 

Which API used to design visual force page?

Can any one help?
NagendraNagendra (Salesforce Developers) 
Hi Naveen,

Visualforce is a framework which is used to design the UI side in Salesforce and am not sure what exactly you mean when you say "which API used in visualforce pages" Could you please elaborate on that.

Visualforce design, if mean user interface, doesn't use any API. You can use JQuery, Bootstrap for designing purpose, or you can write your own CSS for the same. Majority of the standard HTML styling is available in Visualforce so you can make use of that.

Basically, the APIs can be broadly classified in 2 categories - 

1. APIs that interact with Salesforce data i.e. the records within various objects like Account, Contact or Custom Objects. SOAP and REST API fall into this category. Visual Force is native to Salesforce platform and thus doesn't require either of these APIs to interact with underlying platform or data.
2. APIs that interact with Salesforce metadata i.e. the structure or definition of objects, page layouts etc. including VF pages. Metadata API falls into this category and can be used to retrieve, deploy, create, update or delete customization information for any organization.

You can interact with the structure of a VF page (I am assuming this is what you mean by design) using the Metadata API.

You should not use API in your VF Page but yes you can use API in your Controller which are a link to your page
because API first means building a robust API for a feature before focusing on designing its UI.
You can follow this link to know about API in Salesforce:

https://trailhead.salesforce.com/en/content/learn/modules/api_basics/api_basics_overview

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks,
Nagendra
Deepali KulshresthaDeepali Kulshrestha
Hi Naveen,

You should not use API in your VF Page but yes you can use API in your Controller which are a link to your page
because API first means building a robust API for a feature before focusing on designing its UI.
You can follow this link to know about API in Salesforce:

https://trailhead.salesforce.com/en/content/learn/modules/api_basics/api_basics_overview

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
 
Ajay K DubediAjay K Dubedi
Hi Naveen,

Visualforce design, if mean user interface, doesnt use any API. You can use JQuery, Bootstrap for designing purpose, or you can write your own css for the same. Majority of the standard HTML styling is available in Visualforce so you can make use of that.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi