Skip to main content

Record Snapshots

A record snapshot is a PDF that captures a record at a specific moment. You can file it, share it with a safety or quality team, or keep it as a record of what was submitted. Medical Information Cloud generates snapshots from Microsoft Word templates, using the Mavens Rendition Service, and saves each one in the record's Files. No Nintex DocGen package is needed.

Snapshots work on any object that supports Files. Medical Information Cloud comes with snapshots configured for Interaction, Request, Adverse Event, and Product Quality Complaint. To add snapshots to another object, see Add snapshots to another object.

On these four objects (Interaction, Request, Adverse Event, and Product Quality Complaint ), two quick actions use snapshots:

Quick actionWhat it does
Send Snapshot (MED_Send_Snapshot)Generates the snapshot, lets the user choose files to attach, and opens the email composer with details filled in from the snapshot configuration. After the email is sent, it can record the date and time sent on the record. This action is on the default Interaction, Request, Adverse Event, and Product Quality Complaint pages.
Generate Snapshot (MED_Generate_Snapshot)Generates the snapshot and saves it in the record's Files, without sending anything. This action is included in the package but isn't on any page by default. If your users need it, add it to a page layout or Lightning record page.

Both actions use the same configuration. For details, see Configure a snapshot.

note

This page describes the template-based snapshots introduced in Fall '26. The earlier in-house snapshot feature (MED_MIC_Snapshot, configured with MED_Snapshot_Config__mdt) is documented in In-house snapshot generation.

Generate and send a snapshot​

Send Snapshot​

This action generates a snapshot and sends it. We recommend using Send Snapshot in a Lightning console app. In a console, the email composer opens as a subtab next to the record. Outside a console, the user opens it from a link in a new browser tab.

To send a snapshot:

  1. Open the record and click Send Snapshot.

    The action first prepares the record. If the snapshot configuration includes a pre-generate flow, the flow runs at this point. Any missing or incomplete data it finds is shown before the snapshot is generated.

  2. Review the Templates list. Every snapshot configuration that applies to the record is listed and selected. Clear any templates you don't need. To change the order, drag a row, or select it and press the up and down arrow keys.

  3. Review the Related Files list. These are files already on the record that can be added to the snapshot PDF after the templates. Supported files are selected by default. Earlier snapshots are labeled Previous snapshot or Snapshot, and they aren't selected unless the configuration selects them. Files that can't be converted to PDF are labeled Not Supported, and cannot be selected.

    File name shows the name of the PDF that will be created, and Documents to merge shows how many templates and files are selected.

  4. Click Continue. The snapshot is generated as one PDF, in the order shown, and saved in the record's Files. This can take up to a minute.

  5. In the Attach to this email step, choose the files to attach to the email. The new snapshot is listed first and is always attached. Every other file on the record is listed below it. This includes file types that can't be merged into a PDF, because an email can include any file type. To open a file without leaving this step, click the Preview (eye) icon on its row. To change the order of the attachments in the email, drag the rows.

  6. Click Attach and Continue. The email composer opens, with the recipients, sender, email template, and attachments filled in from the configuration.

  7. Review the email, make any changes, if required, and click Send.

If the configuration includes a Date/Time Sent Field, that field is set to the current date and time after the email is sent, and the message [file name] was sent. appears. If the field can't be updated, for example because the user can't edit it or a validation rule blocks the change, the email is still sent. A Sent, but not recorded warning explains why. If you need the field set, update it on the record by hand.

note

If you cancel at any step after the snapshot is generated, the PDF stays in the record's Files. No email is sent, and no field is updated.

Generate Snapshot​

This action generates a snapshot without sending it. Generate Snapshot shows the same Templates and Related Files lists as Send Snapshot. To generate the PDF and save it in the record's Files, click Generate Snapshot in the window. The message "[file name] has been added to the record's files." confirms it. Generate Snapshot doesn't run the configuration's pre-generate flow.

Generate a snapshot without choosing templates and files​

If every snapshot configuration that applies to a record has Auto Run selected, both actions (Send Snapshot, Generate Snapshot) skip the Templates and Related Files lists. They generate the snapshot immediately, using the default selections. If generation fails, the lists appear so the user can try again.

How a snapshot is assembled​

  • One template per configuration: Each snapshot configuration uses one Word template. To create a snapshot from several templates, such as a cover page and a details page, create a separate configuration for each template on the same object. Every configuration that applies to the record is offered, and the templates are merged in the order the user leaves them in.

  • Templates first, then files. The selected templates are merged first, followed by the selected record files, into a single PDF.

  • Supported files: These file types can be merged into a snapshot: PDF, DOCX, XLSX, PPTX, ODT, ODS, ODP, ODG, HTML, MD, CSV, TXT, SVG, PNG, JPG, JPEG, BMP, GIF, TIF, and TIFF. Older DOC, XLS, and PPT files aren't supported.

  • Earlier snapshots: Each generated file is marked as a snapshot, so later runs can tell snapshots apart from other files. Earlier snapshots are never deleted. Only snapshots generated by this feature are recognized. Files created by Nintex DocGen or the earlier in-house snapshot feature are treated as ordinary files.

  • File name: When several configurations are merged, the PDF is named using the File Name pattern of the first selected configuration.

  • Security: Record data is read using the user's access. Any field or related object the user can't read is left out of the document.

Configure a snapshot​

Each snapshot is defined by one CA Rendition Parent Config (mvn__CA_Rendition_Parent_Config__mdt) record. The related records it includes are defined by CA Rendition Child Config (mvn__CA_Rendition_Child_Config__mdt) records. For the full field reference, see Custom metadata settings.

The Medical Information Cloud - Setup plan includes four snapshot configurations, one for each object:

ConfigurationObjectTemplateFile name
Default_Interaction_SnapshotInteraction (Case)CA_Interaction_SnapshotSnapshot for {CaseNumber} - {NOW}
Default_Request_SnapshotRequest (MED_Request__c)CA_Request_SnapshotSnapshot for {Name} - {NOW}
Default_Adverse_Event_SnapshotAdverse Event (MED_Adverse_Event__c)CA_AE_SnapshotAE Submission for {Name} - {NOW}
Default_PQC_SnapshotProduct Quality Complaint (MED_Product_Quality_Complaint__c)CA_PQC_SnapshotPQC Submission for {Name} - {NOW}

To create or edit a snapshot configuration:

  1. From Setup, open Custom Metadata Types, and click Manage Records next to CA Rendition Parent Config.

  2. Click New, or click Edit next to an existing configuration.

  3. Enter a Label. Users see this label in the Templates list, so name it after the document it creates, for example Adverse Event Submission.

  4. In Object, select the object that the snapshot is generated from.

  5. In Template, enter the developer name of the asset file that contains the Word template:

    • For an asset in your org, enter its developer name, for example CA_AE_Snapshot.
    • For an asset delivered in a managed package, add the package namespace as a prefix, for example mvn__CA_AE_Snapshot. A name without a prefix never matches a packaged asset.

    For more information, see Manage snapshot templates.

  6. (Optional) In Criteria, enter the conditions a record must meet for the snapshot to apply. Leave it blank to offer the snapshot on every record of the object. For details, see Snapshot criteria.

  7. (Optional) In File Name, enter a pattern for the file's name. For details, see File name patterns.

  8. (Optional) In Order, enter a number. Lower numbers are listed and merged first. Configurations with no order come last.

  9. (Optional) In Related Fields, enter the fields from related records that the template uses. For details, see Related fields.

  10. Optional: Select either of these checkboxes:

  11. Optional: Fill in the Delivery section, which Send Snapshot uses. For details, see Configure email delivery.

  12. Make sure Active is selected, and click Save.

To stop offering a snapshot without deleting its configuration, clear Active. Inactive configurations are never offered.

note

Include Previous Snapshot applies if ANY configuration that applies to the record has it selected. Auto Run and Skip Attachment Selection apply only if EVERY configuration that applies to the record has them selected.

A snapshot can include rows from records related to the snapshot record, such as the Requests on an Interaction or the Reactions on an Adverse Event. Each set of related records is defined by one CA Rendition Child Config record:

  1. From Setup, open Custom Metadata Types, and click Manage Records next to CA Rendition Child Config.

  2. Click New.

  3. Enter a Label. We recommend naming it after the snapshot and the related records, for example Interaction: Requests.

  4. In Rendition Parent Config, select the snapshot configuration that these related records belong to.

  5. In Object, select the related object whose records appear in the snapshot.

  6. In Relationship Field, select the lookup field on the related object that points to the snapshot record's object.

  7. (Optional) In Related Fields, enter the fields from records related to each row that the template uses.

  8. (Optional) In Row Limit, enter the maximum number of rows. If you leave it blank, the limit is 500.

  9. Save.

The template loops over the related records using the relationship name of the Relationship Field, for example MED_Requests__r, not the related object's name.

warning

A snapshot includes at most Row Limit related records, starting with the oldest. Records beyond the limit are left out of the document. The included templates don't show a notice when this happens. If an object's related records often go over the limit, raise the limit, or add a line to the template that appears when records are left out. Copy Table in the Snapshot Template Studio can add this line for you. For details, see Build a template.

These limits apply to every snapshot:

  • Related record sets: A snapshot can include up to 20 sets of related records in total, across all the configurations selected for it. If the user selects more, a message asks them to select fewer templates.

  • Records per set: No set of related records ever includes more than 10,000 records, whatever its Row Limit.

  • Records per snapshot: All the sets of related records in one snapshot share a total limit of 40,000 records. Sets that are read after this limit is reached are left empty and marked as cut.

Snapshot criteria​

Criteria (mvn__CA_Criteria__c) is a JSON condition that's checked against the record when the user opens the action. It uses the product's standard criteria format, with one difference: path is the API name of a field on the snapshot record, with no object prefix.

{
"path": "MED_Country__c",
"operator": "Equals",
"value": "US"
}

To offer the snapshot on every record, leave Criteria blank. Every configuration whose criteria match the record is offered. For example, you can keep a country-specific snapshot and a global snapshot on the same object.

If a configuration's criteria can't be checked, that configuration is skipped. If no configurations are left, users see this message: "No snapshot is available because its selection criteria could not be evaluated. Ask an administrator to check the Criteria on the snapshot configuration."

File name patterns​

File Name (mvn__CA_File_Name__c) can contain text and these tokens:

TokenReplaced with
{Field_API_Name}The value of that field on the snapshot record. Fields on related records aren't supported. Picklist fields show their stored value, not their label.
{TODAY}The date the snapshot is generated, in the format yyyy-MM-dd.
{NOW}The date and time the snapshot is generated, in the format yyyy-MM-dd HHmm, in the user's time zone.

For example, AE Submission for {Name} - {NOW} creates a file named AE Submission for AE-00042 - 2026-09-01 1432.

Characters that aren't allowed in file names (\ / : * ? " < > |) are removed. If a token refers to a field that doesn't exist or that the user can't read, it's left blank. If the whole name ends up blank, the file is named after the object and the record, for example Adverse Event AE-00042 Snapshot.

Related Fields (mvn__CA_Related_Fields__c) adds values from related records, so the template can show a name instead of a record ID. Enter one dotted path for each value, separated by commas or new lines:

MED_Account__r.Name,
MED_Product__r.Name,
MED_Case__r.MED_Country__c

Follow these rules:

  • Use the relationship name, not the lookup field. For example, use Account.Name, not AccountId.Name. Custom relationship names end in __r.
  • Every path must contain a dot. The record's own fields are already included.
  • On a CA Rendition Child Config record, paths start from the related object.
warning

A template tag that reads a related record, such as {d.MED_Request__c.MED_Product__r.Name}, is blank unless its path is listed in Related Fields. If a path doesn't exist or the user can't read it, the value is also left blank, and the snapshot is still generated. Check a generated document after you change this field.

Add snapshots to another object​

Snapshots aren't limited to the four objects that Medical Information Cloud configures. To offer snapshots on another standard or custom object, such as Account or one of your own custom objects:

  1. Create a CA Rendition Parent Config record with the new object in Object. Then create a CA Rendition Child Config record for each set of related records the snapshot includes. For details, see Configure a snapshot.

  2. Create the Word template, upload it as an asset file, and enter its developer name in Template. The Snapshot Template Studio lists the new configuration and can build and publish the template for you. For details, see Manage snapshot templates.

  3. Create a quick action on the object:

    1. From Setup, open Object Manager and select the object.
    2. Click Buttons, Links, and Actions, and then click New Action.
    3. In Action Type, select Lightning Web Component.
    4. Select mvn:caSendSnapshot to generate and email the snapshot, or mvn:caGenerateSnapshot to only generate it.
    5. Enter a Label, such as Send Snapshot, and click Save.
  4. Add the quick action to the object's page layout, or to the highlights panel on its Lightning record page. Make sure the page shows the record's Files, so users can open the snapshots they generate.

To set up email delivery for the new configuration, see Configure email delivery. Keep these points in mind:

  • Recipients: The included recipient provider returns safety and quality email lists only for Adverse Events and Product Quality Complaints. On other objects, use To Address Field, or enter your own Recipient Provider Class.
  • Pre-generate flows: The included pre-generate flows are written for Adverse Events and Product Quality Complaints. If the new object needs checks before a snapshot is sent, write your own flow.

Configure email delivery​

The Delivery section of a CA Rendition Parent Config record sets the details that Send Snapshot fills in on the email. All fields are optional, and users can change any value in the email composer before they send.

FieldWhat it does
To Address FieldA field on the record that contains the recipient addresses. Separate addresses with semicolons, commas, or new lines. It must be an Email, Text, or Text Area field that the user can read. Formula fields are supported.
Recipient Provider ClassThe name of a global Apex class in your org that returns fallback recipients when the To Address Field is empty. The class must implement System.Callable. Enter the class name without a namespace prefix. For details, see Fall back to a safety or quality list.
From AddressA verified organization-wide email address, or its ID. If the address isn't verified, the email composer uses its default sender.
Email TemplateThe developer name of an active email template that fills in the subject and body. For a template in a managed package, use the format ns__Name.
CC Address and BCC AddressEmail addresses to copy. Separate addresses with semicolons, commas, or new lines.
Date/Time Sent FieldAn editable Date/Time field on the record. After the email is sent, it's set to the current date and time. Formula fields aren't supported. If blank, no field is updated.
Skip Attachment SelectionSkips the Attach to this email step. Instead, attaches the new snapshot and every file on the record except earlier snapshots.
Pre-Generate FlowAn autolaunched flow that checks the record before the snapshot is generated. For details, see Run checks before a snapshot is sent.
note

If a configuration's To Address Field can't be read as an email address, its row in the Templates list shows an Incomplete setup badge. For example, this happens if the user can't read the field, or if it isn't an Email, Text, or Text Area field. The snapshot can still be sent, and the user adds the recipients in the email composer.

When the user selects several templates, the To, CC, and BCC addresses from all selected configurations are combined, without duplicates. From Address, Email Template, and Recipient Provider Class come from the selected configuration with the lowest Order.

The included configurations are set up as follows:

ConfigurationToFallbackDate/Time Sent FieldPre-Generate Flow
Default_Adverse_Event_SnapshotMED_Email_To_Address__cAdverse Event safety listMED_Date_Time_Submitted__cMED_AE_Run_Presubmit_Validation
Default_PQC_SnapshotMED_Email_To_Address__cProduct Quality Complaint quality listMED_Date_Time_Submitted__cMED_PQC_Presubmit_Validation
Default_Interaction_Snapshot————
Default_Request_Snapshot————

On Interactions and Requests, the email composer opens with no recipients, and the user adds them before sending.

warning

The included Adverse Event configuration has placeholder values for From Address (no-reply@mavens.com) and CC Address (medinfo@mavens.com). Replace them with your org's addresses before users send snapshots.

Fall back to a safety or quality list​

Medical Information Cloud includes the MED_SnapshotRecipientProviderImpl recipient provider, which is set on the Adverse Event and Product Quality Complaint configurations. When a record's To Address Field is empty, the provider returns one of these lists from the Local Setting (MED_Local_Setting__mdt) record for the record's country:

  • Adverse Events: The safety list, AE Email List (MED_AE_Email_List__c)
  • Product Quality Complaints: The quality list, PQC Email List (MED_PQC_Email_List__c)

If the country has no Local Setting record, the Default record is used. The provider returns nothing for Interactions and Requests.

To use your own logic, write a global Apex class that implements System.Callable. The class must respond to the getFallbackRecipients action, which receives the record ID in the recordId argument, and return the addresses as a String. Then enter the class name in Recipient Provider Class.

note

The fallback runs only if none of the selected configurations provides a To address. If the user can't read the To Address Field, the fallback doesn't run, and the To field is left empty.

Run checks before a snapshot is sent​

With a Pre-Generate Flow, administrators can stop a snapshot from being generated and sent until the record is complete, for example until a complaint has a product. The flow runs when the user opens Send Snapshot, before any templates are chosen. Generate Snapshot doesn't run the flow.

The flow must be an autolaunched flow with these variables:

VariableTypeDirectionPurpose
recordIdTextInputThe ID of the snapshot record.
errorMessageTextOutputLeave blank to let the snapshot continue. Any other value stops the action and is shown to the user.

We recommend adding a fault path that assigns {!$Flow.FaultMessage} to errorMessage. That way, if a validation rule fails inside the flow, the user sees the rule's own message.

warning

The flow runs every time the action opens. It runs for every configuration that applies to the record, not only the ones the user selects later, and its changes aren't undone if the user cancels. Write flows that are safe to run more than once. Don't use them to record that a snapshot was sent. Use Date/Time Sent Field for that instead.

Medical Information Cloud includes two pre-generate flows:

  • AE Run Presubmit Validation (MED_AE_Run_Presubmit_Validation): Selects Run Presubmit Validation on the Adverse Event and its child records. This runs the validation rules your org created for Presubmit Validation for Adverse Events before the snapshot is sent.

  • PQC Presubmit Validation (MED_PQC_Presubmit_Validation): Stops the send until the complaint and product are filled in. The user sees This record could not be prepared for sending., followed by whichever of these messages applies:

    • Complaint must be filled in…
    • Product must be filled in…
    • Complaint and Product must be filled in before this Product Quality Complaint can be sent.

    Users with the MED_Bypass_Validation custom permission aren't checked, the same as for the validation rules this flow works with.

Manage snapshot templates​

Snapshot templates are Word (.docx) files stored as asset files. A configuration's Template field contains the asset's developer name. If the asset comes from a managed package, the name includes the package namespace as a prefix. Medical Information Cloud includes four templates, CA_Interaction_Snapshot, CA_Request_Snapshot, CA_AE_Snapshot, and CA_PQC_Snapshot, each with a sample letterhead that you replace with your org's own.

Administrators can build, test, and manage versions of templates in the Snapshot Template Studio tab, without leaving Salesforce.

Open the Snapshot Template Studio​

Users with the Record Snapshot Administrator (CA_Record_Snapshot_Administrator) permission set can use the Snapshot Template Studio tab. Add the tab to the app your administrators use, or open it from the App Launcher.

The studio lists every active snapshot configuration on an object you can read, with its object, order, template name, and the live template version. A configuration whose template cannot be found is marked Missing, and snapshots for it fail with "template not found" until one exists. To create the missing template, upload a draft and publish it with Publish as Asset File. This works when the Template name has no namespace prefix; a name that points at a managed package's asset cannot be created from the studio.

Build a template​

Open a configuration to see its live template, its version history, and the Build the template panel:

  1. Check the Sample record. The studio selects the configuration object's most recently modified record. If it doesn't show the values you need, choose another record. The studio shows the sample record's values next to each tag.

  2. Use the tabs to find the tags to add in Word:

    • Fields: Lists the record's fields, and the related fields listed in the configuration's Related Fields.
    • Related tables: Lists each set of related records. Select the columns you want, and click Copy Table to copy a ready-made table. When you paste it into Word, it includes a header and repeating rows. To include a notice that appears only when records are left out because of the Row Limit, select Add a line that appears when rows are cut at the limit.
    • Notes & snippets: Provides snippets you can copy for the record's notes, label-and-value lines, and lines that appear only when a checkbox is selected.
  3. Select a field or column to open the Tag composer:

    1. Choose whether to show the field's value, its label, or both.
    2. For a table column, choose the Row marker: [i] for the first row, or [i+1] for the row below it.
    3. Optional: Add formatters, such as a date format or a "—" for empty values. Stored value and Renders as show a preview of the result in your locale and time zone.
    4. Click Copy Tag.
  4. Paste the tags into your Word template.

The studio lists only fields you can read. To make sure every field the snapshot needs is available, build templates as a user who can read all of them.

Test and publish a template​

To change an existing template, first download the current version from the configuration, and edit it in Microsoft Word. You don't need to redeploy anything to publish your changes.

  1. Click Upload Draft, select the .docx file, enter a Version note, and click Save Draft. The draft isn't live yet, so snapshots keep using the current version.

  2. Click Render on [sample record]. The studio generates a PDF of the draft using the sample record and opens it in a preview. The preview PDF is saved to your own files, not to the sample record, so it doesn't appear in the record's Files and other users can't see it. It's removed when you publish, discard the draft, or render again. Notes appear empty in a test render. To check them, generate a snapshot from a record.

  3. When the preview looks right, click Publish as vn. If the template doesn't exist yet, click Publish as Asset File instead. You can publish only after the draft renders successfully. From then on, new snapshots use this version.

Each configuration can have only one draft at a time. Uploading another draft replaces the current one, and Discard deletes it. Leaving the configuration also discards the draft. While a draft exists, your browser asks you to confirm before you reload or close the tab.

To go back to an earlier version, open History and click Restore as vn on that version. Restoring publishes a copy of the earlier version as a new version, so no version is ever deleted. To save the live version or any earlier version, click Download.

note

To upload a draft, publish, or restore a template, you need the Modify All Data permission in addition to the Record Snapshot Administrator permission set. Administrators without Modify All Data can browse fields, copy tags, and download templates, but they can't upload or render drafts. They see a notice that only administrators can change templates.

To render a draft, you also need the Rendition Generation User (CA_Rendition_Generation_User) permission set.

Templates can be up to 4 MB.

Template tags​

Templates use these tags. The studio creates them for you.

TagShows
{d.Case.CaseNumber}A field on the snapshot record. The object API name comes first.
{d.MED_Request__c.MED_Product__r.Name}A field on a related record. The path must be listed in Related Fields.
{d.labels.Case.CaseNumber}The field's label, in the user's language.
{d.MED_Requests__r[i].Name}A column in a set of related records. Put the tag in a table row, and put the same tag with [i+1] in the row directly below it. The row then repeats once for each related record.
{d.truncated.MED_Requests__r}true if some related records were left out because of the Row Limit. Copy Table can add a line that uses this tag for you.
{c.notes[i].title}A note on the record. Notes use the c. prefix and are listed oldest first. They appear empty in a studio test render.

To format a value, add a formatter after a colon, for example {d.Case.CreatedDate:formatD(YYYY-MM-DD)} or {d.MED_Request__c.MED_Answer_Rich__c:html}. Picklist values show their labels in the user's language, without a formatter.

Permissions​

Permission setAPI nameAllows
Record Snapshot UserCA_Record_Snapshot_UserGenerating and sending snapshots. Also assign Rendition Generation User.
Rendition Generation UserCA_Rendition_Generation_UserAccess to the Mavens Rendition Service. Without it, snapshot generation fails.
Record Snapshot AdministratorCA_Record_Snapshot_AdministratorEditing CA Rendition Parent Config and CA Rendition Child Config records, and opening the Snapshot Template Studio. Uploading, publishing, and restoring templates also require the Modify All Data permission. This permission set doesn't allow generating snapshots. To also generate snapshots, assign Record Snapshot User.

The Medical Information Cloud - Setup plan adds these permission sets to permission set groups:

  • Medical Information Cloud User Permissions: Record Snapshot User and Rendition Generation User
  • Medical Information Cloud Admin Permissions: All three permission sets

Users who generate snapshots must also be pre-authorized for the Mavens Rendition Service external client app. To authorize users, see Mavens Rendition Service.

Users who send snapshots also need:

  • Read access to the configuration's To Address Field.
  • Edit access to the configuration's Date/Time Sent Field. In the included Adverse Event and Product Quality Complaint configurations, this is MED_Date_Time_Submitted__c.