You need to sign in to do that
Don't have an account?
kkaal
Update joined objects
I have custom objects (called CProducts__c) which are linked to Opportunities via a reference field in CProducts__c called Opportunity__c.
Opportunities as well as CProducts__c have custom fields, both called DOCNO__c.
Now, the DOCNOs in CProducts__c are out of synch with the DOCNOs in Opportunities which they should not.
I need a query to write the DOCNOs from Opportunities in the dependent CProducts__c. I would like to have a update query which I could execute in the SF IDE or so.
Any hint, how to do that?
Thanks for your help.
Opportunities as well as CProducts__c have custom fields, both called DOCNO__c.
Now, the DOCNOs in CProducts__c are out of synch with the DOCNOs in Opportunities which they should not.
I need a query to write the DOCNOs from Opportunities in the dependent CProducts__c. I would like to have a update query which I could execute in the SF IDE or so.
Any hint, how to do that?
Thanks for your help.
could be a solution, but I am not allowed to alter the fields for my customer (he is like that). And it's a one-shot thing.
So, what would be the equivalent for this SQL statement? Maybe just from the SFDC IDE?
if (result[0].getBoolean("success")) {
log("account with id " + result[0].id + " updated");
} else {
log("failed to update account " + result[0]);
}