• DannyWalker
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies

The data storage in my organization is over 91% and rising, so I have been investigating ways of using Salesforce storage limits more efficiently.

 

I noticed that 25% of the data was from Notes.  By analyzing a local copy I found that the majority of the notes were almost 5 years old and most were extremely large records important from an older system.  What I ended up doing was archiving anything over a certain size and age and replace the Note body with a link to local storage.

 

By my calculations, this should have reduced the data usage from Notes by 50%.  Two days later, the Current Data Storage Usage page has not changed.

 

Are storage calculations only done by record count, and not record size?  Would I be better off rolling up the note bodies into the parent records, or at least the archive links in this case?

Hi,

 

I need help figuring out how to have Apex consume a web service using the sObject datatype. 

 

I'm developing a wizard in Apex/Visualforce that will call an external web service when it is submitted to run a process (generate encrypted activation keys and download links on our local system).

 

I wrote the web service that Salesforce will talk to in .NET and figured out how to do this securely by reading a few articles and suggestions here.  The web service makes a call back to through the Partner WSDL to verify the session id, org id, and user id.

 

The problem I'm having is in sending complex data types.  On the .NET side of things, I have the definition of an sObject from the Partner WSDL and set the web service up to accept an sObject and an array of sObjects as parameters.  I then ran the service and tagged on "?WSDL" to have .NET create it's own service definition.

 

Here's where things get messy: When I go back to Salesforce and generate Apex classes from this definition, it creates a sObjectPartnerSoapSforceCom class from the namespace and sObject_x within it.

 

I understand WHY it ends up doing this, but how can I work around this?  Possibly by manually editting the WSDL?

 

My goal is to have Salesforce talk cleanly to .NET using the sOBject datatype without the mess of having to translate an sObject_x into an sObject.  I already translate the C# sObject into something else on that end, it seems messy to do it on both ends.  

 

I want Salesforce to know that it is sending a datatype that it already knows about because this datatype was defined from a definition Salesforce gave me in the first place.

 

Here is the class that the WSDL generates: 


//Generated by wsdl2apex

public class sobjectPartnerSoapSforceCom {
public class sObject_x {
public String type_x;
public String[] fieldsToNull;
public String Id;
private String[] type_x_type_info = new String[]{'type','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
private String[] fieldsToNull_type_info = new String[]{'fieldsToNull','http://www.w3.org/2001/XMLSchema','string','0','-1','true'};
private String[] Id_type_info = new String[]{'Id','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] apex_schema_type_info = new String[]{'urn:sobject.partner.soap.sforce.com','true','false'};
private String[] field_order_type_info = new String[]{'type_x','fieldsToNull','Id'};
}
}


-Danny Walker

Message Edited by DannyWalker on 08-12-2009 07:54 AM
Message Edited by DannyWalker on 08-12-2009 08:05 AM

I have created a custom button called Send Notification which opens a send email window. Here is the code:

 

location.replace('/email/author/emailauthor.jsp?retURL=/{!SFDC_Bug__c.CreatedById}&p3_lkid={!SFDC_Bug__c.Id}&rtype=003&p2_lkid={!Case.ContactId}&template_id=00X50000001Sjp9');

 

The challenge I am having is twofold:

1. When I click the button, on the Send Email screen, there is no From field so I cannot select the same system address we use for cases so responses go directly into the custom tab item. 

2. Once the email is sent, you are not taken back to the previous page, but to the senders Profile page in Salesforce. Why?

 

Any advice would be appreciated. Thanks!

  • September 15, 2011
  • Like
  • 0

The data storage in my organization is over 91% and rising, so I have been investigating ways of using Salesforce storage limits more efficiently.

 

I noticed that 25% of the data was from Notes.  By analyzing a local copy I found that the majority of the notes were almost 5 years old and most were extremely large records important from an older system.  What I ended up doing was archiving anything over a certain size and age and replace the Note body with a link to local storage.

 

By my calculations, this should have reduced the data usage from Notes by 50%.  Two days later, the Current Data Storage Usage page has not changed.

 

Are storage calculations only done by record count, and not record size?  Would I be better off rolling up the note bodies into the parent records, or at least the archive links in this case?

Hi,

 

I need help figuring out how to have Apex consume a web service using the sObject datatype. 

 

I'm developing a wizard in Apex/Visualforce that will call an external web service when it is submitted to run a process (generate encrypted activation keys and download links on our local system).

 

I wrote the web service that Salesforce will talk to in .NET and figured out how to do this securely by reading a few articles and suggestions here.  The web service makes a call back to through the Partner WSDL to verify the session id, org id, and user id.

 

The problem I'm having is in sending complex data types.  On the .NET side of things, I have the definition of an sObject from the Partner WSDL and set the web service up to accept an sObject and an array of sObjects as parameters.  I then ran the service and tagged on "?WSDL" to have .NET create it's own service definition.

 

Here's where things get messy: When I go back to Salesforce and generate Apex classes from this definition, it creates a sObjectPartnerSoapSforceCom class from the namespace and sObject_x within it.

 

I understand WHY it ends up doing this, but how can I work around this?  Possibly by manually editting the WSDL?

 

My goal is to have Salesforce talk cleanly to .NET using the sOBject datatype without the mess of having to translate an sObject_x into an sObject.  I already translate the C# sObject into something else on that end, it seems messy to do it on both ends.  

 

I want Salesforce to know that it is sending a datatype that it already knows about because this datatype was defined from a definition Salesforce gave me in the first place.

 

Here is the class that the WSDL generates: 


//Generated by wsdl2apex

public class sobjectPartnerSoapSforceCom {
public class sObject_x {
public String type_x;
public String[] fieldsToNull;
public String Id;
private String[] type_x_type_info = new String[]{'type','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
private String[] fieldsToNull_type_info = new String[]{'fieldsToNull','http://www.w3.org/2001/XMLSchema','string','0','-1','true'};
private String[] Id_type_info = new String[]{'Id','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] apex_schema_type_info = new String[]{'urn:sobject.partner.soap.sforce.com','true','false'};
private String[] field_order_type_info = new String[]{'type_x','fieldsToNull','Id'};
}
}


-Danny Walker

Message Edited by DannyWalker on 08-12-2009 07:54 AM
Message Edited by DannyWalker on 08-12-2009 08:05 AM