Skip to Content
0

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

Feb 18 at 06:41 AM

46

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Daniel Paulsen
Feb 18 at 06:35 PM
2

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

Share
10 |10000 characters needed characters left characters exceeded
Ayman Salem Feb 18 at 01:04 PM
0

Hi Chinmaya,

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

Regards,

Ayman


sftp.jpg (51.3 kB)
Share
10 |10000 characters needed characters left characters exceeded