Hi All,
I have configured postman but when I’m running calls then I’m getting Pre-request Script:Error - TypeError: Cannot read properties of undefined (reading ‘json’).
I applied console.log in script and found it failing in line.
const jsonResponse = response.json();
Please let me know how can I resolve this.
Thanks
Hi @smundu , Can you please create environment’s in postman for with below provided SS and get PAT (Personal Access Token) from your Sailpoint UI and put values for client_id and client_secret .
Create PAT with required permission to use in postman.
Thank you.
Hi Praveen, thank you replying.
I have added clientId and clientSecret which I got from PAT and set scope: sp:scopes:all. Prerequest script is setting tokenExpTime in environment but not able to set accessToken.
Thanks
Hi Sushant ,
If you do some changes in pre-request script then rollback them or simply import new collection from below link .
Just have one question Are you looking for any other thing than connecting tenant and postman ? let me know then I also have to look into it.
Thank you.
Hi Praveen,
I imported the new collection and tried calling api, but I’m still receiving the same error. I’m just trying to configure my postman to connect the tenant.
Thanks
Can you please share SS of your environment’s (Please remove details from SS)
And also the SS of error you are getting .And check console Url/ endpoint is generated is correct or not.
Hi Pravin,
I’m able to connect to tenant via postman after entering the correct tenant name and base url after checking this link: https://developer.sailpoint.com/idn/api/authentication/
Thanks