Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to fix the SOAP end point for update

Kishore8
Kilo Guru

Should i have to change SOAPendpoint in update form?????????

This is for insert

find_real_file.png

This is for update

find_real_file.png

Should i have to change SOAPendpoint in update form?????????

12 REPLIES 12

hi Shishir.



i have written business rule....but here problem is , when i updated any one of record in INSTANCE 1 that record   short_description was updated into what INSTANCE 2 record what record of sys_id we have given...............




try {


var s = new sn_ws.SOAPMessageV2('Test SOAP-03.08.2017', 'update');




//override authentication profile


//authentication type ='basic'


//r.setAuthentication(authentication type,profile name);




s.setStringParameterNoEscape('short_description', current.short_description);


var response = s.execute();


var responseBody = response.getBody();


var status = response.getStatusCode();


}


catch(ex) {


var message = ex.getMessage();


}


In your script you are just passing the short_description, you need to have some unique field value as well to validate what record it needs to update. (ex. number)



Can you please update your script and try.



try {


var s = new sn_ws.SOAPMessageV2('Test SOAP-03.08.2017', 'update');


s.setStringParameterNoEscape('number', current.number);


s.setStringParameterNoEscape('short_description', current.short_description);


var response = s.execute();


var responseBody = response.getBody();


var status = response.getStatusCode();


}


catch(ex) {


var message = ex.getMessage();


}


hi Shishir.



i have written business rule....but here problem is , when i updated any one of record in INSTANCE 1 that record   short_description was updated into what INSTANCE 2 record what record of sys_id we have given...............it should not happens




ex   in     INSTANCE 1       recored created no-1001       ----with same details record created in INSTANCE 2 NO--2002


                                                                                                                                        1003 -----                                                                                                                                                                         --2004.



AS like if we have 10 records ......when we update the 1001 record short_descriprion then automatically that related another instance record 2002 update


                                                                                                                    in case if we update 1003 instead of 1001         then 2002 should not update , 1003 related 2004   record only update   .