Skip to main content

#Continuous Deployment0 diskutieren mit

Starting in 30 Minutes: #AskMeAnything with the Salesforce Developer Advocates!

Our experts today are Kevin Poorman and Philippe Ozil, and they'll be answering all your questions on CI/CD and DevOps.   

 

To participate:

  1. Ask your question here ⬇️ using the #SFDevsAMA tag. 
  2. Join us for the broadcast to see your question answered! 

See you soon!

#CICD #Devops #SFDX CLI #Salesforce CLI #Continuous Integration #Continuous Delivery #Continuous Deployment #TrailblazerCommunity

36 Kommentare
  1. 26. Jan. 2022, 17:53

    Question from venkyonutube1 on YouTube: ​Off topic for today's session. What happened to Code builder? Will it be GA anytime soon? is there any way to create or edit LWC on a browser based tool?

0/9000

TOMORROW January 26th: ASK ME ANYTHING with the Salesforce Developer Advocates!

 

Join Salesforce Developer Advocates Kevin Poorman and Philippe Ozil here for our monthly feature, Ask Me Anything! This 1-hour session is your chance to get the answers you need to succeed. Bring your questions! 

  • Date: January 26th, 2022
  • Time: 9am PT / 5pm GMT / 6pm CET / 9:30pm IST 
  • Theme: CI/CD and DevOps
  • Location: Right here, on our Salesforce Developers Trailblazer Community page!

Click here to add it to your Google Calendar.  This event will feature a live session from our YouTube channel and the developer advocates will answer questions that you post here using the official #SFDevsAMA tag. The live stream link will be shared on this page just before the event goes live.

#CICD #Devops #SFDX CLI #Salesforce CLI #Continuous Delivery #Continuous Integration #Continuous Deployment 

0/9000

January 26th: ASK ME ANYTHING with the Salesforce Developer Advocates!

 

Join Salesforce Developer Advocates Kevin Poorman and Philippe Ozil here for our monthly feature, Ask Me Anything! This 1-hour session is your chance to get the answers you need to succeed. Bring your questions! 

 

  • Date: January 26th, 2022
  • Time: 9am PT / 5pm GMT / 6pm CET / 9:30pm IST 
  • Theme: CI/CD and DevOps
  • Location: Right here, on our Salesforce Developers Trailblazer Community page!

Click here to add it to your Google Calendar.  This event will feature a live session from our YouTube channel and the developer advocates will answer questions that you post here using the official #SFDevsAMA tag. The live stream link will be shared on this page just before the event goes live. 

January 26th: ASK ME ANYTHING with the Salesforce Developer Advocates! Join Salesforce Developer Advocates Kevin Poorman and Philippe Ozil here for our monthly feature, Ask Me Anything! This 1-hour se

#CICD #Devops #SFDX CLI #Salesforce CLI #Continuous Delivery #Continuous Deployment #AskMeAnything #CommUpdates

0/9000

Hi

I invested a lot of time, trying to generate a valid 2GP package and install it to a newly created Scratch Org without any success.

 

Do you have some tips which flows i should use?

 

I tried release_2gp_beta but i get always an error when i install the package in a Scratch Org created over CumulusCI (with cci org scratch dev dev-test and then cci flow run dependencies --org dev-test to install npsp). First i had issues with a ConnectedApp then i had a general error message like in the attachment.

 

Have i missed something?

 

And one more thing i don't understand: when i have a release-tag in github-repo, the release_2gp_beta fails with the error:

Response content: [{'message': 'Can’t create the package version. The ancestor package version specified in the sfdx-project.json file hasn’t been promoted and released. Release the ancestor package version before specifying it as the ancestor in a new package or patch version.', 'errorCode': 'INVALID_INPUT', 'fields': []}]

Run this command for more information about debugging errors: cci error --help

 

Do you have some informations about this error?

7 Kommentare
  1. 1. Juni 2021, 13:04
    @David Reed It took me a bit of time, but the problem seems to be the configured install_class. if i remove this property in cumulusci.yml then release_2gp_beta create a package that can be installed successfully...
0/9000

Hello all,

what are your best practice recommendations for #Continuous Deployment with #ExperienceBundles enabled? The experience bundle tree with all the details like views shows up in the dev tools but in our deployment tool Copado I only get the experience bundle as a whole. Is this a limit of the tool or the API?

Deploying the whole community each time in one piece although only a specific page update is needed seems like a high risk for a larger community. I have hoped that the switch to ExperienceBundles would give admins the chance to deploy on a more granular level like one single page including translations and component settings.

Thanks

Tobias

#deployment

2 Kommentare
0/9000

Hello! We recently switched over from metadata format to source format in our source control (Github), and created new CI/CD pipelines in Azure to handle source format builds and releases. Since we made that change though, I've been finding that every Continuous Deployment release to our sandbox orgs is creating a new version of our flows and processes, even though those flows were not actually changed/updated in the release.

 

Since we have multiple builds a day being released, flow versions are rapidly proliferating and we have started hitting the "too many flow versions" error on our releases due to hitting 50 versions on certain flows.

 

Previously, our flows did not have an "API Version for Running", but all of the new versions that are automatically created show an API Version for Running of 49.0. I am not sure why they are getting added as 49.0 instead of our current org API version 51.0. I have read this stackexchange thread on the topic, which suggests that perhaps adding the current API version of the target environment to the flow-meta.xml file would resolve the issue, but I am wondering if there is a different solution that wouldn't require us to always use the latest api version for all of flows.

25 Kommentare
  1. 5. Feb. 2021, 23:31

    Gotcha.

    The invocable actions fix is in review right now, so it'll probably be in production sometime this month. The fix is being performed by a different team so I don't have full details, but I've subscribed to alerts on the work item and will update once I hear more.

0/9000

Hey everyone,

 

I'm planning to move from Chain-Set Deployment approach to Org Development Model which can provide more flexible and scalable environment for development. Also it can provide source tracking in Version Control System such as Github. When I download the metadata from my Production Org and zip the folder, I try to deploy the zip folder to a fresh created scratch org with command `sfdx force:mdapi:deploy`, however, many errors prop out.

 

Most errors are related to the objects in managed packages are not found and namespace in those packages cannot be recognized. I have purchased and installed several managed packages and I've used some of the objects in those packages in my own triggers. So how could I include those managed packages in the metadata that I used to deploy to a scratch org or another sandbox?

 

The second type of errors are the Opportunity access level below the organization default when I try to deploy Role. I have changed the Opportunity access level to Private in my Production Org, however, I checked that the fresh created scratch org with default access level Read/Write. How could I set the default access level of Opportunity to Private instead of Read/Write when I create the scratch org? Or the Org Development Model approach is not recommended to use scratch org for first stage testing in the CI/CD pipeline?

 

Best regards,

Angus

1 Kommentar
  1. 22. Jan. 2021, 07:16

    Hi Angus,

    First of all don’t use deploy/retrieve in a scratch org, use push and pull instead.

    Regarding the issues you have with the managed package, I use a bash script to create a new scratch org, install the needed managed package and perform all the operation needed before I push the changes to the scratch org.

    I suggest to check this repository

    https://github.com/trailheadapps/lwc-recipes , the script you have to check is in the bin folder named install-scratch.sh
0/9000