Oxymore
Oxymore

Reputation: 215

Autocomplete field using external API with Salesforce

Is it possible to create an autocompleted field using data from an external (non Salesforce) REST/JSON API?

I guess that if I try to do it I'll run in some same-origin policy problems. So maybe using an APEX class acting as proxy between my JS and my API?

Upvotes: 0

Views: 701

Answers (1)

Sam
Sam

Reputation: 1331

You could use the sforce.connection.remoteFunction funciton from the ajax tookit to get the data from external servers. You will not get the same-orign policy error. And then you could use the jQuery's autocomplete plugin to achieve the auto-complete functionality

Upvotes: 2

Related Questions