Skip to main content

#SFDX0 discussing

🚀 Introducing Simple SF CLI: Supercharge Your Salesforce Deployments!

 

I'm excited to share my recent side project: Simple SF CLI, a lightweight 11 kb, Node.js-powered command-line tool crafted to simplify and accelerate Salesforce DX (SFDX) workflows. With this tool, you can:

 

1. 🛠️ Convert, package, and deploy in just 5-7 seconds, far faster than installing Salesforce CLI or SGD.

2. 🚫 Skip the need for Salesforce CLI or additional plugins.

3. 🔗 Seamlessly integrate it into CI/CD pipelines like bitbucket, github etc.,

 

This pet project is designed to streamline your workflow and save time for developers and admins alike. Give it a try!

 

#sfcli #devops #sf #sfdx

 

Want to see it in action? go ahead and install simple-sf-cli

 

#Salesforce Developer  #SFDX CLI  #Salesforce

0/9000

Hi Everyone,

 

I updated my sf cli to the latest - 2.28.6 and I am gettig the following error when running from the command line.

Error (10): Metadata API request failed: Cannot read properties of null (reading 'split')

 

OS : OSX 14.3.1

Node: darwin-arm64 node-v21.6.1

Cli: @salesforce/cli/2.28.6

 

I tried downgrading the cli.

- I completely uninstalled the sf cli and reinstalled the following versions 2.26.10 & 2.24.4 versions.  

- I ran a simple: sf project deploy start and got the same Error (10) Metadata API request failed: Cannot read properties of null (reading 'split')

 

#Salesforce Developer  #SFDX CLI  #SFDX  #Sfdx Command

4 answers
0/9000

Developer Spotlight: Meet Nicolas Vuillamy

 

Our latest developer spotlight is on @Nicolas Vuillamy, the creator of an open-source sfdx plugin with a Visual Studio Code Extension — sfdx-hardis — that simplifies many Salesforce workflows, especially around DevOps and CI/CD.

 

Meet him here: https://developer.salesforce.com/blogs/2024/01/nicolas-vuillamy-builds-a-career-path-to-cto-in-the-salesforce-ecosystem

Developer Spotlight: Meet Nicolas Vuillamy Our latest developer spotlight is on , the creator of an open-source sfdx plugin with a Visual Studio Code Extension — sfdx-hardis — that simplifies many Sal #SFDX #Sfdx Plugins #Ci/cd #Devops

2 comments
0/9000

I have an Org Dependent Unlocked package that contains 2 approval processes -- and nothing else. It exists because when we built one of our early packages, we failed to realize that  once you put an approval process in a package, it has checked into the Hotel California, and can never leave. Everything (everything) else except for the approval processes and their associated workflows got moved to a package called Core Objects, where they have lived happily ever after , and still do.

 

But in the fullness of time, I had to make a change to one of the approval processes, and that meant updating the package it lives in. Which now stubbornly refuses to install, giving the following error:

 

04tUM0000000N1RYAU | Installed Package | 0 | 0 | 

Cannot add component of type:CustomObject named:Sponsored_Program__c subjectId:01I6g000002uvdv to this package because it is an installed component in another package with packageId:0336g000000iiTO., 

Details: package.xml: Cannot add component of type:CustomObject named:Sponsored_Program__c subjectId:01I6g000002uvdv to this package because it is an installed component in another package with packageId:0336g000000iiTO.

Now I have had this error come up before with other components, and after some muttering and swearing managed to find the offending package, and figure out which one will have to give up the element in question and resolve the issue peaceably. But this is new. This is giving me an error on a custom object that doesn't exist in the package I'm trying to install. In fact not only is the Custom Object Sponsored_Program__c not in this package, there is not even an objects folder. Custom Object that isn't in package causing an error on installationI am mystified. Bewitched, bothered, and bewildered. I've seen some weird deployment errors before, but I'm pretty sure I never had a component that wasn't in the package cause a problem because it's in a different package.

 

#Salesforce Developer #Devops #SFDX #Unlocked Packaging

2 answers
  1. Jan 23, 2024, 10:14 PM

    Nah, not stupid. But my understanding is that once you have records that have been approved by the process, the only way to delete it is to also delete the records that were approved by  it. And that's  not gonna work out well. I must confess, however, there is a lot about approval process that doesn't make sense to me. (I'm sure it made sense to somebody -- probably somebody far smarter than me -- at some point though.)

     

    I should also confess that I've taken it on the word of the guy who brought us out of the darkness of change sets and into the packaged delivery devops model that there's no way to get an approval process out of a package. But he was a pretty smart guy, and a dliligent researcher, so I don't have reason to think he's wrong. But he's since moved on, so I can't ask about the details (not that he'd be likely to remember anyway). That's exactly the sort of thing that Salesforce would do, just to keep us on our toes. It's also possible that there's an Idea out there that's been collecting points for 18 years or something to address that issue.

     

    And yes, there are a couple of ways that I can still deploy. One is to go back to a change set for the few component sin the package. I don't love it, but as far as I know there's nothing that would keep it from working. Another trick is to Deploy Source to Org directly from the project, which is a bit of a blunt force trauma, but it does work (even in production). And of course it's always possible to make the changes manually as you say. You'll get scolded by Setup that any changes you make directly will be lost if a package is deployed with this item in it, but if we could deploy a package with it, we wouldn't need to do it this way. All that said, I'd rather do it using a standardized life cycle, if for no other reason than to keep DevOps from becoming an economy sized bucket of whiskey-tango-foxtrot.

0/9000

If you work for an end-user or SI partner and are interested in using modern package based development in a mature org, come along to my session in the Developer Theatre. I'll demonstrate how org-dependent packaging can play nicely with even the richest happy soup, without the need to deconstruct the soup into its basic ingredients. 

If you work for an end-user or SI partner and are interested in using modern package based development in a mature org, come along to my session in the Developer Theatre.

Event if you aren't attending Dreamforce, there's plenty of useful resources to get you started.

 

In the session I demonstrated an application built with a combination of a fairly simple Bookstore "Happy Soup" and an org-dependent package that added the concept of book readings by authors. You can find the source to each of these on Github (after the session completes - links are not public yet) :

Trailhead, as usual, is a great place to start learning:

And a few other links that should prove useful:

#Unlocked Packaging #Org-Dependent Packages #SFDX #Dreamforce2023

3 comments
0/9000

I’m excited to announce the launch of SaltoLeap for Salesforce, a learning platform full of 100% free courses (taught by yours truly!) designed to increase your #Salesforce #DevOps knowledge and take you further in your career. 🔥

 

If you’ve enjoyed my DevOps content, these are the same but 10x better. We’ll walk through the fundamentals of #CI/CD in Salesforce and get into the nitty-gritty with #SFDX commands, #GitHub Actions configurations, and #VSCode techniques.

 

By the time you finish the courses, you’ll be surprised at how much knowledge you will have gained.

 

Plus, if you’ll be at Dreamforce, be sure to take the special 5-min DevOps course I put together (hosted on SaltoLeap) and then stop by our booth! Just show us your shared completion certificate on social media, and you’ll get an adorable Knuckles plush toy 🤩

 

Sign up below to get free access to all of SaltoLeap!

 

https://s-leap.salto.io/

I’m excited to announce the launch of SaltoLeap for Salesforce, a learning platform full of 100% free courses (taught by yours truly!) designed to increase your knowledge and take you further in your

1 comment
0/9000