---
schema_version: "1"
id: b2bdcd0855ac232928078b1a6c1eb193950aed70ab1200edf3b6056e76d90878
title: LiveChatButtonSkill
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_livechatbuttonskill.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_livechatbuttonskill.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 16896ef949e4e310aeb039fa7a81c7b5ae61af29bf8fd6480069846a74bda302
description: Represents all the skills available to a LiveChatButton except the one currently assigned. To retrieve the skill currently assigned, query LiveChatButton. This object is available in API version 25.0 and later.
---
# LiveChatButtonSkill

Represents all the skills available to a LiveChatButton except the one currently assigned. To retrieve the skill currently assigned, query LiveChatButton. This object is available in API version 25.0 and later.

## Supported Calls

create(), delete(), update(), query()

## Fields

| Field Name | Details |
| --- | --- |
| ButtonID | 
Type

reference

Properties

Create, Filter, Group, Sort

Description

The record ID of the button.



 |
| SkillID | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

The record ID of the skill.



 |

## Usage

Use this object to assign a specific skill to a specific button for multi-skill routing. For example:

String myButtonId = "button\_Id";
String myButtonDevName = "button\_DeveloperName";
List<String> skillIds = new List<String>();

//Get one skill ID from button
for(LiveChatButton lcb : \[SELECT SkillId FROM LiveChatButton WHERE DeveloperName =:
myButtonDevName\]) {
    skillIds.add(lcb.SkillId); 
}
//Get remaining skills from LiveChatButtonSkill join object
for(LiveChatButtonSkill lcbs : \[SELECT SkillID FROM LiveChatButtonSkill WHERE ButtonId =:
myButtonId\]) {
    skillIds.add(lcbs.SkillId); 
}
//Retrieve all skills into a single list
List<Skill> skills = \[SELECT Id, DeveloperName FROM Skill WHERE Id IN :SkillIds\];