39
Points
Questions
7
Answers
12
-
Thank you so much for be the biggest lifesaver related to netsuite queries, really thanks for this amazing support buddy.
Regards
Ajeetesh
- 752 views
- 19 answers
- 0 votes
-
- 752 views
- 19 answers
- 0 votes
-
Hey Chris,
it worked, thank you very much for this support.
now i am facing a small issue can you help in this??
the error is :
{“status”:”error”,“errors”:[“Error creating order – reasoncode: INVALID_FLD_VALUE, message:You have entered an Invalid Field Value B for the following field: orderstatus”],“order”:{}How i can paas order status like:_pendingFulfillment in the API Parameters??
- 752 views
- 19 answers
- 0 votes
-
i am trying this, i will let you know if it will work
thanks for the reference
- 752 views
- 19 answers
- 0 votes
-
Is it important to decode all the auth? if i need to do that how can i do this?
- 752 views
- 19 answers
- 0 votes
-
Accept: ‘application/json, text/plain, */*’,
‘Content-Type’: ‘application/json’,
Authorization: ‘OAuth realm=”22222221_SB1″,oauth_consumer_key=”11d0f195d09c30d764a07dedd2b*****480e7e0c2c2cd0d417acc348e44f98e4″,oauth_token=”56cdaced5bb*****480352321708b70ff0c0efa987f90fca3cf3e1b9e363bfc79c”,oauth_signature_method=”HMAC-SHA256″,oauth_timestamp=1675360174,oauth_version=”1.0″,oauth_signature=”sbtD7gRFfvm5ez05Qz89OMYWfDd%2BLO9t3aZ2b3gLGLg%3D”,nonce=”acf9fb572c533c2c6e99″‘,
Connection: ‘keep-alive’,
‘Accept-Encoding’: ‘gzip,deflate,br’,
‘User-Agent’: ‘axios/0.27.2’,
‘Content-Length’: 883
},are you looking for this?
- 752 views
- 19 answers
- 0 votes
-
yeahh chris, restlet isn’t working at my end, but if i am using from postman it is working.can you have idea why this happening?
thanks,
Ajeetesh
- 752 views
- 19 answers
- 0 votes
-
what contents you are looking for ? Is that the whole function?
below i writing down the whole function please check this,if you found any error please let me know-
const SyncNewOrdersWithRestlet = async function (req, res) {constRestletConfig = awaitgetConfig();letdata_array = {…}console.log(RestletConfig.NONCE, “with encoding”, encodeURIComponent(RestletConfig.SIGNATURE))console.log(“Timestamp”, RestletConfig.TIMESTAMP)letconfig = {method:”POST”,url:”https://****001-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=569&deploy=1″,headers: {Authorization:`OAuth oauth_consumer_key=”${RestletConfig.CONSUMER_KEY}”,oauth_nonce=”${RestletConfig.NONCE}”,oauth_signature_method=”HMAC-SHA256″,oauth_token=”${RestletConfig.TOKEN_ID}”,oauth_timestamp=”${RestletConfig.TIMESTAMP}”,oauth_version=”1.0″,oauth_signature=”${encodeURIComponent(RestletConfig.SIGNATURE)}”`,“Content-Type”:”application/json”,“Connection” :”keep-alive”},// realm=”${RestletConfig.ACCOUNT_ID}”data:JSON.stringify(data_array),};// return falseaxios(config).then(async () => {// console.log(“————–“,response);console.log(“ORDER SYNC SUCCESS”);}).catch(({ response }) => {// console.log(“FAILED”);console.log(“here response started”,response);});};module.exports.SyncNewOrdersWithRestlet = SyncNewOrdersWithRestlet;- 752 views
- 19 answers
- 0 votes
-
No. could you please like to share a snippet???It would be great help, I am trying from last 3 days??
- 752 views
- 19 answers
- 0 votes
-
Hey @chris, I am sharing the whole snippet can you please like to check this and let me know. Thanks in advance buddyconst SyncNewOrdersWithRestlet = async function (req, res) {constRestletConfig = awaitgetConfig();//let data_array = {…}console.log(RestletConfig.NONCE, “with encoding”, encodeURIComponent(RestletConfig.SIGNATURE))console.log(“Timestamp”, RestletConfig.TIMESTAMP)letconfig = {method:”POST”,url:”https://7267001-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=569&deploy=1″,headers: {Authorization:`OAuth realm=”${RestletConfig.ACCOUNT_ID}”,oauth_consumer_key=”${RestletConfig.CONSUMER_KEY}”,oauth_token=”${RestletConfig.TOKEN_ID}”,oauth_signature_method=”HMAC-SHA256″,oauth_timestamp=”${RestletConfig.TIMESTAMP}”,oauth_nonce=”${RestletConfig.NONCE}”,oauth_version=”1.0″,oauth_signature=”${encodeURIComponent(RestletConfig.SIGNATURE)}”`,“Content-Type”:”application/json”,“Connection” :”keep-alive”},data:JSON.stringify(data_array),};// return falseaxios(config).then(async () => {// console.log(“————–“,response);console.log(“ORDER SYNC SUCCESS”);}).catch(({ response }) => {// console.log(“FAILED”);console.log(“here response started”,response);});};
- 752 views
- 19 answers
- 0 votes