what is async and await js code example
Example 1: javascript async script
<script async src="script.js"></script>
Example 2: await async
function afterPrintSave() {
Xrm.Page.data.save().then(
function () {
resolve();
},
function (err) {
resolve(alert(err.message));
}
);
}