You need to sign in to do that
Don't have an account?
sk2006
SelfServiceUser type not available for my org - perl
describeSObject gives me this:
$VAR1 = {
'Body' => {
'Fault' => {
'detail' => {
'fault' => bless( {
'exceptionMessage' => 'sObject type \'SelfServiceUser\' is not supported.',
'exceptionCode' => 'INVALID_TYPE'
}, 'InvalidSObjectFault' )
},
'faultcode' => 'soapenv:Server',
'faultstring' => 'INVALID_TYPE: sObject type \'SelfServiceUser\' is not supported.'
}
}
};
describeGlobal also does not list SelfServiceUser as an available type. Any ideas?
SK
$VAR1 = {
'Body' => {
'Fault' => {
'detail' => {
'fault' => bless( {
'exceptionMessage' => 'sObject type \'SelfServiceUser\' is not supported.',
'exceptionCode' => 'INVALID_TYPE'
}, 'InvalidSObjectFault' )
},
'faultcode' => 'soapenv:Server',
'faultstring' => 'INVALID_TYPE: sObject type \'SelfServiceUser\' is not supported.'
}
}
};
describeGlobal also does not list SelfServiceUser as an available type. Any ideas?
SK
my $client = SOAP::Lite
# ->service('file:/usr/local/lib/perl5/site_perl/5.8.5/partner.wsdl')
->deserializer(Salesforce::Deserializer->new)
->on_action( sub { return '""' } )
->uri('urn:partner.soap.sforce.com')
->proxy($self->{address});
<?xml version="1.0" encoding="UTF-8"?>
<!--
Salesforce.com Partner Web Services API Version 7.0
Generated on 2006-03-23 21:24:48 +0000.
Copyright 1999-2006 salesforce.com, inc.
All Rights Reserved
-->
<definitions targetNamespace="urn:partner.soap.sforce.com"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:fns="urn:fault.partner.soap.sforce.com"
xmlns:tns="urn:partner.soap.sforce.com"
xmlns:ens="urn:sobject.partner.soap.sforce.com">
<types>
#!/usr/local/bin/perl
use CGI;
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
use Net::LDAP;
use Net::SMTP;
use SOAP::Lite;
use Salesforce;
use Data::Dumper;
my $service = new Salesforce::SforceService;
my $port = $service->get_port_binding('Soap');
$port->login('username' => 'myusername@myorg.com','password' => 'mypass')
|| die "Could not login to salesforce.com";
$result = $port->describeGlobal();
print Dumper($result->valueof());
regards,
"..... This project was created and is maintained by the AppExchange open source community - these samples are not supported by salesforce.com, and should be considered experimental. See enclosed documentation for requirements and installation instructions, and route and questions to the AppExchange message boards."
- I want to run a query to see a Contact is active for SelfService and if yes, I want to create the new record.
- I have had success running creates with my setup but just cant seem to satisfy the above requirement.
Also while I have your kind attention, I am unable to query the Contact object even using the where clause. For example, this piece of code gives me zip.
$sf = new Salesforce::SforceService->get_port_binding('Soap');
$sf->login( 'username' => 'username@myorg.com','password' => 'secret' );
my $email = 'khehra1@ppllc.com';
$r = $sf->query('query' => "select * from Contact where Email = 'username@ppllc.com'") ;
print Dumper($r->result);
regards,
Sukh
* is not a valid field name
try "select id,firstname,lastname from ..."
when you say zip, do you get back a fault or zero records?
I'm not sure if that is the problem or not.
it sounds like the simple case of running a query on contacts is not working, what version of SOAP lite are you using ?
are you on ActiveState or is this some flavor of perl on unix?