This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} | |
var updateClientApproval = []; | |
var result = sforce.connection.query("SELECT Id, Create_Client_Approval__c FROM Order__c where Opportunity__c = '{!Opportunity__c.Id}' "); | |
var records = result.getArray("records"); | |
var i = 0; | |
for (i; i < records.length ; i++) { | |
var child = result.records[i]; | |
child.Create_Client_Approval__c = true; |