CRM2016 On premises
I have tried this before on a different version of CRM, but cannot seem to get it to work on a new project.
I have created a solution and used Ribbon workbench to add a button. The button calls JS;
function BuildBACSFile(selectedItems)
{ alert("started"(;
try {
var stringlist ="";
for (var i = 0; i < selectedItems.length; i++)
{
if(stringlist != "")
{
if(selectedItems[i] != null && selectedItems[i] != undefined)
stringlist = stringlist + "," + selectedItems[i].Id;
}
else
if(selectedItems[i] != null && selectedItems[i] != undefined)
stringlist = selectedItems[i].Id;
}
}
var inputParams = [
{ key: "ParameterGuids", type: Process.Type.String, value: stringlist },
{ key: "Target", type: Process.Type.EntityReference, value: new Process.EntityReference("new_transactionsets", selectedItems[0].Id)
} ];
I have added the plugin and registered the step

basically at this stage I am writing the selected id's to a text file ( just to get this part working)
When I select an item and click the button, nothing happens. I'm at a loss as to what i'm missing