• sessu
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 19
    Replies
Hi! I need to convert custom object fields to another custom object fields. from enquiry form object to student object . please help me to write a code for this

Hi I need to create a formula field to calculate amount to be paid based on month, and amount text field, from month picklist (any month i can select, amount need to be calculate from selected month till next year of march) based on both field, fees to be paid field needs to be filled.

3 fields

amount--text

joining month---picklist

Fees to be paid---- text

all 3 fields,belongs to same object.

Please help me to write a formula for this.

 

 

 

 

Hi I need to dConvert lead to Account and contact. with the help of ashish I am able to convert in account but Not able to display lead details in contact related list of account. as account is a look up field in contact kindly let me know the code for look up field. My code has error error is Error Error: Compile Error: Illegal assignment from Schema.SObjectField to SOBJECT:Account at line 15 column 5 public class CMyLeadControllerExtension { public ApexPages.StandardController LEAD; public CMyLeadControllerExtension(ApexPages.StandardController stdController) { this.LEAD = stdController; } Lead abc = [select Id,Name, Email, Company,MobilePhone from Lead where id = :apexpages.currentpage().getparameters().get('id')]; public pageReference doCreateAccount(){ Account newacc = new Account(); newacc.Name = abc.Company; insert newacc; Contact newcon = new Contact(); newcon.LastName = abc.Name; newcon.Account= Account.id; ----------------------------------------- newcon.MobilePhone = abc.MobilePhone; newcon.Email = abc.Email; newcon.FirstName = abc.Name; insert newcon; pageReference p = new pageReference('/' + newacc.id); p.setRedirect(true); return p; } }
Hi I need to convert Lead to contactand account at the time I am saving the code its dsiplaying an error Error: Compile Error: Field is not writeable: Contact.Name at line 14 column 6, please help me public class CMyLeadControllerExtension { public ApexPages.StandardController LEAD; public CMyLeadControllerExtension(ApexPages.StandardController stdController) { this.LEAD = stdController; } Lead abc = [select Id,Name, Email, Company from Lead where id = :apexpages.currentpage().getparameters().get('id')]; public pageReference doCreateAccount(){ Account newacc = new Account(); newacc.Name = abc.Company; insert newacc; Contact newcon = new Contact(); newcon.Name = abc.Name;---------------------------------- insert newcon; pageReference p = new pageReference('/' + newacc.id); p.setRedirect(true); return p; } }
I have two different instances... One instance is for buyer and another for seller, and created objects in both Once the buyer selects the product mail will go to seller ID and seller quotation price to buyer Mail id how is it possible please help? just to connect both the instances through mail...............
Hi I trying to insert values in two standard objects fields through page I have created a look up relation for contact from product, an error is displaying and i am not able to understand where i have done mistake. please help me.... ERROR: Error: Could not resolve the entity from value binding '{!product2.Contacts__r.Cloth__c}'. inputField can only be used with SObject fields.
Letter of Request for Purchase
Dear Mr.{!Product2.Product_Person__c}!


I request to purchase Materials used in Garments, from the{!product2.name}The intent to purchase this Material would be approved/accepted by our Organization after getting the Quotation.
* Cloth Required
* Thread Required
* Buttons
Yours Sincerely...{!product2.Contacts__r.name}
How to calculate num sent field in campaign? Number of emails sent

Hi!

I have created 2 custom objects  .with the help of community , i have written a trigger to insert 
values from 1 custom object to another now i have to do update method for the same

(I have created 2 custom obj both have same api names and same fields), I have to update records in Member Object and Member 2 record will be automatically updated through trigger

please help me to write a code for update.

below Code I have written is not working

trigger updt on Member__c (after update)

 {list<Member2__c> mem = new List<Member2__c>();

for (Member__c a1:Trigger.new)

{

Update mem;

}

}

HI

 

Salesforce Community


I am new to Apex & trigger

I have created two custom objects Member & Member2, and same fields for both the object, now i want to insert the values of member fields into Member2 fields, such as Firstname and lastname,

Help me to get code for this