my.QUInitializeProject

This method initializes the Qualtrics singleton using the specified brand ID, project ID, optional external reference ID.

Sample Code

copy
my.call('QUInitializeProject',{
    brandId: 'clarocolombia',
    projectId: 'ZN_86z2RCAmZZJltRA',
    extRefId: 'SI_89aPsQBpOjMWjJQ',
}).then((values)=>{
  my.alert({
    content:JSON.stringify(values)
  });
}).catch((value)=>{
  my.alert({
    title:'faile',
    content:JSON.stringify(value)
  });
})

Parameters

Name

Type

Required

Description

brandId

string

true

project brandid, like 'clarocolombia'

projectId

string

true

project id, when qualtrics create a new project

extRefId

string

true

interceptid, decide to use the transaction, public, personal plate

Success Callback Function

Name

Type

Required

Description

success

bool

true

Whether the JSAPI call is successful

code

number

true

0:success, -1:fail,1001:parameter error

message

string

false

Best Practice

my.QUInitializeProject