NotifyNow - initiateConferenceCall(String[] conferenceCallParticipants, String conferenceCallTitle, GlideRecord sourceRecord, Boolean private)
새 전화 회의를 시작합니다.
| 이름 | 유형 | 설명 |
|---|---|---|
| conferenceCallParticipants | 문자열 | sys_user 테이블 또는 E.164 호환 전화 번호의 sys_ids으로 식별되는 한 명 이상의 사용자, 전화 회의 참가자입니다. |
| conferenceCallTitle (영문) | 문자열 | 전화 회의의 제목입니다. 이 매개변수의 최대 길이는 40자입니다. |
| sourceRecord | GlideRecord | 인시던트 또는 문제 번호와 같은 전화 회의에 연결할 소스 기록입니다. |
| 개인 | 부울 | 전화 회의가 비공개인지 제어하는 값입니다. 기본값은 false입니다. |
| 유형 | 설명 |
|---|---|
| GlideRecord | 전화 회의 기록이거나 오류가 있는 경우 null입니다. |
이렇게 하면 E.164 호환 전화 번호가 있는 참가자 및 sys_user 테이블의 참가자와 전화 회의를 시작하고 SMS 및 이메일을 통해 모든 참가자에게 전화 회의 세부 정보를 보냅니다.
// define phone number participants
var participants = ['+31205655548', '+31205655552', '+31652825393'];
// we also want to add two Dutch sys_user participants
var user = new GlideRecord('sys_user');
user.addNotNullQuery('mobile_phone');
user.addQuery('mobile_phone', 'STARTSWITH', '+316');
user.setLimit(2);
user.query();
// add users to the participant array
while (user.hasNext() && user.next()) {
gs.log('adding user ' + user.getValue('name') + ' with phone number ' +
user.getValue('mobile_phone') + ' to the participant array');
participants.push(user.getUniqueValue());
}
// define a source record to associate with the conference call
var source = new GlideRecord("cmdb_ci");
source.query("asset_tag", "P1000167");
if (source.hasNext() && source.next()) {
// set up conference call
var nn = new SNC.NotifyNow();
var conferenceCall = nn.initiateConferenceCall(participants, "testing 1 2", source);
// check if the conference call was successfully created
if (conferenceCall != null) {
gs.log('started conference call: ' + conferenceCall.getUniqueValue());
} else {
gs.log('could not start the conference call :(');
}
}