Hi everyone,
I am able to make this share() method, below, work perfectly when it is filled in the code with the Share Service name and recipient email.
As soon as I try to make shareServiceName and shareToEmail parameter inputs, I find an error (object not set to an instance),
I had a few try by using @"" in the code or in the parameters window without success.
Is it possible to make those parameter inputs ? and how ?
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
[B]shareServiceName [/B]= @"";
[B]shareToEmail [/B]= @"";
}
}
private void shareChartCapture()
{
// Share(string serviceName, string message, string screenshotPath, object[] args)
Share(
[B]shareServiceName[/B]
, @"body of mail"
, chartCapturePath + ChartName
, new object[]
{
// email adress
[B]shareToEmail[/B]
// email subject
, @"subject"
} );
}
[NinjaScriptProperty] [Display(Name = "shareServiceName",
Description = "name of the share service used",
Order = 5, GroupName = "Parameters")]
public string [B]shareServiceName [/B]{ get; set; }
[NinjaScriptProperty] [Display(Name = "shareToEmail",
Description = "recipient email",
Order = 6, GroupName = "Parameters")]
public string [B]shareToEmail [/B]{ get; set; }

Comment