You need to sign in to do that
Don't have an account?
JuanTal
I can't update a custom field with a custom button
I have this but doesn't work
any ideas ?
{!REQUIRESCRIPT("/soap/ajax/8.0/connection.js")};
var caseObj = new sforce.SObject("Factura__c");
caseObj.Name = "{!Factura__c.Name}";
caseObj.Detalle__c = "005A0000001Sb6m";
var result = sforce.connection.update([caseObj]);
window.location.href=window.location.href;
There are two issue,
While updating you are not specifying recordId,
Anather is code without result handling [As per best practice]
here is updated code for you
Please update your code accordingly,
Let us know if you face any more issue, If it works for you mark as accepted
Thanks,
Bala
I have another problem, I know how to update fields, but now I want to insert newfields.
Could you help me with that?
i have this
If you are creating new record of object Movimiento_Presupuestal__c
then you should not write like movPresupuesto.Id = 'a0CA0000007BCAfMAO';
remove this line,
We cant specify id while inserting new record
It will work,
One kind suggestion, handle insert result for error, surround code with try catch
Cheers,
Bala