Execute JavaScript from rules: Difference between revisions

Jump to navigation Jump to search
Line 48: Line 48:
                 contact.addAttributes();
                 contact.addAttributes();


                 var fetch = new MobileCRM.FetchXml.Fetch(contact);
                 var fetch = new MobileCRM.FetchXml.Fetch(account);
                 fetch.execute("DynamicEntities", function (res) {
                 fetch.execute("DynamicEntities", function (res) {
                     var current = res[getRandomInt(res.length)];
                     var current = res[getRandomInt(res.length)];

Navigation menu