Skip to content

Ability to run post-install anonymous scripts on unlocked packages #1338

Closed

Description

@wspringe

Is your feature request related to a problem? Please describe.
Currently, we are only able to run post-install anonymous scripts for 2GP managed packages.

What are you trying to do
Execute anonymous scripts after the install of an unlocked package, so we can automate some action like record creation after the package is installed. We want the setup and record creation for an unlocked package to be fully automated from an SFDX command so that we can avoid missing manual steps after an unlocked package installation.

Describe the solution you'd like
Ability to specify one or multiple anonymous scripts in the sfdx-project.json file of an SFDX project that is an unlocked package, and the script(s) will execute after the unlocked package is installed into a Salesforce org.

Describe alternatives you've considered
SFDX plugin, internal wrapper CLI solution, manually executing scripts after package installation

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. added
    featureIssue or pull request for a new feature
    on Dec 21, 2021
  2. github-actions commented on Dec 21, 2021

    @github-actions

    Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.

  3. uip-robot-zz commented on Dec 21, 2021

    @uip-robot-zz

    This issue has been linked to a new work item: W-10346855

  4. yippie commented on Jan 4, 2022

    @yippie

    Yes pease, this would be super helpful

  5. kyle-chiu commented on Jan 4, 2022

    @kyle-chiu

    This is a great idea!

  6. Slgrande commented on Jan 4, 2022

    @Slgrande

    We really need this!

  7. madhankumargi commented on Jan 4, 2022

    @madhankumargi

    Much needed for automating CICD process

  8. pravirpal commented on Jul 19, 2023

    @pravirpal

    much needed, awaiting this feature.

  9. locked and limited conversation to collaborators on Aug 1, 2023
  10. converted this issue into a discussion #2379 on Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions