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
OnpursuitOnpursuit 

Java App - Update not working

Hi ,

 


There is a Java app for creating contacts and show list of contact. Email field is editable and update the same in Salesforce.

 

I am using below code to update email:

 

public void updatePerson(String idx,Person perso) {
        perso.email = "test@Rah";
        getForceApi().updateSObject("Contact",idx,perso);
    }

 

But not able to make it dynamic so that it accept the edited email in the Java app field. Can anyone let me know how should i pass the edited email from JSP to controller?

Marko LamotMarko Lamot

salesforce email fields accepts only VALID email format .... which "test@Rah"  is not.

change test email address to be in right email format