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
prashant1985prashant1985 

I want display LinkedIn connections for the matching business in salesforce.

hi,

 

I want display LinkedIn connections for the matching business in salesforce.

when user select one company popup is open in that popup i want to display linkedin profile of that business.
so give me solution.

 

Thanks

prashant

Best Answer chosen by Admin (Salesforce Developers) 
Chamil MadusankaChamil Madusanka

Buddy I told you this is an example. Company__c is a custom object. You need to apply this to your scenario. Create a custom field that you want to relate the linkedin. In my scenario, there is a custom field called linkedinID__c in Company__c custom object. I store the company llinkedin id in linkedinID__c.

 

FYI

__c indicated the custom object

 

If you got the answer from this post, Please hit the Kudos button & mark the answer as solution, It might help others running to into similar problem in future.

All Answers

Chamil MadusankaChamil Madusanka

I have one of example for your requirement.

 

Try this and apply to your scenario.

 

<apex:page standardController="Company__c" extensions="CompanyLinkedInExtension">    
<script src="https://platform.linkedin.com/in.js" type="text/javascript"></script>

<apex:outputPanel rendered="{!linkedinID != ''}">
    <div style="text-align: center">
        <script 
            type="IN/CompanyInsider" 
            data-modules="innetwork,newhires,jobchanges" 
            data-id="{!linkedinID}">
        </script>
    </div>
</apex:outputPanel>



</apex:page>

 

public with sharing class CompanyLinkedInExtension 
{
    public Company__c comapany{get;set;}
    public string linkedinID{get;set;}

    //Constructor with getting LinkedIn URL of particular company
    public CompanyLinkedInExtension(ApexPages.StandardController controller) 
    {
        this.comapany= (Company__c)controller.getrecord();
        linkedinID = [Select linkedinID__c From Company__c where Id =: comapany.Id].linkedinID__c; 
    }

}

 If you got the answer from this post, Please hit the Kudos button & mark the answer as solution, It might help others running to into similar problem in future.

prashant1985prashant1985
thanks for your reply.
but this code gives error, "Company__c does not exist"

is Company__c is standard controller?
Chamil MadusankaChamil Madusanka

Buddy I told you this is an example. Company__c is a custom object. You need to apply this to your scenario. Create a custom field that you want to relate the linkedin. In my scenario, there is a custom field called linkedinID__c in Company__c custom object. I store the company llinkedin id in linkedinID__c.

 

FYI

__c indicated the custom object

 

If you got the answer from this post, Please hit the Kudos button & mark the answer as solution, It might help others running to into similar problem in future.

This was selected as the best answer
prashant1985prashant1985
thanks for solution
Chamil MadusankaChamil Madusanka

If you got the answer from this post, Please hit the Kudos button

SharathChandraSharathChandra
Hi Chamil, I need the Linkedin id for each company

For that i need to send request and get the response id(linked in id).

Can you share me that code which does the authorization and send me the linked in id


Thank You!!!