NoahB
09/08/2021, 12:33 PMbattk
09/08/2021, 12:53 PMNoahB
09/08/2021, 1:11 PMNoahB
09/08/2021, 1:11 PMNoahB
09/08/2021, 1:11 PMcreateRecordPromise.then(objRecord => {
objRecord.setValue({
fieldId: 'subsidiary',
value: '1'
});
row_id = objRecord.save({
enableSourcing: false,
ignoreMandatoryFields: false
});
NoahB
09/08/2021, 1:11 PMNoahB
09/08/2021, 1:12 PMNoahB
09/08/2021, 1:12 PM/**
* Defines the function that is executed when a PUT request is sent to a RESTlet.
* @param {string | Object} requestBody - The HTTP request body; request body are passed as a string when request
* Content-Type is 'text/plain' or parsed into an Object when request Content-Type is 'application/json' (in which case
* the body must be a valid JSON)
* @returns {string | Object} HTTP response body; returns a string when request Content-Type is 'text/plain'; returns an
* Object when request Content-Type is 'application/json' or 'application/xml'
* @since 2015.2
*/
const put = (requestBody) => {
NoahB
09/08/2021, 1:13 PMNoahB
09/08/2021, 1:16 PMbattk
09/08/2021, 1:17 PMNoahB
09/08/2021, 1:18 PMbattk
09/08/2021, 1:18 PMNoahB
09/08/2021, 1:19 PMNoahB
09/08/2021, 1:19 PMbattk
09/08/2021, 1:19 PMbattk
09/08/2021, 1:19 PMNoahB
09/08/2021, 1:20 PMNoahB
09/08/2021, 1:20 PMNoahB
09/08/2021, 1:21 PMNoahB
09/08/2021, 1:21 PMbattk
09/08/2021, 1:21 PMNoahB
09/08/2021, 1:22 PMNoahB
09/08/2021, 1:23 PM