You need to sign in to do that
Don't have an account?

How to add notes to opportunity using Vf page
Hi All,
I hvae created a new custom button "craete opportunity" on my custom object which will create 10 opporutunity at a time which is VF page. Now i need to add the "notes" to my opportunity which each opportunity will have notes.Note field is an long text area, value typed here must be saved as a notes in that particular opportunity. This note field should be below that opportunity. Can any one tell how to do this using Vf and apex code. also tell me any links for this, waiting for your reply. Thanks in advance.
Regards
Lavanya.
Hi,
You have to include this code
Note n = new Note();
n.Body(textarea value);
n.parentId(OpptyId);
insert n;
Regards,
Maglulan D
we have an option to import notes into sObjects through data Loader..there is some standard procedure to do that...
please follow the below steps to acheive it.
For importing or inserting an attachment or notes to an object (say Account) we need the following details in the CSV file that we are going to use in the Data loader.
PARENTID
NAME
CONTENTTYPE
BODY
OWNERID
PARENTID:
This is nothing but the Salesforce ID of the Parent object record(Say AccountID).
NAME:
Name is the name of the attachment file.
CONTENTTYPE:
The File Format eg: Doc,txt,xls,pdf..
BODY:
This one plays an important role while importing an attachment.
We must give the Path of the attachment in the local Machine.
Make sure the File must follow with its extensions i.e .pdf,.doc.xls, etc
Example: C:\Program Files\salesforce.com\Data Loader\Test1\Attachments\TestDoc.doc
OWNERID: