tableau / connector-plugin-sdk

SDK for Developing Tableau Connector Plugins
https://tableau.github.io/connector-plugin-sdk/
MIT License
108 stars 107 forks source link

[Question] Issue http request in Javascript file #1128

Closed xsgao-github closed 1 year ago

xsgao-github commented 1 year ago

About You: Name: Song Gao Company: Starburst Data

Your question: We published a custom data connector using a JDBC driver. We would like to execute an HTTP request in connectionProperties.js, then conditionally assemble the properties based on the HTTP response. I tried https = require('https') and other various codes to allocate an HTTP client, but those libraries are not available.

Would you please let us know which Javascript libraries are available, and which object we can use to execute HTTP requests?

rosswbrown commented 1 year ago

Only simple string manipulation of the incoming arguments is supported and allowed within the the .js file. This is by design.