getConfigRecordAttachmentIdByFileName

Returns an id of an attachment of a record in a config.

Parameters

  1. appName - the name of the config with the attachment

  2. recordId - the id of the record with the attachment

  3. fileName - the name of the requested attachment

Example Usages

app.getConfigRecordAttachmentIdByFileName("customerOrder", 1234, "invoice.pdf");

Return Values

If a matching attachment with the specified file name is found, the function returns the corresponding id property of that attachment. If no matching attachment is found or if the fileName parameter is not provided, the function returns null.

Last updated