Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 18 at 06:35 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 18 at 01:04 PM

    Hi Chinmaya,

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

    Regards,

    Ayman

    Add comment
    10|10000 characters needed characters exceeded