• Karthik Salesforce
  • NEWBIE
  • 30 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 11
    Replies

Hey ,

              i am new to salesforce, i am having problem for creating trigger for email . i have created support page  and given option to add notes and attachment (related list). if any one attach any file i want to notify user and me through email . as far as i know you cant create workflow for that, so please help me.

hi guys

can we create a lookup relation in user object...if yes how..if no..why

thanks

hey..

 

Am having a salesforce site, which have a login page, i created that login page , am not using standard salesforce provided login page,

This login page have Email and password field and a login button, the email will be the Email of contact and the password is also a field of Contact. 

 

When am using "site.login( username, password , startURL)" its showing error on page that "Your login attempt has failed. Make sure the username and password are correct."

 

But when i used a normal redirect to the new page its working fine.

 

Can anybody tell mw what is the problem with this thing?

 

 

Hi,

I want to create a CUSTOM clone button which will clone the record in edit mode and user want can change some value and save the record.Please give your knowledge here

  • October 18, 2013
  • Like
  • 0

Hi,

 

 Im using dupecatcher to avoid duplicate leads. I have issues in lead page there are three email field ie
Email1, Email2, Email3. I have entered 'test@gmail.com' in Email1 field in first lead. If I enter same email id in Email2  field in second lead alert is not throwing. Dupecatcher will only throw exception if i enter email id in corresponding field ie Email1 field.I checked with dupecatcher support team ,this was their reply
If the Filter checks Leads, then it’s not possible to cross match rules.
The only way to cross match rules in DupeCatcher is
if you have a multi-object filter (Lead against Contact or Account).
Hence it is not possibel through Dupe catcher .Is there any other way to solve this issue

 

Thanks

  • September 10, 2013
  • Like
  • 0

Hi,

 

We are adding tabs to our Account, Contact, Lead and Opportunities pages. We have already added custom pages and used the Apex code to create the tabs.

 

However, the problem we are having is when we are trying to add "Activity History", "Open Activities" or any other objects to our custom tabbed page.

 

The error we get looks like this,

 

 
'activityhistory' is not a valid child relationship name for entity Lead 

 

Here is the code that we use to create tabs and add "Activity History",

 

 

 

      <apex:tab label="Lead Detail" name="LeadDetails" id="tabdetails" styleclass="AcctListStyle">
             <apex:detail relatedList="false" title="true"/>
             
             <apex:relatedList subject="{!lead}" list="activityhistory" />             
      </apex:tab>

 

 

If you could please post a step by step process on how to get this resolved, thanks in advance!

 

  • September 05, 2013
  • Like
  • 0

Hey ,

              i am new to salesforce, i am having problem for creating trigger for email . i have created support page  and given option to add notes and attachment (related list). if any one attach any file i want to notify user and me through email . as far as i know you cant create workflow for that, so please help me.

I need to write a test class for my code before Salesforce will allow us to deploy it.

 

I'm a complete newbie and would greatly appreciate your help.

 

The class is as follows (please also let me know if you can see any basic errors):

 

public with sharing class CreatecontractonOppstageclosewon {
{
Set<Id> accId = new Set<Id>();
List<Opportunity> opplist = new List<Opportunity>();
List<contract> conrtlist = new List<contract>();
for(Opportunity opp : Trigger.new){
if(opp.StageName == 'Closed Won'){
Contract con = new Contract();
if(opp.AccountId != NULL){
con .AccountId = opp.AccountId;
}
con .Status = 'Draft';
con .StartDate = System.Today();
con .ContractTerm = opp.Length_of_project_months__c;
con.X2_RESEARCH_LPA__c = opp.X2_RESEARCH_LPA__c
con.X3_RESEARCH_site_history__c) - opp.X3_RESEARCH_site_history__c)
con.X4_RESEARCH_likely_issues__c = opp.X4_RESEARCH_likely_issues__c
con.X5_RESEARCH_Stakeholders__c - opp.X5_RESEARCH_Stakeholders__c
con.X6_RESEARCH_company_other_projects__c = opp.X6_RESEARCH_company_other_projects__c
con.Client_Code__c = opp.Client_Code__c
con.Council__c = opp.Council__c
con.Date_for_1st_Public_Exhibition__c = opp.Date_for_1st_Public_Exhibition__c
con.Date_for_2nd_Public_Exhibition__c = opp.Date_for_2nd_Public_Exhibition__c
con.Date_to_Call__c = opp.Date_to_Call__c
con.Date_for_Submission__c = opp.Date_for_Submission__c
con.Details_of_Lead__c = opp.Details_of_Lead__c
con.First_Meeting_Report__c = opp.First_Meeting_Report__c
con.IPA_Pitch_Member_1__c = opp.IPA_Pitch_Member_1__c
con.IPA_Pitch_Member_2__c = opp.IPA_Pitch_Member_2__c
con.IPA_Pitch_Member_3__c = opp.IPA_Pitch_Member_3__c
con.Indigo_Email__c = opp.Indigo_Email__c
con.Planning_Committee_Date_Time__c = opp.Planning_Committee_Date_Time__c
con.Previous_contact__c = opp.Previous_contact__c
con.Referersemail__c = opp.Referersemail__c
con.Region__c = opp.Region__c
con.Relevant_Work__c = opp.Relevant_Work__c
con.Sales_Notes__c = opp.Sales_Notes__c
con.Sector__c = opp.Sector__c
con.Is_there_a_URL_where_you_found_this_lead__c = opp.Is_there_a_URL_where_you_found_this_lead__c
conrtlist .add(con );
}
}
if(conrtlist.size() > 0){
insert conrtlist ;
}
}
}

 

And the trigger is as follows:

 

trigger CreatecontractonOppstageclosewon on Opportunity (after insert, after update) {

}

 

Please, please help.  Essentially, what this will do is when we get to the Opportunity Closed/Won stage in Opportunities, a Contract will automatically be created with our custom fields fully copied over.  I know lots of other people wish they could do this, will share anything you give me and what we have created already with the world.

 

Best regards,

 

Alex.

 

 

Hi All,

 

This is with respect to displaying the multi currency feature in salesforce.

Just wanted to know if it is possible to reflect the exchange rate on a particular record.

E.g. i create an opportunity in USD, and my default currency is EUR.

So the user sees Amount as 500 USD (380 EUR) (exchange rate 1USD = 0.76 EUR).

As also,link it to dated currency so as to reflect current rate.

Hope i was clear in specifying my problem.

 

Kindly advice.

 

Many thanks in advance.

 

Regards,

Anidev

 

 

  • September 02, 2013
  • Like
  • 0