function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Asad Mahmood 6Asad Mahmood 6 

Add custom component in the account page?

Hi guys,

I am new to salesforce and am trying to develop a custom component (LWC) which will talk to my external api (in .NET) and display the data (within salesforce). 

I need to display/embed this custom LWC in the account record page but i'm running out of google and I'd really appreciate if someone can guide or provide hints.


[my custom component]

or it can be like twitter component under news tab?

My development setting:

Salesforce Developer account
Sri Arumilli 3Sri Arumilli 3
hi Asad,

It looks like our team of experts can help you resolve this ticket.
We have Salesforce global helpdesk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our helpdesk. Trust me it is a support service that we are offering for free!


Jarvis SFDC team
Sachin HoodaSachin Hooda
Hi Asad,
I'm really sorry. I won't be able to tell it here in detail with any example. But I'll guide you with the basic idea in order to achieve the functionality:
1. Creating a REST API that will be exposed to .NET app. Refer here:( (" target="_blank))
2. Pass the data from your .NET app to this external class.
3. So the received JSON from the external app has to be parsed to Apex Objects. Refer here:( (" target="_blank))
4. After all this, you can pass the data to your custom lightning component & place it wherever you want. Refer here (" target="_blank) for more.

I hope it helps you.
In Case you've any doubt, feel free to post them.
Asad Mahmood 6Asad Mahmood 6
thanks @Sri Arumilli 3, i will get in touch with your support team.

@Sachin thanks for useful information and with your help i have managed to add my lwc component to accounts page in lightning experience. How do i achieve the same thing in Salesforce Classic?
Sachin HoodaSachin Hooda
Hi Asad,
You can achieve that using a Visual Force Page.
So the idea would be to create a Visual force page & calling the lightning component you created from it. 
Since a VisualForce page can be added to account record page in the Salesforce Classic version(BUT IT USES A  standard account controller) .
So on the VF Page,
<apex:page standardController="Account" extensions="yourcustomclass">
1. Please refer to this link ( to know how you can call your lightning component from VF Page.
2. And this is how you can add it on the account record page in the classic version.
>> From the object management settings for accounts, go to Page Layouts.
     Click Edit next to the Account Layout.
     Select Visualforce Pages in the left column of the user interface elements palette.
     You’ll notice your page appears here (because it uses the Accounts standard controller).
     Select VFPage name, and drag it to the Account Information panel.
   Click Save.

I hope it helps you.