Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set environment variable on the apex trigger #33

Open
beitsafejess opened this issue Feb 25, 2022 · 1 comment
Open

Set environment variable on the apex trigger #33

beitsafejess opened this issue Feb 25, 2022 · 1 comment

Comments

@beitsafejess
Copy link

Thanks for the work on this project!

Is there a way to set a different endpoint url when it's triggered from a production vs sandbox environment?

At the moment, i need to go and set the url in the trigger to be the production webhook endpoint before deploying the change set, and then reverting it back to sandbox for our staging environment setup with our salesforce sandbox.

@jamesward
Copy link
Owner

I think the best way to handle this is to just go edit the generated Apex code and fetch the url from config instead of the hard-coded value. Let me know if that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants