0

Sorry I know this is a weird (probably dumb) question.

We have a managed package that uses actual salesforce custom object records for its configuration. It is an ecommerce platform where the website content and code is managed as salesforce records. Eg you have a record with a long text field that contains some code (liquid, html, css, and js). There are hundreds of records.

Making edits is a pain, as you can imagine. All the good things about an IDE working with metadata are lost.

I'm wondering if there is a way to overcome this? Basically, is there a way to retrieve salesforce records into a code editor and be able to push them back to the org?

4
  • I mean, technically you could use anonymous apex (.apex file in the /scripts/apex/ directory of an SFDX project) to query and update records, but that doesn't really sound like what you're after. You wouldn't see the html and such in the editor and get syntax highlighting, etc... Your current solution sounds like shoving everything into the square hole. Are static resources an option (keep your js/html/css as separate files, but in force-app/main/default/staticresources)? Commented Jun 24 at 1:18
  • Agree about square peg round hole. I have no control over it as it's a managed package. I was thinking about maybe using custom metadata that "synced" with the records, but it probably more trouble than it's worth. Commented Jun 24 at 1:43
  • Is it a managed package that you're using, or a managed package that you've created/distribute? I assumed that you're the one making the managed package (and it does appear that Managed Packages can include static resources). Commented Jun 24 at 2:04
  • A managed package I am using. Hence no control over how it works unfortunately Commented Jun 24 at 2:49

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.