We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

to get access token for the rest message sendng, is it possible not to put the client id and secret?

chercm
Mega Sage

Hi 

 

i am trying to get the access token for authorisation to post the rest message , is it possible not to put the client id and password in the script ?

 

tokenRequest.setHttpMethod('POST');
tokenRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
tokenRequest.setRequestBody('grant_type=client_credentials&client_id=lxxxxx&client_secret=xxxxx');
0 REPLIES 0