MobileCRM.Application.fileExists - Resconet/JSBridge GitHub Wiki

Checks whether the file with given path exists in application local data.

Arguments

Argument Type Description
path String Defines the relative path of the file located in the application local data.
success function(result) A callback function for successful asynchronous result. The result will carry a Boolean object determining whether the file exists or not.
failed function(error) A callback function for command failure. The error argument will carry the error message.
scope A scope for calling the callbacks; set "null" to call the callbacks in global scope.
MobileCRM.Application.fileExists("TestData/MyFile.txt", function (exists) {
	MobileCRM.bridge.alert(exists ? "Exists" : "Doesn't exist");
}, MobileCRM.bridge.alert);
⚠️ **GitHub.com Fallback** ⚠️