• Emanuela
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 8
    Replies
Hi all,
In the last two days I test an application to update objects in salesforce .
since August our code wasn't updated and in August the response time to update 55 objects was about 2 minutes.
Now, with the same code and the same number of objects , the response time is 10 minutes (today) or 20 minutes (yesterday)!!!
I analyzed single ws call in every methods and those are the results for the SINGLE object update:

method login : 5651 milliseconds
enterprise login call = 5651 milliseconds

method updateDelivery : 5368 milliseconds
get delivery (custom) object = 4142 milliseconds
update delivery(custom) object = 1225 milliseconds

method updateEvent : 11616 milliseconds
get contact object = 1259 milliseconds
get lead object = 2032 milliseconds
get delivery (custom) object = 1320 milliseconds
event (custom) object creation = 6449 milliseconds

do you have any idea about the response time increase?
Thank you in advance for any response,
Emanuela

Hello,
I'm developing a page to send email with the Visualforce tool.
I've a problem : I'd like to build a select object that user could use to upload the preferred salesforce's email template in the message body.
Unfortunately , I don't understand how retrieve the list of Email Templates and the relatives bodies.
Someone can help me?
Thanks in advance for your time and efforts,

Emanuela

Hi,
some days ago I posted the message below.

http://community.salesforce.com/sforce/board/message?board.id=JAVA_development&thread.id=5269

I'm not able to set the Custom Tab visibility with Metadata API.
could you help me?

thank you very much,
Emanuela
Hi everyone,
I've build a custom tab through Metadata API. Now, I can see it into custom tab list in may Salesforce Account but I cannot make it visible in all my applications. How can I set the tab visibility through Metadata API?

thank's a lot,
Emanuela
Hi,
I've created a custom object with the metadata library and I need to add it into Contact's related list.
I' ve looked for some example into di metadata api user guide and force.com api user guide but without success.
Can anyone help me?

Cheers
Emanuela
Hi everyone,
I'm trying to create a custom object with 3 custom fields but salesforce returns the exception below :

AxisFault
 faultCode: {http://soap.sforce.com/2006/04/metadata}UNKNOWN_EXCEPTION
 faultSubcode:
 faultString: null: Must specify a nameField of type Text or AutoNumber

here the code :
Code:
            CustomObject co = new CustomObject();
            String name = "SFTestObject";
            co.setFullName(name + "__c");
            co.setDeploymentStatus(DeploymentStatus.Deployed);
            co.setDescription("Created by the Metadata API");
            co.setEnableActivities(true);
            co.setLabel(name + " Object");
            co.setPluralLabel(co.getLabel() + "s");
            co.setSharingModel(SharingModel.ReadWrite);
            
            
           
            
            CustomField nf = new CustomField();
            nf.setType(FieldType.Text);
            nf.setLabel(co.getFullName() + "TEST1");
            CustomField nf1 = new CustomField();
            nf1.setType(FieldType.Text);
            nf1.setLabel(co.getFullName() + "TEST2");
            CustomField nf2 = new CustomField();
            nf2.setType(FieldType.Text);
            nf2.setLabel(co.getFullName() + "TEST3");
            CustomField[] fieldsArray = new CustomField[]{nf, nf1, nf2};
          
            co.setFields(fieldsArray);
            AsyncResult[] ars = metaBinding.create(new Metadata[] { co} );

 
What's the problem?
Cheers
Emanuela
hi everyone,
I have a problem!
I need to create a custom object with metadata api (ver 12.0) and, searching for examples, i've found the one below :

MetadataBindingStub stub = (MetadataBindingStub) new MetadataServiceLocator().getMetadata();
stub.setTimeout(60000);

// Login using Partner WSDL
// Getting the Session ID from Partner WSDL


SessionHeader sh = new SessionHeader();
sh.setSessionId(loginResult.getSessionId());

stub.setHeader(new MetadataServiceLocator().getServiceName()
.getNamespaceURI(), "SessionHeader", sh);


CustomObject co = new CustomObject();
String name = "MyNewObj";
co.setFullName(name + "__c");
co.setDeploymentStatus(DeploymentStatus.Deployed);
co.setDescription("Created by the Metadata API");
co.setEnableActivities(true);
co.setLabel(name + " Object");
co.setPluralLabel(co.getLabel() + "s");
co.setSharingModel(SharingModel.ReadWrite);
CustomField nf = new CustomField();
nf.setType(FieldType.Text);
nf.setLabel(co.getFullName() + " Name");
co.setNameField(nf);
AsyncResult[] ars = stub.create(new Metadata[] { co} )

The problem is that I've not 'MetadataSoapBindingStub' into library generated by 'metadata wsdl', and I've not a 'MetadataServiceLocator'.
I have a 'MetadataServiceStub' but it doesn't work in the same way.
Can anyone help me? Could you tell me when I can find the 'MetadataBindingStub'?
Hi everyone,
I've build a custom tab through Metadata API. Now, I can see it into custom tab list in may Salesforce Account but I cannot make it visible in all my applications. How can I set the tab visibility through Metadata API?

thank's a lot,
Emanuela
Hi,
I've created a custom object with the metadata library and I need to add it into Contact's related list.
I' ve looked for some example into di metadata api user guide and force.com api user guide but without success.
Can anyone help me?

Cheers
Emanuela
Hi everyone,
I'm trying to create a custom object with 3 custom fields but salesforce returns the exception below :

AxisFault
 faultCode: {http://soap.sforce.com/2006/04/metadata}UNKNOWN_EXCEPTION
 faultSubcode:
 faultString: null: Must specify a nameField of type Text or AutoNumber

here the code :
Code:
            CustomObject co = new CustomObject();
            String name = "SFTestObject";
            co.setFullName(name + "__c");
            co.setDeploymentStatus(DeploymentStatus.Deployed);
            co.setDescription("Created by the Metadata API");
            co.setEnableActivities(true);
            co.setLabel(name + " Object");
            co.setPluralLabel(co.getLabel() + "s");
            co.setSharingModel(SharingModel.ReadWrite);
            
            
           
            
            CustomField nf = new CustomField();
            nf.setType(FieldType.Text);
            nf.setLabel(co.getFullName() + "TEST1");
            CustomField nf1 = new CustomField();
            nf1.setType(FieldType.Text);
            nf1.setLabel(co.getFullName() + "TEST2");
            CustomField nf2 = new CustomField();
            nf2.setType(FieldType.Text);
            nf2.setLabel(co.getFullName() + "TEST3");
            CustomField[] fieldsArray = new CustomField[]{nf, nf1, nf2};
          
            co.setFields(fieldsArray);
            AsyncResult[] ars = metaBinding.create(new Metadata[] { co} );

 
What's the problem?
Cheers
Emanuela
hi everyone,
I have a problem!
I need to create a custom object with metadata api (ver 12.0) and, searching for examples, i've found the one below :

MetadataBindingStub stub = (MetadataBindingStub) new MetadataServiceLocator().getMetadata();
stub.setTimeout(60000);

// Login using Partner WSDL
// Getting the Session ID from Partner WSDL


SessionHeader sh = new SessionHeader();
sh.setSessionId(loginResult.getSessionId());

stub.setHeader(new MetadataServiceLocator().getServiceName()
.getNamespaceURI(), "SessionHeader", sh);


CustomObject co = new CustomObject();
String name = "MyNewObj";
co.setFullName(name + "__c");
co.setDeploymentStatus(DeploymentStatus.Deployed);
co.setDescription("Created by the Metadata API");
co.setEnableActivities(true);
co.setLabel(name + " Object");
co.setPluralLabel(co.getLabel() + "s");
co.setSharingModel(SharingModel.ReadWrite);
CustomField nf = new CustomField();
nf.setType(FieldType.Text);
nf.setLabel(co.getFullName() + " Name");
co.setNameField(nf);
AsyncResult[] ars = stub.create(new Metadata[] { co} )

The problem is that I've not 'MetadataSoapBindingStub' into library generated by 'metadata wsdl', and I've not a 'MetadataServiceLocator'.
I have a 'MetadataServiceStub' but it doesn't work in the same way.
Can anyone help me? Could you tell me when I can find the 'MetadataBindingStub'?