Created
May 15, 2021 12:40
-
-
Save clement-joye/0c590584818c9acbc41e5d75864e999d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function postRequest(data: any, resource: DashboardCardResource, variables: { [key: string] : string }) { | |
Object.keys(resource.values).forEach(function(key) { | |
var query = SubtituteString(resource.values[key], variables).replace(/'/g, '"'); | |
var result = jsonQuery(query, { data: data, allowRegexp: true }); | |
variables[key] = result.value; | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment