Reference: Use this article to choose the correct Rainbow variable for a custo-manifest action.
You can use this article to choose the right Rainbow variable for a custo-manifest action. You will see which runtime objects are available and how to transform values with regular expressions.
Syntax
${object.attribute}
${object.attribute.regex(pattern)}
${object.attribute.regex(pattern, replacement)}Objects and common attributes
| Object | Typical attributes | Available when |
|---|---|---|
localUser |
firstName, lastName, email, canonicalNumber, phoneNumber, internalNumber, phonePbx, nickname, loginEmail, id
|
Most extension points. |
caller |
firstName, lastName, phoneNumber
|
Call-related extension points. |
called |
phoneNumber |
Call-related extension points. |
call |
callId, globalCallId, correlator
|
Call-related extension points. Some values depend on PBX capabilities. |
contact |
firstName, lastName, phoneNumber, email, company, workNumber, mobileNumber, tags
|
Contact-related extension points. |
bubble |
ownerEmail, name, shareLink, id, members
|
Bubble extension points. |
Compatibility by extension family
| Extension family | Variable objects generally available |
|---|---|
| PBX events |
localUser, caller, called, call, and sometimes contact. |
| Contact buttons/displays |
localUser and contact. |
| Call buttons |
localUser, caller, called, call, and sometimes contact. |
| Bubble actions |
localUser and bubble. |
| User menu / main frame |
localUser only. |
regex modifier
Use regex to transform a variable value before sending it to a URL, REST parameter or body.
${contact.phoneNumber.regex(^\+33,0)}
${localUser.email.regex(@.*$,)}${time} variable
${time} provides runtime timestamps. Depending on the target Rainbow client version, sub-values can be used for year, month, day, hour, minute, second, millisecond and hexadecimal representations.
${time}
${time.year}
${time.month}
${time.day}
${time.hour}
${time.minute}
${time.second}
${time.millisec}
${time.hex}${custo.path}
${custo.path} points to the folder where packaged manifest resources are available at runtime. Use it for icons, local HTML files, scripts or other resources included in the ZIP archive.
"icon": "${custo.path}\icons\crm.png",
"command": {
"commandType": "file",
"url": "${custo.path}\display.html"
}