Skip to main content
Skip table of contents

ibihelpme_ReplaceVariablesAsync

Signature

ibihelpme_ReplaceVariablesAsync(input: string, callback: (string) => void): void

DescriptionAsynchronously replaces all variables occurring in input with the respective value. When the task is completed, the method reference transfered under callback is called up
Available from API version1.0.0

Parameter

NameTypeDescription
inputstring

Character string that may contain variables

callback(string) => void

Reference to a method without a return value that receives a string object as a parameter.

Return value

No return value

Example

JS
var input = 'Hello {%ActiveDirectory.User.DisplayName%}';
window.external.ibihelpme_ReplaceVariablesAsync(input, function(output) {
	alert(output);
});
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.