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
sushmaiyer2@gmail.comsushmaiyer2@gmail.com 

Application Practice from App Exchange

Hi,

 

I am implementing SurveyForce App from Exchange.When i tried to create ViewShareSurveyComponent i am getting the following Error :-

 

 

Error: Compile Error: Invalid external string name: email_link_w_contact_merge at line 66 column 64

 

Part of the Code in which i am getting Error :-

 

public viewShareSurveyComponentController()
{
urlType = new List<SelectOption>();
urlType.add(new SelectOption('Email Link w/ Contact Merge',System.Label.LABS_SF_Email_Link_w_Contact_Merge));
urlType.add(new SelectOption('Email Link w/ Contact & Case Merge',System.Label.LABS_SF_Email_Link_w_Contact_Case_Merge));
urlType.add(new SelectOption('Email Link, Anonymous',System.Label.LABS_SF_Email_Link_Anonymous));
urlType.add(new SelectOption('Chatter',System.Label.LABS_SF_Chatter));
selectedURLType = 'Chatter';

setupPOD();
setupSitesPicklist();
siteInfo = Site.getDomain();

init();
}

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox
Those custom labels must already exist in Setup > Create > Custom Labels. You should make sure that those labels already exist, and that the name of the labels match the values you're trying to use.

All Answers

sfdcfoxsfdcfox
Those custom labels must already exist in Setup > Create > Custom Labels. You should make sure that those labels already exist, and that the name of the labels match the values you're trying to use.
This was selected as the best answer
sushmaiyer2@gmail.comsushmaiyer2@gmail.com

Hi,

      Thanks So much,created Custom Labels and now the Issue is solved...:)