I was wondering whether there is any way to build an application to be deployed in AppExchange which may have some customizable class or maybe use some code on the customer side.
My situation is as follows: I'm preparing an application which connects to my own WebService and I'm defining a Constants class to set the login credentials for that WS, which would be different for every new organisation using my App. Thus, for every installation I would need to change these values for the organisation ones.
In the other hand, I'm also dependant on the objects that the organisation would want to send to my WS: sometimes that organisation may want to send custom objects which would need some previous concrete processing. Actually I'm isolating all organisation dependant code into one class called SpecificDataProcessor but I feel that that's not the right approach because I won't be able to edit that SpecificDataProcessor for each organisation that is installing my App.
Of course, the customer would need to add custom Triggers to fire my code, but I think this is not a problem at all. Or is it?
Can you provide me the best solution for all of this situation? Is it even possible to build AppExchange apps which are organisation-model dependant?
Thank you very much. Martín.