• Salesforce Partner 4
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
What are the best practices for configuring my Appexchange 2GP Managed App during/upon installation by an Org Admin?
I would like the admin user to provide some (guided/unguided) information to the App in order to properly install the app.
That Information would affect how the app is installed, which custom objects to create, which custom fields to add, etc...
I read a question/answer here
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008q7cIAA
But that's over 11 Years ago, So I need a fresh insight on that point.
What are the best practices for configuring my Appexchange 2GP Managed App during/upon installation by an Org Admin?
I would like the admin user to provide some (guided/unguided) information to the App in order to properly install the app.
That Information would affect how the app is installed, which custom objects to create, which custom fields to add, etc...
I read a question/answer here
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008q7cIAA
But that's over 11 Years ago, So I need a fresh insight on that point.

Hi.

 

I am developing a new package and I need to define some configuration variables.

 

Note,that the configuration variables can be updated by users during the app lifecycle.

 

What migth be the best way to implement this?

 

I have tried to use Custom Settings but when I deploy the package in a new org, the variables values get lost.

 

What am I doing wrong? Or is there a better way to implement this?

 

Is there a way to run code when the package is deployed?

 

 

Thanks.