毎週決まった時間に帳票を作成する事は可能でしょうか?

ホーム 掲示板 ReportsConnect for Salesforce 毎週決まった時間に帳票を作成する事は可能でしょうか?

このトピックは 1 発言者 で 1 件の返信 、  sweetie 10 年と 3 ヶ月 前 に最終更新されました。

2投稿中1~2 2件表示
  • 作成者
    投稿
  • #46

    sweetie
    参加者

    旧掲示板からの転載です。

    週次の運用レポートを決まった時間に帳票にしてメール送付する事を考えているのですが
    良い方法はありますでしょうか?

    メールサービスを利用して、外部から定期的にメールを送信して起動できればと
    考え、以下のように実装したものの
    System.NullPointerException: Attempt to de-reference a null object (kpsr)
    と、エラーが応答されます。
    この方法では帳票の作成はできないでしょうか?

    public with sharing class WeeklyReportController {
    private kpsr.ReportsConnectController rc;

    public WeeklyReportController() {
    rc = new kpsr.ReportsConnectController();
    }

    public PageReference goPrint() {
    rc.setReportId(‘<帳票名>’);
    rc.setParentId(‘<ID>’);
    rc.goPrint();
    return null;
    }
    }

    global class WeeklyReportHandler implements Messaging.InboundEmailHandler {
    global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) {
    Messaging.InboundEmailResult result = new Messaging.InboundEmailresult();
    WeeklyReportController con = new WeeklyReportController();
    con.goPrint();
    return result;
    }
    }

    #47

    sweetie
    参加者

    ReportsConnect 1.16よりログインユーザ固定化オプションが使用可能となりましたので、運用レポートを決まった時間に帳票にしてメール送付する等が現在では可能です。
    詳しくはこちらのページを参照してください。

2投稿中1~2 2件表示

このトピックに返信するためにはログインしなければなりません。