Skip to main content

#Installed Packages0 discussing

We are an OEM provider and we have a 2GP package that we have developed over the years. We just tried to deploy a package to an environment and ran into a failure because of a limit on the number of flow versions. We have a flow that has 50 versions somehow and because of that we can't deploy our package anymore to that org unless we manually delete a version (I assume).

 

We looked into the flow that caused the issue and we have updated the flow xml metadata file once in the last 13 months (api version upgrade) and 4 times ever. Which leads me to ask why are flow versions for our flows being updated in every package that we create? What causes flow versions to be created?

 

This seems to be happening to every flow that we have packaged in the 2GP. When we make a new package and push to the environment we see a new flow version created. Even if the flow xml is not changed. Even if the new code changed is not related to the flow at all.

 

Here is a screenshot showing an example of all the version being changed and in this time frame we only made the one change to the flow xml metadata file - which was the version updated. Every other version of our package had no changes to the flow xml file. Flow Versions being Created with no changes

Our Development Setup/Process:

- We build the package with the command:

sf package version create --package "<package name>" --installation-key <install-key> --code-coverage

- We push our package to all of our customers organizations using the PackagePushRequest object.

- Every customer organization is created using a TrialForce template that we create from our source org. We push the package there and then create a template from that we use to create customer orgs.

- We use Scratch orgs for doing development. When we create a scratch organization and push our code to it there is only one version of each flow in the scratch org.

 

Is this happening to anyone else? 

What makes a new flow version be created in a 2GP?

Is there a way to delete older versions of a flow during the package installation process? Or through an API? I wouldn't want to clean these up manually..... for every org we have....

 

#Salesforce Developer  #Flow  #Installed Packages

7 answers
  1. Apr 29, 2025, 10:04 AM

    Salesforce often creates a new flow version during deployments, even when there are no visible changes in the flow's XML. This issue typically arises due to minor differences between the source and target environments, such as deprecated or auto-generated properties in the flow metadata. 

     

    Steps to Identify and Resolve the Issue:

    • Set Up a Clean Branch: Ensure your Git branch has no unstaged changes.
    • Deploy the Problematic Flow: Use the following command to deploy the flow to a sandbox:
    sf project deploy start -m Flow:Name_Of_The_Flow -o SANDBOX_NAME

    Observe that the deployment result indicates a "Changed" status, and a new version is created.

     

     

    • Retrieve the Flow from the Sandbox: Run the following command to pull the flow from the sandbox:
    sf project retrieve start -m Flow:Name_Of_The_Flow -o SANDBOX_NAME

    Check the retrieved XML for differences compared to your local version.

     

     

     

    • Analyze the Differences: Look for minor discrepancies, such as:
      • Deprecated properties (e.g., <migratedFromWorkflowRuleName>).
      • Auto-generated metadata (e.g., locationX, locationY, or processMetadataValues).
    • Re-deploy the Retrieved Version: Deploy the retrieved version back to the sandbox. If the deployment result now shows "Unchanged," the issue is resolved.

     

    Hope this helps!

0/9000

Hi!

 

We are working on setting up our Salesforce <> ZoomInfo integration to use Reach Out to export leads into Salesforce. Each time we test this, our leads are being assigned to a specific user and we are not sure why. Does anyone have any ideas?

 

Secondly, we'd like to the exported ZoomInfo information to create leads on different record types depending on who is creating it. Is this possible?

 

Thanks! #ZoomInfo #Salesforce Integrations #Installed Packages

4 answers
  1. Dec 9, 2021, 5:59 AM

    Hi Emma,

     

    It really depends on how you've implemented the integration, but most integrations authenticate with Salesforce using a particular user. At some point the specific user who is "creating" the leads allowed ZoomInfo access to Salesforce, and it is now logging in as him to create these records. Perhaps your integration can support setting the OwnerId based on some kind of value?

     

    Similarly with record types, it's all baout whether you have the ability to map fields from ZI to SF. RecordTypeId is just another field on the lead. 

0/9000
3 answers
  1. Dec 27, 2021, 9:32 AM

    Already said : the name of the package is "Jaadu Documents collections". The package is installed correctly. I just need to run it / integrate it into my workspace and I don't know how?

0/9000
2 answers
  1. Jul 14, 2021, 8:01 PM

    @Jake Brushafer Thanks a lot, My problem is solved now, I had another package already installed with the same name and it also had an object named property, so I uninstalled the package and tried installing the mentioned package again and it worked. Thanks for your help though

0/9000
3 answers
  1. Jul 13, 2021, 12:26 AM

    Hi Nick,

     I'm sorry. I made a mistake in the answer location.

     

    I'm confused because the display location changes steadily. Is it right?

0/9000

#Cloud Pages #Installed Packages

 

1. Can we check if an existing cloud page is being used before we un-publish it. 2. How can we find out all the places where an existing Installed Package is being used currently?

0/9000

Hello All, 

 

I have just stared my studies with Quip Learning path for Salesforce Maps and I have installed the very first link to be installed in my developer Org, however in the same learning path there is an instruction to Install another Link but the link redirects me to "Steps" to install the application and not the application itself. When I type in "Salesforce Maps" or "Map Anything" in salesforce AppExchange it gives me a host of applications to choose from. Please refer to the image to understand my query better

 

Issues: In the Learning path configuration hands-on - It says click on "Edit" next to Map Anything under Installed Packages, I do not have this particular App Installed. Please guide me to the exact link on the App from the App exchange to be downloaded. Also please help me with the license request.

3 comments
  1. Oct 2, 2020, 2:18 AM
    Thank you @Delon Lowe

    I was able to raise a case and was able to validate that I had Installed the correct App and also got a license.

    However the Quip workbook / practise book shared needs to be updated as some of the steps start with "Click on Edit next to MapAnything" and MapAnything is no longer available. Is there an updated version of the Learning Path please?

    Thank you for your time, much appreciated.

0/9000

Number of Packages Allowed per Org?

 

Hi, is there a platform limit guarding how many packages can be installed to a single org? I don't think so, but want to be sure.

Interested predominantly in unlocked packages, but if there's a limit to unmanaged, managed (of any kind), I'd like to know as well.

 

Thank you.

0/9000

Hello everyone 

 

I created a unmanage package wich include a lightning web component . 

The lightning web component display the Donor of the Week. (So i need the NPSP installed on my instance salesforce) 

My problem is that when I try to install this package I receive this error and I don't know how to solve . 

This is my error  (see my image) :

 

This app can't be installed.

There are problems that prevent this package from being installed.

Mismatching Versions 

The AppExchange Application or component you have selected is not yet available on your instance of salesforce.com. Please check back in a few days to retry the installation. Press the back button of your browser now and bookmark the AppExchange Directory page so that you can find it later.

 

Can someone help me with this problem ? 

Thank you in advance ! 

0/9000

Hi, is there an easy way to report how many CPQ licenses bought, how many used and by whom/which users? (Info visible in the Installed Packages section.). Thanks in advance!

4 comments
  1. Jan 14, 2020, 1:22 PM
    Thanks @Andy Vlasov and yep; there they are. ...I was just looking for a real reporting possibility. (Now ended-up to copy-paste operation together with standard reporting for other licenses.)
0/9000