• Vijay Bharghav
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies

HI

 

 

I have created a Tar file which has reuqest.txt and my Binary Attachment, but using the sample code which has been provided in Bulk API i am unable to insert Attachments.

 

I have converted the content type to :job.setContentType(ContentType.ZIP_CSV); and used connection.createBatchFromZipStream(jobInfo, tmpInputStream); .  I am getting the exception stateMessage='InvalidBatch : Referenced file "request.txt" is missing or is a directory'. 

 

Content in request.txt is

Name,ParentId,Body
Test.pdf,a0O9000000C4UujEAF,#Test.pdf

 

Please let me know is there any way to insert Binary File using Bulk APi

 

Regards

Bharghav

hi

 

Hi I am new to Salesforce, Need help to have all fileds with values in a map for a specific record through apex class.

 

Example :('Name__C','Bharghav');

 

Regards

Vijay Bharghav

 

 

Hi

 

I am new to SalesForce, is calling SalesForce from java is different from calling an Apex class from Webservices through java.

How dose it have an impact on API limit on daily basis.

 

I am trying to send mail but want to use webservicee along with Apex class to do that.

 

Regards

Vijay Bharghav

 

Hi

 

I am new to Sales Force, need to know is there is a way to attach attachments for Email Alerts , attachments will be differentr for each record .

 

I have a Pick List "Action" and if selected user action as "Send Mail", i will call work flow rule and it in turn call Email Alert. Now this email alert should pick the attachment for the record and send Mail to the customer.

 

 

Regards

Vijay Bharghav

hi

 

Hi I am new to Salesforce, Need help to have all fileds with values in a map for a specific record through apex class.

 

Example :('Name__C','Bharghav');

 

Regards

Vijay Bharghav

 

 

Hi, I am constructing a HTML in a string, and converting it to PDF using the Blob.toPdf() method.

 

I was getting the following error:

 

FATAL_ERROR|System.InvalidParameterValueException: An error occurred while parsing the input string.

 

I checked it line by line, and I realize that this particular line causes this error. I am referencing a Static Resource in an Image tag, and this is causing the error.

 

Can anybody tell me why? and how to resolve this?

 

String htmlBody = '<img src="/resource/1347290849000/myCompany_Logo" />';

Blob.toPdf(htmlBody);

  • September 23, 2012
  • Like
  • 0