Record attachment

How do i get the attachment file in a record

 

ex.

Record attachment

Beginner Asked on October 23, 2019 in SuiteScript.
Add Comment
1 Answer(s)

You would require to upload the file in the NS file cabinet first and then attach it to the record using this API call nlapiAttachRecord(type, id, type2, id2, attributes). Pls see example below:

var type = ‘file’; // the record type for the record being attached

var id = 297; // the internal ID of an existing jpeg in the file cabinet

var type2 = ‘customer’; // the record type for the record being attached to

var id2 = 406; // this is the internal ID for the customer

var attributes = null;

nlapiAttachRecord(type, id, type2, id2, attributes)

Beginner Answered on October 23, 2019.

I just wanted to get the internal IDs of the attached files under the Files tab. Already resolved the problem . Appreciate your sample though. Thank you!

on October 23, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor