
I want to create a new 'bullets email' the same as if you clicked it but I want to send a paramater to the form and I want to
call it through a javascript file. Any ideas on how to do this. I can't seem to find a plugin or something where this is happening.
Hi Steven,
I would say it depends on what you are using in bullets email button already, but you can make a JS function to call the openForm function, and pass you custom paramenters in the "parameters" object, which then you can use by implementing one additional JS on load of the email form
The code to open the request should look something like:
var parameters = {};
parameters["param1"] = 1;
parameters["param2"] = 2:
...
var entityFormOptions = {};
entityFormOptions["entityName"] = "contact";
entityFormOptions["entityId"] = "8DA6E5B9-88DF-E311-B8E5-6C3BE5A8B200";
// Open the form.
Xrm.Navigation.openForm(entityFormOptions, parameters).then(
function (success) {
console.log(success);
},
function (error) {
console.log(error);
});
Reference: docs.microsoft.com/.../set-field-values-using-parameters-passed-form