メインコンテンツにスキップ
Adaptive Planning
最終更新: 2024-10-18
ai.oauth

ai.oauth

関数

方法
パラメータ
返品
説明
getPlanningTokenFromWorkday()
なし
戻り値タイプ: Object { Authorization : string }
Planning に対して認証するためのトークンを取得します。
使用可否: 以下を完了した顧客のみが使用できる。
  • Workday テナントと のペアリング
    Adaptive Planning
  • Workday SAML SSO を に
    Adaptive Planning
  • Workday の "公開
    API" タブ内の公開
    API 設定
    タスク
    Adaptive Planning
    Workday のタブ
Workday テナントを Adaptive Planning とペアリングし、SAML SSO を設定するには、Workday 認定済み実装業者と連携して進める必要があります。実装業者を利用できない場合は、カスタマー サクセス マネージャにお問い合わせの上、プロフェッショナル サービスをご利用ください。
この記事の一部のリンクは、Workday コミュニティに移動しています。Community のアカウントがない場合は、 リクエストしてください。

function testConnection(context) { var token = ai.oauth.getPlanningTokenFromWorkday(); var body = '<?xml version="1.0" encoding="UTF-8"?><call method="customReportValues" callerName="AdaptivePlanning.Discovery">' body += '<credentials token="' + token.authorization + '" instanceCode="MYINSTANCE" /><report>...</report> </call>'; var url = 'https://api.adaptiveplanning.com/api/v22'; var method = 'POST'; var headers = { 'Content-Type': 'application/xml' }; var response = null; try { response = ai.https.request(url, method, body, headers); } catch (exception) { ai.log.logInfo('api call failed', '' + exception); return false; } ai.log.logInfo("Response:",response.getBody()); return true; }