• DeveloperProbs
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 4
    Replies
Hi All,

Can anybody show sample code for "describeLayout" function in perl.

#$sforce->describeLayout( 'type' => 'Account' );

Thanks in advance
Hi ALL,

Please let me know, how figure out that a certain item/field in a  object is visible on page layout.Using API.

My requirement is to list all the items in Account Object, which are visible on form layout.

I am using perl API.

Thanks in advance.



Hi,

I want to figure out by having "object name" and "item name"  whether  the item is a lookup item or not.

if it is a look item then referenced from which object.

Please let me know what fuction is available in PERL to perform the same.

Thanks in advance


Does anybody has any idea about the creation of selfservice user through perl API.

Send me the sample code  .

Thanks In Advance.



I have one object "Var__c"  with one column as "name". I can do select or can fetch data from this object, while inserting data it gives error like

Missing entity type information. sObject requires a separate 'type' field be sen
t. at var.pl line 29
Can't call method "result" on an undefined value at var.pl line 32.


Please help me on this its urgent for me.
I have written program as follows

Thanks in advance
-------------------------------------------------------------------------------------------------
#use strict;
use DBI;
use WWW::Salesforce::Simple;
use Tie::Hash::Indexed;
use SOAP::Lite;

my $sforce = WWW::Salesforce::Simple->new(
        'username' => $ARGV[0],
        'password' => $ARGV[1]
);

tie my %Solution, 'Tie::Hash::Indexed';
%Solution =
(
Id => 323,
OwnerId => '',
IsDeleted => '',
Name =>'varun',
CreatedDate => '',
CreatedById => 322,
LastModifiedDate =>'' ,
LastModifiedById =>322 ,
SystemModstamp => ''
);

my $res = $sforce->create( type => "Var__c" , %Solution);


if ($result->result->{"success"} eq "false")
{
   print $result->result->{errors}->{message} . "\n";
}
Hi,

I want to figure out by having "object name" and "item name"  whether  the item is a lookup item or not.

if it is a look item then referenced from which object.

Please let me know what fuction is available in PERL to perform the same.

Thanks in advance


I have one object "Var__c"  with one column as "name". I can do select or can fetch data from this object, while inserting data it gives error like

Missing entity type information. sObject requires a separate 'type' field be sen
t. at var.pl line 29
Can't call method "result" on an undefined value at var.pl line 32.


Please help me on this its urgent for me.
I have written program as follows

Thanks in advance
-------------------------------------------------------------------------------------------------
#use strict;
use DBI;
use WWW::Salesforce::Simple;
use Tie::Hash::Indexed;
use SOAP::Lite;

my $sforce = WWW::Salesforce::Simple->new(
        'username' => $ARGV[0],
        'password' => $ARGV[1]
);

tie my %Solution, 'Tie::Hash::Indexed';
%Solution =
(
Id => 323,
OwnerId => '',
IsDeleted => '',
Name =>'varun',
CreatedDate => '',
CreatedById => 322,
LastModifiedDate =>'' ,
LastModifiedById =>322 ,
SystemModstamp => ''
);

my $res = $sforce->create( type => "Var__c" , %Solution);


if ($result->result->{"success"} eq "false")
{
   print $result->result->{errors}->{message} . "\n";
}

Hi,

I am trying to login to Salesforce Web service  But every time I am repeatedly getting connection timed out message. The stack trace is given below and appreciate any input on this issue

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

faultSubcode:

faultString: java.net.ConnectException: Connection timed out: connect

faultActor:

faultNode:

faultDetail:

{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out: connect

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(Unknown Source)

at java.net.PlainSocketImpl.connectToAddress(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)

at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)

at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:183)

at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:390)

at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137)

at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

at org.apache.axis.client.Call.invokeEngine(Call.java:2765)

at org.apache.axis.client.Call.invoke(Call.java:2748)

at org.apache.axis.client.Call.invoke(Call.java:1784)

at TestMsg.doit(TestMsg.java:50)

at TestMsg.main(TestMsg.java:101)

{http://xml.apache.org/axis/}hostname:ukhw42277

java.net.ConnectException: Connection timed out: connect

at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:146)

at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

at org.apache.axis.client.Call.invokeEngine(Call.java:2765)

at org.apache.axis.client.Call.invoke(Call.java:2748)

at org.apache.axis.client.Call.invoke(Call.java:1784)

at TestMsg.doit(TestMsg.java:50)

at TestMsg.main(TestMsg.java:101)

Caused by: java.net.ConnectException: Connection timed out: connect

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(Unknown Source)

at java.net.PlainSocketImpl.connectToAddress(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)

at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)

at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:183)

at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:390)

at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137)

... 9 more

Exception in thread "main"

Thanks,

Rathina