function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Access outside database from within salesforce

can i access one of my server databases from within salesforce?.
Brendan LallyBrendan Lally
u can easily link to an external website via S-Control, URL links, VF pages etc..
so that is a seperate pop-up window or inline via iframe

if u are programatically trying to access your external db then thats a bit hard and u need 2 know how your db is 'exposted' (rest, soap etc..)
U can access that data and pull back into SF via HTTP access, SOAP call etc.. but need more info on how your ext db is setup

so i can run a python cgi script from salesforce?. How would i do this in visualforce?.
Brendan LallyBrendan Lally
You cannot run a cgi script in SF but you can run Apex/S-Control code within SF (via triggers, workflow, called from VF/S-Controls etc.) that "calls out" to an external web service.

This ext web service (running Python cgi code on your/hosted server) can then 'service' that call coming in from SF (from your org), process it, read your db (reading params passed etc.) and send results back up.
Your SF appl then 'reads' in the results from that call and saves 2 your objects, executes other code (Apex classes) etc..

If you want VisualForce (VF) (which is just a front-end replacment giving you more control) then it has access to data and methods on back-end Apex code which can do whatever u need.

Here's an example of calling ext web services and passing parms -

Mashup examples -

Calling via a button -

Calling via Apex to .Net -

Calling into SF via API -

Python dev is in here -