• StephenB
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 14
    Questions
  • 30
    Replies

An external system with hardcoded api endpoint references is going to be refactored "one of these days", but in the meantime it needs to be updated for Summer 13. The guy looking after this system mentioned that while the production endpoint is currently instance-api.salesforce.com, the test system is using csN.salesforce.com (NOT csN-api.salesforce.com) without problems.

 

To me this raises some questions:

 

Do sandboxes never have -api endpoints? Or are both csN.salesforce.com and csN-api.salesforce.com currently in play?

 

Is If csN.salesforce.com is available, does ths mean instance.salesforce.com is also already available and usable prior to Summer 13? In which case, can the update take place now instead of waiting til the release date?

Hi Everyone,

when I try to install Eclipse Juno 4.2 with the force.com IDE I get the following error message:

 

Cannot complete the install because one or more required items could not be found.
  Software being installed: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021)
  Missing requirement: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021) requires 'org.eclipse.update.ui 0.0.0' but it could not be found

 Does anyone know how to fix this?

 

Kind regards,

 

Otto

Hi all, kind of odd - I have a pageBlockTable with some columns. If I use the standard column definition:

 

<apex:column value="{!p.End_Date__c}"/>

 

Then all is well and my header has the End Date label, etc etc. All good.

 

Now I want to use an explicit field definition in the column - ie

 

<apex:column headerValue="Start Date">
                        <apex:outputField value="{!p.Start_Date__c}">
                            <apex:inlineEditSupport disabled="true" />
                        </apex:outputField>
                    </apex:column>

 

The issue is, I have to hard code the label for the col in the headerValue. I should be able to use a variable for this, surely? I've tried using {!p.Start_Date__c} in the headerValue also but doesn't work, I need a 'label for' type definition for the field, so I can get the label for that field without hard coding. Thought something like $componentLabel but can't get this to work either.

 

Seems so simple, but I'm stumped! Anyone got an idea??

 

Thanks, S

 

Has anyone else noticed some unexpected behavior with the latest version of the Data Loader, version 21.0?  Here is a list of just some of the issues that I've come across that do not occur when using previous versions of the Data Loader:

 

  1. When attempting to update a small subset of fields contained in the .csv file but not all (ie. mapping only a few fields), the Data Loader throws an the Error:  Failed to find mapping for '<one of the unmapped fields in the .csv file>'.  However, if all the fields in the .csv file are mapped, it appears to work correctly.  Previous versions had no problem with mapping only a subset of fields contained in the .csv file, my guess is this is a bug.
  2. After successfully completing an Export, the Data Loader stops responding to any action button click for Insert, Update, Upsert or Delete.  However, it will let you choose Export or Export All.  I cannot tell if this one is a new "feature" or a bug.
Anyone else experiencing any similar issues?  
Thanks in advance!

 

Hi , I am writing a standard controller for the contact record and below is code and test method....

 

public class ContactController {
public  Contact contact {get; set;}
public string applicationId;
public Student_Information__c studentinfo{get;set;}
    public ContactController(ApexPages.StandardController controller)
    {
        contact = new contact();
        contact.LastName = userInfo.getLastName();
        contact.FirstName = userInfo.getFirstName();
 //       String ContactId = userInfo.getContactId();

// How do I test this part from here....
        User userInfo1 = [Select ContactId, Id from User where Id =: userInfo.getUserId()];
        contact = [Select Id,firstName,lastName,Anticipated_Term_Start_Date__c,Email,Program_of_Interest__c,HomePhone,MobilePhone,Birthdate,
        Contact_Status__c,Gender__c,OtherPhone,LeadSource,MailingStreet,MailingCity,MailingCountry,MailingPostalCode,MailingState,
        OtherStreet,OtherCity,OtherCountry, OtherPostalCode,OtherState,What_are_you_applying_to__c from Contact where Id =: userInfo1.ContactId];
        
        Enrollment_Opportunity__c App = [Select id from Enrollment_Opportunity__c where Applicant__c =: Contact.Id limit 1];
        this.applicationId = App.id;
    }
     
    

  /*  public ContactController()
    {
    Id id = ApexPages.currentPage().getParameters().get('id');
    contact = (id == null) ? new Contact() :
    [SELECT id,name,phone FROM Contact WHERE id = :id];
    }*/
    
    public string getapplicationId ()
    {
        return this.applicationId;
    }    
    
    public PageReference Back()
    {
    
         upsert(contact);
 
         PageReference P = new PageReference('/apex/personalinfo?Id='+Contact.Id);
         p.setRedirect(true);
      return p;
      
   }
   
    
    public PageReference SaveNext()
    {
    
     //try
    // {
         upsert(contact);
  //       contact.LastName = userInfo.getLastName();
  //      contact.FirstName = userInfo.getFirstName();
  //       User userInfo1 = [Select ContactId, Id from User where Id =: userInfo.getUserId()];
  //      contact = [Select Id,firstName,lastName,Anticipated_Term_Start_Date__c,Email,Program_of_Interest__c,HomePhone,MobilePhone,Birthdate,
  //      Contact_Status__c,Gender__c,OtherPhone,LeadSource,MailingStreet,MailingCity,MailingCountry,MailingPostalCode,MailingState,
   //     OtherStreet,OtherCity,OtherCountry, OtherPostalCode,OtherState,What_are_you_applying_to__c from Contact where Id =: userInfo1.ContactId];
         PageReference P = new PageReference('/apex/campacademy?Id='+Contact.Id);
         p.setRedirect(true);
    // }
    // catch(System.DMLException e)
    // {
    //     ApexPages.addMessages(e);
    //  
      //}    
      
      return p;
      
   }
   public PageReference Next()
    {
    
     //try
    // {
         update(contact);
    //     User userInfo1 = [Select ContactId, Id from User where Id =: userInfo.getUserId()];
   //     contact = [Select Id,firstName,lastName,Anticipated_Term_Start_Date__c,Email,Program_of_Interest__c,HomePhone,MobilePhone,Birthdate,
   //     Contact_Status__c,Gender__c,OtherPhone,LeadSource,MailingStreet,MailingCity,MailingCountry,MailingPostalCode,MailingState,
  //     OtherStreet,OtherCity,OtherCountry, OtherPostalCode,OtherState,What_are_you_applying_to__c from Contact where Id =: userInfo1.ContactId];
         if(contact.What_are_you_applying_to__c=='Interlochen Summer Arts Camp'){
         PageReference p = new PageReference('/apex/NewCampApp?Id='+contact.id);
         p.setRedirect(true);
         return p;
         }
         else{        
         PageReference p = new PageReference('/apex/NewApplication?Id='+contact.id);
         p.setRedirect(true);
         return p;
      }
    }  

 /*  
    public PageReference Exit()
    {
    
     //try
    // {
         upsert(contact);
     
         PageReference P = new PageReference('/apex/NewCampApp?Id='+Contact.Id);
         p.setRedirect(true);
    // }
    // catch(System.DMLException e)
    // {
    //     ApexPages.addMessages(e);
    //  
      //}    
      
      return p;
      
   }
  */
     public PageReference SaveExit()
    {
    
     //try
    // {
         upsert(contact);
         PageReference P = new PageReference('/apex/customerportal');
    // }
    // catch(System.DMLException e)
    // {
    //     ApexPages.addMessages(e);
    //  
      //}    
      
      return p;
      
   }
   public PageReference submit()
    {
    
     //try
    // {
         update(contact);
         studentinfo=[Select Id from Student_Information__c where Contact__c =: Contact.Id];
         PageReference r = new PageReference('https://c.cs0.visual.force.com/apex/personalinfo1?Id='+Studentinfo.Id);
    // }
    // catch(System.DMLException e)
    // {
    //     ApexPages.addMessages(e);
    //  
      //}    
      
      return r;
      
   }
   public PageReference Camp()
    {
    
     
         update(contact);
         PageReference r = new PageReference('https://c.cs0.visual.force.com/apex/NewCampApp?Id='+contact.id);
         r.setRedirect(true);
      return r;
      
   }
   public PageReference Academy()
    {
    
         update(contact);
         PageReference r = new PageReference('https://c.cs0.visual.force.com/apex/NewApplication?Id='+contact.Id);
         r.setRedirect(true);
      
      return r;
      
   }

 

 

 

and the test method for this...is

 

@isTest
private class TestContactController {

    static testMethod void testmyController() {
        // TO DO: implement unit test
    /*    
        Map<String,ID> profiles = new Map<String,ID>();
          List<Profile> ps = [select id, name from Profile where name =
             'Standard User1' or name = 'System Administrator'];
    
          for(Profile p : ps){
             profiles.put(p.name, p.id);
          }
        */
        
        Profile p = [select id,name from profile where name='Standard User1'];
             User u = new User(alias = 'standt', email='standarduser1@testorg.com',
                emailencodingkey='UTF-8', lastname='Test1', languagelocalekey='en_US',
                localesidkey='en_US', profileid = p.Id,
                timezonesidkey='America/Los_Angeles', username='standarduser1@testorg.com');
        insert u ;
        
        contact C =New Contact (firstName=userinfo.getFirstName(),lastName=userinfo.getlastname(),id=userinfo.getUserId());
        insert C;
        
        
        Enrollment_Opportunity__c en = New Enrollment_Opportunity__c(Applicant__c =C.Id);
        insert en;
        ApexPages.currentPage().getParameters().put('id',en.Id);
        
        Enrollment_Opportunity__c en1=New Enrollment_Opportunity__c(Applicant__c=C.Id,RecordTypeId='012T00000004cfY');
        insert en1;
        ApexPages.currentPage().getParameters().put('id',en1.Id);
       
        Enrollment_Opportunity__c en2=New Enrollment_Opportunity__c(Applicant__c=C.Id,RecordTypeId='012T00000004cfd');
        insert en2;
        ApexPages.currentPage().getParameters().put('id',en2.Id);
        
       //  ApexPages.StandardSetController ssc = new ApexPages.StandardSetController(accountList);
       // ApexPages.StandardController co=new ApexPages.StandardController(C);
        
        ContactController co = new ContactController(new ApexPages.StandardController(C));
               
        co.getapplicationId();
        co.back();
        co.SaveNext();
        co.Next();
        co.SaveExit();
        co.Submit();
        co.Camp();
        co.Academy();
        
    }
}

 

I am not able to test the user record.......I am receiving an error as LIST HAS NO ROWS FOR ASSIGNMENT TO SOBJECT...at the profile query....

 

what to do...where am I going wrong...

 

Hi All,

 

I have created my first web-service which is supposed to check whether username/password are valid for customer portal user. No redirections are needed, just return something according the result. Here's my code:

 

 

webservice  static Auth validateLogin(String username, String password){
       
       Auth a = new Auth();
 
        String startUrl = 'https://emea.salesforce.com/secur/login_portal.jsp';
         
               startUrl += '?orgId=XXXXX&portalId=YYYYY&loginType=3';
               startUrl += '&startUrl=';
               startUrl += '&loginUrl=';
               startUrl += '&useSecure=true';
               startUrl += '&un=' + username;
               startUrl += '&pw='+ password;

     PageReference p = Site.login(username, password, startUrl);
      
      if (p == null){
          
          a.result = username+password+startUrl;
      }
      else{
          
          a.result = password+username;
      }
       return a;
       
   }

 

 

 

I can login to my portal from the link in the startURL if I input it in my browser and use the 'normal' way, but somehow my pageReference p is always NULL. The object gets returned to my php code and I have double checked all my strings like 1000 times. Why does it let me in using the normal login form, but not with a webservice? Is it the path of startUrl?

 

Do you guys have any direction for me?

Hi all,

   I am working on salesforce sites right now. All the pages and controllers part has been completed except the login and

logout functionalities. Actually i have never worked on this kind of issue and i don't know how to do this. Can any one help

me to complete this task.

 

Thanks,

 

neelam...

 

 

Can anyone tell me how to restrict these 2 formulas so that the profile called "API Only" will ignore these formulas.  I want to restrict my users from modifying things, however, my Scribe integration needs access to modify the opportunities if they are modified on the back end system.  These are the 2 formulas used in my validation rules.

If someone can just paste the complete formulas with the above request in place, that would be much appreciated.

 

First One:

 

AND(OR(ISPICKVAL(StageName, "Closed Won"),ISPICKVAL(StageName, "Closed Lost")),Number_Of_Line_Items__c <PRIORVALUE(Number_Of_Line_Items__c) )

 

Second One:

 

OR(ISPICKVAL(Opportunity.StageName, "Closed Won"), ISPICKVAL(Opportunity.StageName, "Closed Lost"))

Hi,

I have generated the enterprise WSDL in salesforce and now I want to connect to the salesforce from soap UI using the WSDL.

I want to see the response for certain webservices.

I have soap UI standalone app and also the one configured in eclipse ganymade and these can connect to internet using proxy.

 

please help me with steps to configure soapUI in eclipse or in the standalone app with any settings specific to proxy.

 

Thank you

 

 

 

Sidz

Hi all,

I am getting an error on force.com site

 

Select Status__c, OwnerId, Id,User__c, User__r.Username__c, Group__r.Name__c, Group__c From GroupMember__c where Group__c = : groupid and Status__c = 'Pending'

i am  running above querry n i am getting error mentioned below:

System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: GroupMember__c.User__r.

 

I have tried many combinations with the querry.

if any one have its solution please help me out from the situation.

 

thanks in advance,

Amit

Hey,

I am using asp.net and allowing user to create task using aspx file. now the data entered by the user has to be stored in salesforce. all things are working fine except when I make user to delete task and set the field IsDeleted=true it is NOT WORKING at all.

 

as even after setting IsDeleted field to true it is still showing false.

 

Why is not getting updated?

 

SforceService Obj_SforceService = new SforceService();


Task task = new Task();

task.Id = "00T90000003FXT4EAO";

task.IsDeleted = true;


SaveResult[] sr = Obj_SforceService.update(new sObject[] { task });


for (int j = 0; j < sr.Length; j++)
{
    if (sr[j].success)
        txtMessage.Text += " Succeed";
    else
    {
        txtMessage.Text +="Failed";
    }

}

 

Above programs works fine with any issue and it is showing the message "Succeed" in textbox. but still it is not updating record and IsDeleted is still false. why?

 

 

 

 

 

According to the SF API manual (version 19), the IP ranges SF uses for outbound messaging are as follows:

 

"Lock down the client application’s listener to accept requests only from the Salesforce.com IP range. While this guarantees the message came from Salesforce.com, it does not guarantee that another customer is not pointing to your endpoint and sending messages. The Salesforce.com IP ranges are:


  • 204.14.232.64 to 204.14.232.79
  • 204.14.234.64 to 204.14.234.79"

We tried this range but messages just bounced off our firewall.  When we temporarily expanded the range, we found an incoming message on 204.14.234.8 - outside the range specified above.  We are working with a sandbox, not production.  It would appear that the IP ranges in the manual are either incorrect or do they do not also apply to a sandbox.  If so, can you provide the correct IP range so we can button up our firewall appropriately?

 

Thanks.

 

- Cris

My deploy from Ant failed this morning to a new "Developer Edition" org with this error; I have a few custom fields added to the User object. This deployment has been working fine and is run very frequently because we use continuous integration.

 

Does anyone have insight into this error?

 

Thanks,

Keith

Hi all,
 
I am getting weird errors when I try and do a repaint of an area of my Visualforce page, in response to an actionFunction. The whole page initially displays ok, so I know that all the necessary apex properties are visible and accessible.
 
When I execute my actionFunction (via onchange of a picklist) I do a couple of things
- update the value of the field back to SFDC immediately
- redraw a section of the page
 
The code is:

<apex:actionFunction action="{!resetStatus}" name="redraw" rerender="commandbuttons" >

    </apex:actionFunction> 
 
When I do this via my sys admin user it works fine. When I do via my customer portal user, I get an Insufficient Privileges error.
 
What's weird is that the update definitely works, as if I go back and check SFDC the updated value is there. This means the page refresh isn't working properly.

Things I have tried:
- debug, but this shows up no notion of the error, only that the action function posts and runs my code (without error)
- customer portal profile - all apex classes and vf pages have been granted, as well as field level security

I am not quite sure what else I can look at. The redraw of the section of page doesn't put anything additional on the page that is not already accessed when the page first loads (successfully), so I'm a little confused what might be causing this.

Anyone seen this before?

Thanks,
Stephen
Hello,
i have problems when i will Logon to SF wir my Excel Connector.
I enter my Username und my Password and use the URL:
https://www.salesforce.com/services/Soap/c/6.0

But the following error occurs:
Error Generated by request::Unable to send request to server. A connection with the server could not be established

ExceptionCode : 5103

The sforce Connector Version is 6.16 and the Office Toolkit Version is 3.0

Thank you in advice.