How to fix the SOAP end point for update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 10:40 AM
Should i have to change SOAPendpoint in update form?????????
This is for insert
This is for update
Should i have to change SOAPendpoint in update form?????????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 03:57 PM
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();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 04:09 PM
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();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 04:04 PM
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 .