Fetch Media Object

You can use this task to fetch the media object from the S3 server. When this task is executed, it fetches the media file from the S3 server and then displays it to the user. To fetch a specific media or a specific set of media files, the Fetch Media Object task provides several identifiers.

To use these identifiers, you can either enter their values manually or use the business object to fetch the related values from the data source.

To configure the Fetch Media Object:

  1. In the Events dialog box, scroll down.
  2. Under Add Tasks, click the Select Task list, and then select FETCH_MEDIA_OBJECT task.
  3. Click Add Task Config, and the Add Task dialog box opens.
  4. In the Add Task dialog box, click the Configuration area to expand it.
  5. In the Configuration area, perform the function as follows:
Property/Field/IdentifierDescription
NameTo fetch the data from the S3 server, you need to configure and publish a dedicated service to the vConnect portal. In this field, enter the service’s name that you have configured and published to the vConnect portal.

This service fetches the data from the S3 server.
Media IdentifierUnder Media Identifier, you can enter the values of the following identifiers to fetch a specific type of media file:
i) Reference ID
ii) Object Type
iii) Image Definition ID
iv) Primary Key 1
v) Primary Key 2
vi) Primary Key 3
vii) Document ID
viii) Document Type
ix) Document Bundle ID
x) File Caption


For instance:- Assume you want to fetch the front image of the Aadhaar document. To fetch the image, you can use the identifiers as follows:

a. Primary Key 1
In this field, enter the unique ID (for example:- img_doc) that points to the location that contains the images of all types of documents.

b. Primary Key 2
In this field, enter the unique identifier (for example:- aadhr_doc) that points to the Aadhaar documents.

c. Document Type
In this field, enter the unique identifier ((for example:- aadhr_front) that points to the front image of Aadhaar documents.

To fetch a specific set of media types, you can fetch the value of these identifiers from the data source. To fetch the values, you need to use the getVal() function.
  1. After you configure the required number of unique identifiers, click Submit to configure the FETCH_MEDIA_OBJECT task.
Was this article helpful?
YesNo