• TheBomb
  • NEWBIE
  • 0 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 6
    Replies
This trigger does _not_ save 'Hello!' to the Area__c field on the case, I can't figure out why.  There are no errors.  Here's the log output:

*** Beginning copyFieldsOnCreate on Case trigger event bulk AfterInsert for 500T0000000n9Tf

20070731134615.308:Trigger.copyFieldsOnCreate: line 1, column 1: TriggerBody: copyFieldsOnCreate
20070731134615.308:Trigger.copyFieldsOnCreate: line 2, column 3: SelectLoop:Static: name: Trigger.new, type: LIST:SOBJECT:Case
20070731134615.308:Trigger.copyFieldsOnCreate: line 2, column 31: Block with 3 statements
20070731134615.308:Trigger.copyFieldsOnCreate: line 6, column 5: DeclareVar: Local: name: c, type: SOBJECT:Case with initial value(s): InlineQuery: [select c.id, c.Area__c from Case c where c.Id = :ca.Id]
20070731134615.308:Trigger.copyFieldsOnCreate: line 6, column 14: SOQL query with 1 row finished in 13 ms
20070731134615.308:Trigger.copyFieldsOnCreate: line 6, column 5: initial value: Case:{Id=500T0000000n9TfIAI}
20070731134615.308:Trigger.copyFieldsOnCreate: line 7, column 5: SOBJECT:Case.Area__c assigned Literal: Hello!
20070731134615.308:Trigger.copyFieldsOnCreate: line 8, column 5: Update: SOBJECT:Case
20070731134615.308:Trigger.copyFieldsOnCreate: line 8, column 5: DML Operation executed in 352 ms

Cumulative resource usage:
Number of SOQL queries: 1 out of 20
Number of query rows: 1 out of 1000
Number of DML statements: 1 out of 20
Number of DML rows: 1 out of 100
Number of transaction control statements: 0 out of 0
Number of script statements: 3 out of 10200
Maximum heap size: 0 out of 100000


*** Ending copyFieldsOnCreate on Case trigger event bulk AfterInsert for 500T0000000n9Tf
Can anyone point out my flaw?

Thanks!

I have written some code to select some custom objects in php from a web page and thought I might use the same code to perform the same operation using cli php...but it doesn't work. For some reason, the query returns a SOAP error message without any message in it! Maybe this is a SOAP issue.

I'm using nusoap/debian/php/linux and a developement sforce application while I am prototyping some functionality.

Sample code is:

require_once("SalesforceClient.php");
$client = new SalesforceClient();
$result = $client->login(XXX,YYY);
if (PEAR::isError($result)) {
$errors = "Error: " . $result->getMessage() . "\n";
} else {
$client = new SalesforceClient($result->sessionId);
$client->_endpoint = $_COOKIE['sf_endpoint'];
$query_str = "select Description, CaseNumber from case ";
$results = $client->query($query_str);
# print_r($result);
if (PEAR::isError($results)) {
print "\n----ERROR\n".$results->getMessage()."\n";
print "$query_str\n\n";
exit;
} else {
foreach ($results as $result) {
print_r($result);
}
}
}
?>

Let's say I want to create a custom object called Quote and related list that will appear in the Opportunity tab.  New Quotes will be created via a weblink to a custom web app; that app in turn writes to the Quote object via the API. 

Is it possible to configure something to remove the New button displayed above the related list?  This would enable us to leverage this related list as reference data (like Stage History), but not directly edit data in the custom object from within salesforce.

 

 

How can we edit or remove the sub menu under a tab?

In other words, when you click on the leads tab a new menu appears with links to "new Campaign", "new lead", etc, etc

Thanks,

Mark