ai.oauth
함수
방법 | 매개변수 | 반품 | 설명 |
|---|---|---|---|
getPlanningTokenFromWorkday() | 없음 | 반환 유형: Object { authorization : string } | 계획에 대해 인증할 토큰을 얻습니다. |
가능일정: 다음을 완료한 고객만 사용할 수 있습니다.
- Workday 테넌트를 다음과 쌍으로 연결Adaptive Planning.
- Workday SAML SSO 대상Adaptive Planning.
- Workday의Public API탭에 있는Public API 설정태스크Adaptive PlanningWorkday의 탭
Workday 테넌트를 Adaptive Planning과 쌍으로 연결하고 SAML SSO를 설정하려면 Workday 인증 구현자와 협력해야 합니다. 구현자와 협력할 수 없는 경우, CSM(Customer Success Manager)에게 문의하여 전문 서비스를 받으십시오.
이 문서의 일부 링크는 Workday 커뮤니티로 이동합니다. 커뮤니티 계정이 없으면 계정을 요청하십시오.
예:
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; }