Skip to main content
added 616 characters in body
Source Link
Devendra
  • 5.1k
  • 1
  • 25
  • 28
  1. Can we bulk-upload these PDFs to Salesforce and associate them with the particular student record? For example, can John Doe Grade Report.pdf get attached to John Doe's record, Jane Doe Grade Report.pdf get attached to Jane Doe's record, etc.

YES - You can use Data Loader to upload attachments to Salesforce. Before uploading attachments, note the following:

If you intend to upload via the Bulk API, verify that Upload Bulk API Batch as Zip File on the Settings | Settings page is enabled.

To upload attachments: Confirm that the CSV file you intend to use for attachment importing contains the following required columns (each column represents a Salesforce field):

  1. ParentId - the Salesforce ID of the parent record. This will be Salesforce ID of a Student Record.
  2. Name - the name of the attachment file, such as testPDF.pdf.
  3. Body - the absolute path to the attachment on your local drive. Ensure that the values in the Body column contain the full file name of the attachments as they exist on your computer. For example, if an attachment named testPDF.pdf is located on your computer at C:\Export, Body must specify C:\Export\testPDF.pdf.
  1. Can we write a mass-email that pulls in these reports as an attachment. It would look something like this, ideally:

YES- This will involve a apex code.

  1. If you want to send an email to a Student when attachment is inserted into SFDC then you need to write a trigger code. Trigger code can contain a logic to send an email to Student Record.
  2. The another possible solution will be to write a Batch apex class, which will run on a daily basis. It will identify all the attachments which are uploaded on that day, It will find out the associated students and send email to those student records along with their PDF as an attachment.
  1. Can we bulk-upload these PDFs to Salesforce and associate them with the particular student record? For example, can John Doe Grade Report.pdf get attached to John Doe's record, Jane Doe Grade Report.pdf get attached to Jane Doe's record, etc.

YES - You can use Data Loader to upload attachments to Salesforce. Before uploading attachments, note the following:

If you intend to upload via the Bulk API, verify that Upload Bulk API Batch as Zip File on the Settings | Settings page is enabled.

To upload attachments: Confirm that the CSV file you intend to use for attachment importing contains the following required columns (each column represents a Salesforce field):

  1. ParentId - the Salesforce ID of the parent record. This will be Salesforce ID of a Student Record.
  2. Name - the name of the attachment file, such as testPDF.pdf.
  3. Body - the absolute path to the attachment on your local drive. Ensure that the values in the Body column contain the full file name of the attachments as they exist on your computer. For example, if an attachment named testPDF.pdf is located on your computer at C:\Export, Body must specify C:\Export\testPDF.pdf.
  1. Can we bulk-upload these PDFs to Salesforce and associate them with the particular student record? For example, can John Doe Grade Report.pdf get attached to John Doe's record, Jane Doe Grade Report.pdf get attached to Jane Doe's record, etc.

YES - You can use Data Loader to upload attachments to Salesforce. Before uploading attachments, note the following:

If you intend to upload via the Bulk API, verify that Upload Bulk API Batch as Zip File on the Settings | Settings page is enabled.

To upload attachments: Confirm that the CSV file you intend to use for attachment importing contains the following required columns (each column represents a Salesforce field):

  1. ParentId - the Salesforce ID of the parent record. This will be Salesforce ID of a Student Record.
  2. Name - the name of the attachment file, such as testPDF.pdf.
  3. Body - the absolute path to the attachment on your local drive. Ensure that the values in the Body column contain the full file name of the attachments as they exist on your computer. For example, if an attachment named testPDF.pdf is located on your computer at C:\Export, Body must specify C:\Export\testPDF.pdf.
  1. Can we write a mass-email that pulls in these reports as an attachment. It would look something like this, ideally:

YES- This will involve a apex code.

  1. If you want to send an email to a Student when attachment is inserted into SFDC then you need to write a trigger code. Trigger code can contain a logic to send an email to Student Record.
  2. The another possible solution will be to write a Batch apex class, which will run on a daily basis. It will identify all the attachments which are uploaded on that day, It will find out the associated students and send email to those student records along with their PDF as an attachment.
Source Link
Devendra
  • 5.1k
  • 1
  • 25
  • 28

  1. Can we bulk-upload these PDFs to Salesforce and associate them with the particular student record? For example, can John Doe Grade Report.pdf get attached to John Doe's record, Jane Doe Grade Report.pdf get attached to Jane Doe's record, etc.

YES - You can use Data Loader to upload attachments to Salesforce. Before uploading attachments, note the following:

If you intend to upload via the Bulk API, verify that Upload Bulk API Batch as Zip File on the Settings | Settings page is enabled.

To upload attachments: Confirm that the CSV file you intend to use for attachment importing contains the following required columns (each column represents a Salesforce field):

  1. ParentId - the Salesforce ID of the parent record. This will be Salesforce ID of a Student Record.
  2. Name - the name of the attachment file, such as testPDF.pdf.
  3. Body - the absolute path to the attachment on your local drive. Ensure that the values in the Body column contain the full file name of the attachments as they exist on your computer. For example, if an attachment named testPDF.pdf is located on your computer at C:\Export, Body must specify C:\Export\testPDF.pdf.