Creating Attachment Queries
Forms that have been enabled for attachments can have URLs or comments attached to them. This procedure lets you retrieve attached URLs.
To create an attachment query
- Log in to Query Builder.
- Set the command type to GetAttachments.
- In the left pane of the Query Builder, locate the file that includes attachments.
- Expand the file and the indexes below it.
- Double-click on the index you want to use to access the attachments.
- Replace any occurrences of "*****" with values or variables for the indicated required fields.
-
Optional. Include statistics in the query. (This option
retrieves statistics about the attachments, including ID of user who
created the attachment; creation date; last modified date; and so
on.)
- Right-click in the Properties view of the query and select Command Properties.
- Expand the command properties, either for all attachment queries or for the active query.
- Right-click on Include Statistics and select Edit Property Value.
- Set the value to True and click OK to close the User Preferences window.
- Review the query in the lower right pane of the Query Builder.
-
Click Execute to test the query.
If the query has problems and the problems are not obvious, you might want to set Execution Logging to Server Calls to Log File. See Execution Logging for more information.
- When the query works correctly, save the query.
- To make the query available to your VB or other application, select the text of the query and then select Copy from the Edit menu to place your query on the Windows clipboard.