Forum Discussion

NLESM5's avatar
New Contributor
2 months ago

Error. Cannot read properties of undefined (reading 'includes')


Am working on an API script where the first step is to get the bearer token from Microsoft login. This part works fine.

Next step is to run an API with the just found bearer token, am quite sure the logic in the step is correct but am getting Error.Cannot read properties of undefined (reading 'includes') when I try to exeucte this step, have also tried with putting in the bearer token directly instead of using a param but still the same issue.


1 Reply

  • Humashankar's avatar
    Champion Level 2

    Hi NLESM5 

    Can you also verify that the logic capturing the bearer token from Microsoft login is correct and stores the token in a variable.

    Use a "Print" statement to display the captured token value and ensure it's not empty.