Hi radbrothers , I'm trying to do the same as you. Would you mind to help me?
I have created the "share.js" file:
var dataTransferManager = Windows.ApplicationModel.DataTransfer.DataTransferManager.getForCurrentView();
dataTransferManager.addEventListener("datarequested", function (e) {
var request = e.request;
request.data.properties.title = "Your title";
request.data.setText("Your text");
});
Windows.ApplicationModel.DataTransfer.DataTransferManager.showShareUI();
Then, I added the .js file to the C2 project, but when I try to add the script to a browser "Execute javascript" action I can't.
Thanks!