Initializing help system before first use

# App Attachments

App attachments are read-only from the Mosel model. They can be used as an alternative to model resources to provide a source of input data. The advantage they have over model resources is that an app attachment can be updated using the web client, whereas model resources are final once the app has been created.
Before a model can use an app attachment, it must download it from the Xpress Insight server:

    insightgetappattach('input.dat')

After this call, a local copy of the file is available in Mosel's working directory where it can be read as you usually would in Mosel. For example:

    initializations from 'input.dat'
      MyData
    end-initializations

Note: Attachment retrieval should always be accompanied by a status (error) check, for more see Adding an Attachment in Development. Bear in mind the routine will not work in standalone mode.

The model can also list all the available app attachments by calling `insightlistappattach`, and can retrieve information about a particular attachment using `insightgetappattachinfo`.

Parent Topic Using Attachments

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.