+ Start a Discussion
richardc_rsvprichardc_rsvp 

Creating a remote site from external server via API

We have a managed app that can access one of many servers external to Salesforce. The external servers include a "Salesforce set up" java server page, where we want the server to create remote site setting(s) referring to itself and possibly other servers. It looks like we could do this with a Metadata API create() call, but most Salesforce documentation says that remote site settings must be created via the page under Setup, Security Controls. Has anyone created remote site settings via the API, or found that it's not possible?

 

We want to avoid asking the admin to set up the remote site setting, or creating remote site settings for all possible servers, which will grow and become more difficult to manage.