+ Start a Discussion
DCSDCS 

configuration settings

This is more kind of best practice question. I my application, there are apex classes that is making outside webservice calls. Currently the endpoint url is within the apex class. The endpoint urls from the test sandbox calls out to test webservice whereas production calls out to the production webservice.

 

Since the endpoint urls are different, before deploying to production, I need to change the class to call production endpoint url and then later change in test sandbox to call test webservice. 

 

 

What is the  best place to store similar configuration setting so that this remain outside of the apex code.I have read in the forum to use seperate custom configuration objects? Is there another way?

Nick1746323Nick1746323

Hi,

 

Have a look into "Custom Settings" (Setup -> Develop -> Custom Settings) - this is a recent feature that I believe is intended to help with these kind of situations.

Message Edited by Nick1746323 on 11-13-2009 12:50 PM