• phoadesymc
  • NEWBIE
  • 0 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
I am trying to use an S-Control (see below) to change the record type on a custom object. reusing code that has worked in the passed for standard objects. updated to beta 3.3 but am getting the error 'uncaught exception: The property RecortTypeID is not a valid field'in Firefox debug window

Is updating record types on custom objects now supported?

Thanks
Paul

var currentRecordType = "{!Rebates_Approval_RecordType_ID}";

var newRecordType = "";
alert(currentRecordType);
// Switch record type from read/write to read only
if (currentRecordType == "012300000004nqS") {
newRecordType = "012300000004nqSAAQ";
}
sforceClient.init("{!API_Session_ID}", "{!API_Partner_Server_URL_60}");

var myObj = new Sforce.Dynabean("Rebates_Approval__c");
myObj.set("Id", "{!Rebates_Approval_ID}");
myObj.set("Justification__c", "yyyyyyyyy");
myObj.set("Status__c", "Submitted");
myObj.set("RecordTypeId", newRecordType);

var saveResults = sforceClient.Update([myObj]);

if (Sforce.Util.dltypeof(saveResults) != "array") {
alert ("Update Returned: " + saveResults.toString());
return false;
}
else
return true;
}
Hi,
 
I created 2 custom objects - Quote and Quote line items, similar to Opportunity and Opportunity line items.
 
While using salesforce mail merge, is there any way i can print all Quote line items related to a Quote as all opportunity poducts are listed?
 
Thanks,
 
  • March 11, 2006
  • Like
  • 0

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.

 

 

  • February 02, 2005
  • Like
  • 0