• cpina
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hello,

I'm designing an application for SalesForce. I need to communicate to some other server, from this application (Apex Code, not external using SOAP, etc.)

I have two things in my mind:
a) Apex Code connects to other server. But I think that Apex doesn't have this capabilities (searching for TCP, etc. in documentations doesn't show me anything)

b) Use some Javascript code in client side who will connect to exterior.

For my purposes "b" is enough, if Javascript allows it :) (because security reasons and so on, but I can change users settings).

Am I forgetting to study some other option?

Thank you very much,

Carles
  • October 10, 2007
  • Like
  • 0
Hello,

I'm trying to use SalesForce Perl module (documentation is available in . I get from one example:
Code:
#!/usr/bin/perl

use Salesforce;

my $service = new Salesforce::SforceService;
my $port = $service->get_port_binding('Soap');
my $result = $port->login('username' => $user, 'password' => $pass);

$result = $port->search('searchString' => 'find {1234} in phone fields returning contact(id, phone, firstname, lastname), lead(id, phone, firstname, lastname), account(id, phone, name)');

But how I can get the result? Using query and select I can get the results executing:

Code:
foreach my $elem ($result->valueof('//searchStringResponse/result/records')) {
    printf "%s, %s\n", $elem->{Id},$elem->{Name};
}

And is working fine. But, using fine, how I can retrieve the results?

Thank you very much,

Carles


  • October 10, 2007
  • Like
  • 0
Hello,

I'm designing an application for SalesForce. I need to communicate to some other server, from this application (Apex Code, not external using SOAP, etc.)

I have two things in my mind:
a) Apex Code connects to other server. But I think that Apex doesn't have this capabilities (searching for TCP, etc. in documentations doesn't show me anything)

b) Use some Javascript code in client side who will connect to exterior.

For my purposes "b" is enough, if Javascript allows it :) (because security reasons and so on, but I can change users settings).

Am I forgetting to study some other option?

Thank you very much,

Carles
  • October 10, 2007
  • Like
  • 0