SI.GETATTACHMENTS

Created by Harry Lewis, Modified on Fri, 12 Jul at 6:28 PM by Harry Lewis

Applies to:

  • Velixo NX   
  • Sage Intacct   




The SI.GETATTACHMENTS function retrieves the URL of a document within Sage Intacct and displays that in your report.


During a PDF Distibution process, the specified file will be downloaded from Sage Intacct and included in the resulting PDF file attached to the email created by the Distibution.




Syntax


SI.GETATTACHMENTS(ConnectionName, Object, RecordNo, NameFilter, Caption



Parameters


The SI.GETATTACHMENTS function uses the following parameters:


Parameter

Required/Optional

Description

ConnectionName

Required

The name of the connection as configured in the Connection Manager

ObjectRequiredThe Sage Intacct object containing the file to be downloaded
RecordNoRequiredThe record number (within the Object) containing the file to be downloaded
NameFilterOptionalA filter specifying the specific name of the file to be downloaded
CaptionOptionalA caption that will be displayed at the top of the attached sheet when it appears in the resulting PDF file.



Valid NameFilter special characters


Wildcard SymbolDescriptionExampleMatchesDoes not match
*
matches any number of any characters including none
Law*

Law, Laws, or Lawyer

GrokLaw, La, or aw

*Law*

Law, GrokLaw, or Lawyer

La, or aw

?
matches any single character
?at
Bat, bat, Cat or Catat
[abc]
matches one character given in the bracket
[BC]at
Bat or Catbat, cat, at, or BCat
[a-z]
matches one character from the (locale-dependent) range given in the bracket
Letter[0-9]
Letter0, Letter1, Letter2 up to Letter9Letter, Letters, or Letter10



Examples


Example 1


=SI.GETATTACHMENTS("Sage","ARINVOICE","3_page_PDF.pdf")


Description

Will prepare the report to download the specified file (3_page_PDF.pdf) from the ARINVOICE object.

 

Result

Before the Distibution of the report is performed, the function will return the URL of the file (3_page_PDF.pdf).


e.g.,


After the Distibution, the function will display that the specified file was processed:



Example 2 - including a caption


=SI.GETATTACHMENTS("Sage","ARINVOICE",C13,,D13)


Description

Will prepare the report to download the file specified in cell C13 from the ARINVOICE object.  When the file is included in the resulting PDF file, the caption listed in cell D13 will be included at the top.


 (cell references were used for all of the parameters in this example)



Output


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article