CRM2016 on premises
I have the following Javascript which i am trying to develop to pass a result to a parameter in an action. I haven't included the callbacks yet, just stuck on one issue. I need to put the selected ID's into a string, but after hours of playing I'm till no further forward.
Im looking to get a string called stringlist = selecteditemid ( array 0 ) +"," + selecteditemid (array 1 ) + "," selecteditemid (array 3 ) ect but with no "," after the last item in the array
function BuildBACSFile(selectedItems)
{
for (var i = 0; i < selectedItems.length; i++)
{
var selectedItem = selectedItems[i];
alert("Id=" + selectedItem.Id );
}
}
*This post is locked for comments
I have the same question (0)