function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ramesh_tankalaramesh_tankala 

Update Value For custom field

Hi all,

If i have a custom field in my ACCOUNTS view,  how can i update the value for that field

kiranmutturukiranmutturu

you want in the list view na?

ramesh_tankalaramesh_tankala

Hi kiran,

 

No, I need to update custom field value from  my .Net application.

Ankit AroraAnkit Arora

Is your .net application integrated with salesforce application?

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

ramesh_tankalaramesh_tankala

Yes

Ankit AroraAnkit Arora

Then hope you know about the DML (Update) operation, using them you can update the value of any particular record.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

ramesh_tankalaramesh_tankala

Hi All

 

   I am trying with DML (Update),still it is not working. Any Ideas ,Very Urgent.

Ankit AroraAnkit Arora

To find where is the exact error, have you used debug logs. Please let me know if there is any exception?

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

ramesh_tankalaramesh_tankala

Hi

   I got an  following  exception while using DML(Update).

 

"MALFORMED_QUERY: unexpected token: UPDATE"

ramesh_tankalaramesh_tankala

Hi All 

 

  Any idea for update custom field using APEX API

 

Regards

Ramesh

GuyClairboisGuyClairbois

Looks like you are trying to do an update in a SOQL query. Salesforce does not allow that.

 

See this documentation for some simple examples of using the WebServices API:

http://www.salesforce.com/us/developer/docs/api/index.htm 

 

simple example copied from there:

    //create the account object to hold our changes  
    
    Account updateAccount = new Account();

    //need to have the id so that API knows which account to update  
    
    updateAccount.Id = "001D000000Ivban";

    //set a new value for the name property  
    
    updateAccount.Name = "New Account Name from Update Sample";

    //call update passing an array of object  
    
    // assuming that you've already established an enterprise WSDL binding  
    
    SaveResult[] saveResults = binding.update(
        new sObject[] { updateAccount });