salesforce / salesforce/offline-app-developer-starter-kit

Missing example on how to leverage/access an offline FileAttachment

Open
#139 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
54
Forks
37
Avg merge
2h 59m
Merged PRs (30d)
8

Description

Is your feature request related to a problem? Please describe.
I am currently struggling to get a good hang on how the Briefcase "File Attachments" capability can be leveraged to have a file available offline for use in a QuickAction LWC.

It feels like I am nearly there, but only a single file out of the 40 or so I have in my org makes it to the primed briefcase.

While there is an example of file upload in this repo, there is absolutely no example of actually using a file for e.g. an image to be displayed in the LWC or some more structured content that's not an image (think: CSV, JSON...).

Describe the solution you'd like
It would be lovely to have a sample that highlights how the File Attachment could be configured in the briefcase (e.g. we have up to 100 Recipe__c records configured to be in the briefcase, each of them can have 1x File Attachment of type JSON, and an example how to prime and use that File Attachment in the View QuickAction LWC).

Image

Thank you

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the repository's existing file-upload example and the Briefcase File Attachments configuration used by the QuickAction LWC. Add a sample showing how to prime an attached image or JSON file and access it offline in the LWC, with the configuration and usage steps documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.