How to use Secure String in making an API Call?

I have stored my API Credentials in Windows Credentials manager. Now I want to use it to derive API Key and make an HTTP Call. Though I extract the secure string using Credentials activities, I am not able to parse it to my jObject as shown below:

 New With {
  .apiKey = webAPIKey,
  .operationType = "dumpToSheet",
  .operationProps = New With {
  .sheetName = in_sheetName,
  .jsonArray =  jsonArray

where webAPIKey is the Secure String I extracted.

@spidey Convert SecureString to String - Get Secured Credential - #14 by badita
Use this , In your case
new System.Net.NetworkCredential(string.Empty, webAPIKey).Password
Hope this will help you

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.