You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$.export("$summary",`Successfully created new object with ID ${res.data[0].details.id}.`);
64
+
}else{
65
+
if(res.data[0].code==="INVALID_DATA"){
66
+
thrownewConfigurationError(`Error: Invalid data for field '${res.data[0].details.api_name}'. Expected data type: ${res.data[0].details.expected_data_type}`);
$.export("$summary",`Successfully updated object with ID ${recordId}.`);
68
-
returnresponse;
68
+
69
+
if(res.data[0].code==="SUCCESS"){
70
+
$.export("$summary",`Successfully updated object with ID ${recordId}.`);
71
+
}else{
72
+
if(res.data[0].code==="INVALID_DATA"){
73
+
thrownewConfigurationError(`Error: Invalid data for field '${res.data[0].details.api_name}'. Expected data type: ${res.data[0].details.expected_data_type}`);
0 commit comments