MobileCRM.Application.createDirectory - Resconet/JSBridge GitHub Wiki

Asynchronously creates the directory in the application local data.

Arguments

Argument Type Description
path String Defines the relative path of the directory in the application local data.
success function(result) A callback function which is called in case of successful asynchronous result.
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.

This example demonstrates how to create a folder in the application storage.

MobileCRM.Application.createDirectory("TestData/MyFolder", function () {
	MobileCRM.bridge.alert("Folder was created");
}, function () {
	MobileCRM.bridge.alert("Folder wasn't created");
});
⚠️ **GitHub.com Fallback** ⚠️