• zhagri
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 7
    Replies
We are trying to expand the length of, “Rich Text Area” to greater than 32,768 – we’ve reached the maximum characters allowed. Do you know how to make this possible?
  • September 12, 2012
  • Like
  • 0
Please help create a Rule for the sum of server size. See below.     Validation Rule DetailError: Invalid Data.
Review all error messages below to correct your data.
Rule NameServer_Size_CalculationsActiveChecked
Error Condition FormulaTotal_Server_Size__c =
Cisco_Rack_Server_Size__c+Cisco_UCS_Server_Size__c+Dell_Node_Manager_Server_Size__c+Dell_Non_Node_Manager_Server_Size__c+HP_Rack_Server_Size__c+IBM_Blade_Size__c+IBM_Rack_Server_Size__c
Error MessageThe number does not meet conditions.Error LocationTotal Server Size
DescriptionServer_Size_Calculations totals

 

 

thanks,

Zhanna

zhanna.grinko@intel.com

 

  • February 23, 2012
  • Like
  • 0

Hi Developers,

 

We are looking to deployment a customized lead tracking mechanism where our leads are not tracked by individual contact but by the company name, having a related list "contacts". Once the company lead is qualified we want to convert the company lead into an account or opportunity. We are able to create the lead template by following custom objects steps, but need help to code the Java script to convert this custom object to an account or opportunity.

 

Custom Object: Company Leads

 

Thanks,

Zhanna - 971-533-2898

  • January 23, 2012
  • Like
  • 0

This is code for a button that coverts a custom object "Company Leads" to an "account" or "opportunity" (we call it opportunity "deployment") but it doesn't work I am getting an error message stating:

 

"A problem with the OnClick JavaScript for this button was encountered

 

Excepted:

 

 ';'

 

what is wrong with this scrip?

 

 

 

public String[] convertCompanyLeadsRecords() {

  String[] result = new String[4];

  try {

    CompanyLeads []CompanyLeads = new CompanyLeads [2];

    CompanyLeads CompanyLeads = new CompanyLeads ();

    CompanyLeads.setLastName("Mallard");

    CompanyLeads.setFirstName("Jay");

    CompanyLeads.setCompany("Wingo Ducks");

    CompanyLeads.setPhone("(707) 555-0328");

    CompanyLeads [0] = lead;

    CompanyLeads = new Lead();

    CompanyLeads.setLastName("Platypus");

    CompanyLeads.setFirstName("Ogden");

    CompanyLeads.setCompany("Denio Water Co.");

    CompanyLeads.setPhone("(775) 555-1245");

    CompanyLeads[1] = lead;

    SaveResult[] saveResults = connection.create(CompanyLeads);

    CompanyLeadsConvert []CompanyLeadsToConvert =

        new CompanyLeadsConvert[saveResults.length];;

    for (int i = 0; i < saveResults.length; ++i) {

      if ( saveResults[i].isSuccess() ) {

        System.out.println("Created new CompanyLeads: " +

            saveResults[i].getId());

        CompanyLeadsConvertToConvert[i] = new CompanyLeadsConvert();

        if ( i % 2 == 0 ) {

          CompanyLeadsToConvert[i].setConvertedStatus("Qualified");

        }

        CompanyLeadsToConvert[i].setCompanyLeadsConvertId(saveResults[i].getId());

        result[0] = saveResults[i].getId();

      } else {

        System.out.println("\nError creating new Lead: " +

            saveResults[i].getErrors()[0].getMessage());

      }

    }

    CompanyLeadsConvert Result[] lcResults =

        connection.CompanyLeadsConvert (CompanyLeadsToConvert);

    for (int j = 0; j < lcResults.length; ++j) {

      if (lcResults[j].isSuccess()) {

        String acctId = lcResults[j].getAccountId();

        System.out.println("Success! Account ID: " + acctId);

        result[1] = lcResults[j].getAccountId();

        result[2] = lcResults[j].getContactId();

        result[3] = lcResults[j].getOpportunityId();

      } else {

        System.out.println("\nError converting new CompanyLeads: " +

            lcResults[j].getErrors()[0].getMessage());

      }

    }

  } catch (ConnectionException ce) {

    ce.printStackTrace();

  }

  return result;

}

private bool CompanyLeadsConvert(string CompanyLeadsId, string contactId,

   string accountId, bool overWriteLeadSource,

   bool doNotCreateOpportunity, string opportunityName,

   string convertedStatus, bool sendEmailToOwner) 

{

 

   sforce.CompanyLeadsConvert CompanyLeadsConvert = new sforce.CompanyLeadsConvert ();

   CompanyLeadsConvert.leadId = leadId;

   CompanyLeadsConvert.contactId = contactId;

   CompanyLeadsConvert.accountId = accountId;

   CompanyLeadsConvert.overwriteLeadSource = overWriteLeadSource;

   CompanyLeadsConvert.doNotCreateOpportunity = doNotCreateOpportunity;

   CompanyLeadsConvert.opportunityName = opportunityName;

   CompanyLeadsConvert.convertedStatus = convertedStatus;

   CompanyLeadsConvert.sendNotificationEmail = sendEmailToOwner;

 

   sforce. CompanyLeadsConvertResult[] lcr = null;

   try

   {

 

      lcr = binding.convertCompanyLeads (new sforce.CompanyLeads [] { CompanyLeadsConvert});

      for (int i=0;i<lcr.Length;i++)

         if (lcr[i] 

    .success)

        {

            Console.WriteLine("Conversion succeeded.\n");

            sforce.ConvertResult result = lcr[i] 

    ;

            Console.WriteLine("The new contact id is: " + result.contactId);

         }

         else

         {

            Console.WriteLine("The conversion failed because: " + lcr[i] 

    .errors[0].message);

         }

   }

 

   catch (Exception e)

   {

      Console.WriteLine("Unexpected error encountered:\n\n" + e.Message);

      return false;

   }

 

   return true;

}

  • January 20, 2012
  • Like
  • 0

what is the code or steps to add a "convert" button to Company Leads?  Company Leads is a Custom Object/Tab.

  • January 20, 2012
  • Like
  • 0

Hi Developers,

 

Could you walk me through the process of developing a button to convert an "account" into an "opportunity"?

 

 I.e. similar to how a lead can be converted into an account.

 

thanks,

Zhanna

  • January 19, 2012
  • Like
  • 0

How do you archive text from a Rich Text Box automatically transfer to Notes and Attachments (related list).  

 

See problem:

 

Description Field: Account Update:

1.

2.

3.

4.

5

.

.

.

25.

 

After line 25, text automatically, on weekly basis, to be transferred to "notes and attachments".

 

Any suggestions?

  • August 30, 2011
  • Like
  • 0

How do you archive text from a Rich Text Box automatically transfer to Notes and Attachments (related list).  

 

See problem:

 

Description Field: Account Update:

1.

2.

3.

4.

5

.

.

.

25.

 

After line 25, text automatically, on weekly basis, to be transferred to "notes and attachments".

 

Any suggestions?

 

  • August 30, 2011
  • Like
  • 0

How do you archive text from a Rich Text Box automatically transfer to Notes and Attachments (related list).  

 

See problem:

 

Description Field: Account Update:

1.

2.

3.

4.

5

.

.

.

25.

 

After line 25, text automatically, on weekly basis, to be transferred to "notes and attachments".

 

Any suggestions?

 

 

 

 

 

 

 

Thanks,

Zhanna

 

  • August 30, 2011
  • Like
  • 0
We are trying to expand the length of, “Rich Text Area” to greater than 32,768 – we’ve reached the maximum characters allowed. Do you know how to make this possible?
  • September 12, 2012
  • Like
  • 0

Hi Developers,

 

Could you walk me through the process of developing a button to convert an "account" into an "opportunity"?

 

 I.e. similar to how a lead can be converted into an account.

 

thanks,

Zhanna

  • January 19, 2012
  • Like
  • 0

How do you archive text from a Rich Text Box automatically transfer to Notes and Attachments (related list).  

 

See problem:

 

Description Field: Account Update:

1.

2.

3.

4.

5

.

.

.

25.

 

After line 25, text automatically, on weekly basis, to be transferred to "notes and attachments".

 

Any suggestions?

 

  • August 30, 2011
  • Like
  • 0