cancel
Showing results for 
Search instead for 
Did you mean: 

Update destionation of already scheduled reports from FTP to SFTP using Dot Net SDK

Former Member
0 Kudos

Hi Everyone,

There is a requirement of changing destination of already scheduled reports from FTP to SFTP. It includes updating destination=SFTP, port and fingerprint.

Below are a few dlls (version 14 - SAP Business Objects 4.2) that I am using in a .NET console application:

CrystalDecisions.Enterprise.InfoStore

CrystalDecisions.Enterprise.Framework

I am able to get the destination using

infoObject.SchedulingInfo.Destination.Name but not able to find how to update the port and fingerprint.

Can someone help me here.

foreach (InfoObject infoObject in infoObjects)
{
  infoObject.SchedulingInfo.Destination.Name = "CrystalEnterprise.Sftp";
}

Thanks in advance.

Chinmaya

Accepted Solutions (0)

Answers (2)

Answers (2)

daniel_paulsen
Active Contributor

Hi Chinmaya,

You can access the port and fingerprint properties using the SFTP plugin (CrystalDecisions.Enterprise.Dest.SFTP) and the SFTPOptions,

DestinationPlugin plugin = (DestinationPlugin) pluginOptions[CeProgID.SFTP]; //plugin

CrystalDecisions.Enterprise.Dest.SftpOptions options = (CrystalDecisions.Enterprise.Dest.SftpOptions) plugin.ScheduleOptions;

options.Account = "...";
options.ServerName = "...";
options.Port = "...";
options.UserName = "...";
options.Fingerprint = "...";

Dan

ayman_salem
Active Contributor
0 Kudos

Hi Chinmaya,

do the configuration in the CMC under the "AdaptiveJobServer / Destination"

Regards,

Ayman