• GL_NS
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 14
    Replies
Hi,
 
Please suggest "How to set the Property of Custom field as ExternalId."
 
Thanks..
  • July 24, 2008
  • Like
  • 0
I am displaying the Account detail page with related Contacts as a datatable. I've placed a new button there.
Onclicking that it goes to a page where new contact can be created. The Account name in that contact pg will be read only.
Since i'm passing the account id from the Acount pg to the new contact page, it'l giv an error if the create new contact pg is directly accessed.
The contact page has 3 buttons 'save', 'cancel' and 'save and new'. Onclicking save and new it should save the record and
return the same page with all fields blank.The prob is it is saving the record but when returning the page its displaying the previously entered
details.

This is the controller i'm using.
public class Contact5 {
Contact con;
    public Contact getContact() {
   
    if(con==null)   
    con=new Contact();
    return con;
}
public PageReference save() {
con.AccountId=cinfo.id;
insert con;
return page.SPPManageAccount;
}
public PageReference cancel() {
return page.SPPManageAccount;
}
ID id=System.currentPageReference().getParameters().get('id2');
  account cinfo;
    public account getcinfo() {
  cinfo=[select id,name from account where id=:id];
 
        return cinfo;
    }
public PageReference new1() {
con.AccountId=cinfo.id;
insert con;
return page.SPPNewContact;
}
}
<apex:commandbutton value="Save and New" action="{!new1}"/>

Any solution on this would be of a  great help.
We use a custom object named "quote" that rolls up to opportunity - the owner of the quote is what we report on.  I am trying to have manager type reporting on this custom object.  I added a field named "direct manager" in the user object that holds the manager for this purpose.  I am trying to automatically populate this field based on the owner of the quote.... Here is what I have so far (which does not work)..... any help would be greatly appreciated!!!
 
trigger UpdateManagerDirector on Quote__c (after insert, after update) {
    for (Quote__c q : Trigger.new)
        {
                String QuoteId = q.Id;
                String SalesRep = q.Rep_Name__c;
                String SalesRepID = q.OwnerID;              
            try
            {
               Quote__c[] qt = [Select Quote__c.Id, Quote__c.Rep_Name__c, Quote__c.OwnerID,Quote__c.Manager__c from Quote__c where Quote__c.Id=:q.Id];
                User[] Usr = [Select User.Direct_Manager__c from User where User.ID=:q.OwnerId];
                if(trigger.isInsert)   
                {
                    qt[0].OwnerID = SalesRep;
                    qt[0].Manager__c = Mgr;
                    update qt;
                }
                else
                {
                    if(qt[0].OwnerID != qt[0].Rep_Name__c)
                    {
                        qt[0].OwnerID = SalesRep;
                       qt[0].Manager__c = SalesRepID;
                        update qt;
                    }
                }
            }
            catch(Exception e){}
        }
}
I need to display an alert message on Save, if a field value in Leads, say X is greater than 5
 
If (Lead.X>5)
{
alert("Say Hi"")
}
 
Any clues for this newbie on how to do this? No emails, no fields to update, just a message...
 
Thanks so much!

Hi,

 

I have developed an Application in Sandbox (Unlimited edition) Now it’s the time to deploy the application in production (of course unlimited edition).

 

Is there any automated way/tool to deploy the application in production from Sandbox? Or I’ll have to develop the same application entirely manually?

 

Any help/guide is highly appreciated.

 

Thanks and regards,

Jagannath

Hi ,
I have joined salesforce.com newly
I have undergone through all the document for accesing salesforce database.
i have written one webapplication to remotly access salesforce database using C#.
but i am getting exception unable to remotly login to server .
Please provide me the following information
-procedure to connect to salesforce database
- what is endpoint url.
 
 
I'm trying to figure out how to do an upsert to an object setting it's parent using a foreign key to it's parent's external ID using the partner WSDL.  The example in the 8.0 docs only shows this being done using the enterprise WSDL, is this possible?
  • January 08, 2007
  • Like
  • 0

I have a Web Integration Link in SalesForce that redirects to a page in my server. I want to login and get data from salesforce without ask the password again...using the login in salesforce.

It's possible? My language is c#

Can you help me...it's important!