Forum Discussion

NLESM5's avatar
NLESM5
New Contributor
6 months ago

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

Hi,

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.

Emiel

  • 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.

    Regards

  • Humashankar's avatar
    Humashankar
    Champion Level 3

    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.

    Regards