• Virendra
  • NEWBIE
  • 25 Points
  • Member since 2011

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

Account ac = new Account();
      //SObject rec = new Account();

      System.out.println("Enter your name \n");
      ac.setName(br.readLine());
      System.out.println("Enter your Mobile No. \n");
      ac.setPhone(br.readLine());
      //rec = ac;
      SaveResult save = connection.create(ac);


      System.out.println(ac.getParentId());

 

 

I am getting an error at the bolded line. actually I want to create the accoutn  my user but that create statement  needs the array of  SObject[].......................

 

 

so waht shold i do..................

 

can anyone help me................

 

thanks................

Account ac = new Account();
      //SObject rec = new Account();

      System.out.println("Enter your name \n");
      ac.setName(br.readLine());
      System.out.println("Enter your Mobile No. \n");
      ac.setPhone(br.readLine());
      //rec = ac;
      SaveResult save = connection.create(ac);


      System.out.println(ac.getParentId());

 

 

I am getting an error at the bolded line. actually I want to create the accoutn  my user but that create statement  needs the array of  SObject[].......................

 

 

so waht shold i do..................

 

can anyone help me................

 

thanks................

Hi all,

 

I am a newbie at using Java in conjuction with Salesforce, so please forgive me if I word this incorrectly and I am sure the solution is simple, but after hours of searching I cannot find it.  I am trying to attach an xlsx document to an object using some code I found on a message board as a template.  When I put the code into Eclipse at the line

 

Attachment attach = new Attachment();

 

it tells me that attachment cannot be resoved to a type.

 

What am I missing?

 

Thanks in advance.

 

JC

Hi folks,

 

Our organization is seeking a way to create leads in salesforce from an existing webpage form that customers are filling out.   

 

We're seeking some documentation with java API will allow us to accomplish this.  We've tried contact Salesforce.com Tech Support and they don't seem to understand what we are trying to accomplish.

 

In summary, we have several existing web forms that are populated by customers.   We are seeking a java API to assist us in saving those records as leads in salesforce while also committing them to our application database.

 

Thanks,

Michael

 

How to implement Single Sign-On for Salesforce with Google App Engine ?

Is there a way to attach a file from your computer when run java program using sendemail() api call?

 

book suggests the following code

EmailFileAttachment efa = new EmailFileAttachment();
    byte[] fileBody = new byte[1000000];
    efa.setBody(fileBody);
    efa.setFileName("attachment");

 

 

but where do I actually set the path to the file?