I am trying to deploy my chat button with routing type omni-channel using SFDX and this error occurred:
You must select at least one skill.
what do I need to make?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI am trying to deploy my chat button with routing type omni-channel using SFDX and this error occurred:
You must select at least one skill.
what do I need to make?
I WAS ABLE TO DEPLOY CHAT BUTTON!!!
I was receiving the same message that you shared: You must select at least one skill.
To solve this you need to leave the language on Chat Buttons & Invitations as Blank
You do not need to config skills, or activate any skills config.
liveChatAgentConfigs
<?xml version="1.0" encoding="UTF-8"?>
<LiveChatAgentConfig xmlns="http://soap.sforce.com/2006/04/metadata">
<assignments>
<profiles>
<profile>admin</profile>
</profiles>
</assignments>
<disableTransferConferenceGreeting>false</disableTransferConferenceGreeting>
<enableAgentFileTransfer>true</enableAgentFileTransfer>
<enableAgentSneakPeek>true</enableAgentSneakPeek>
<enableAssistanceFlag>false</enableAssistanceFlag>
<enableAutoAwayOnDecline>false</enableAutoAwayOnDecline>
<enableAutoAwayOnPushTimeout>false</enableAutoAwayOnPushTimeout>
<enableChatConferencing>false</enableChatConferencing>
<enableChatMonitoring>true</enableChatMonitoring>
<enableChatTransferToAgent>true</enableChatTransferToAgent>
<enableChatTransferToButton>true</enableChatTransferToButton>
<enableChatTransferToSkill>false</enableChatTransferToSkill>
<enableLogoutSound>false</enableLogoutSound>
<enableNotifications>true</enableNotifications>
<enableRequestSound>true</enableRequestSound>
<enableSneakPeek>false</enableSneakPeek>
<enableVisitorBlocking>false</enableVisitorBlocking>
<enableWhisperMessage>true</enableWhisperMessage>
<label>INSERT YOURS</label>
<supervisorDefaultButtonFilter>AgentsBemol</supervisorDefaultButtonFilter>
<transferableButtons>
<button>INSERT YOURS</button>
</transferableButtons>
</LiveChatAgentConfig>
liveChatButtons
<?xml version="1.0" encoding="UTF-8"?>
<LiveChatButton xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<deployments/>
<enableQueue>true</enableQueue>
<isActive>true</isActive>
<label>INSERT YOURS</label>
<optionsCustomRoutingIsEnabled>false</optionsCustomRoutingIsEnabled>
<optionsHasChasitorIdleTimeout>false</optionsHasChasitorIdleTimeout>
<optionsHasInviteAfterAccept>false</optionsHasInviteAfterAccept>
<optionsHasInviteAfterReject>false</optionsHasInviteAfterReject>
<optionsHasRerouteDeclinedRequest>false</optionsHasRerouteDeclinedRequest>
<optionsIsAutoAccept>false</optionsIsAutoAccept>
<optionsIsInviteAutoRemove>false</optionsIsInviteAutoRemove>
<overallQueueLength>255</overallQueueLength>
<routingType xsi:nil="true"/>
<type>Standard</type>
</LiveChatButton>
Check my comment!
https://developer.salesforce.com/forums/?id=9062I000000g9HUQAY
As mentioned in the doc,
Chats routed with Omni-Channel aren’t supported in the Metadata API.
They can’t be retrieved or deployed with Metadata API, and changes to them must be made manually in each of your organizations. This is currently a limitation of the platform.
I solve my problem with a workaround. The workaround is to change the route type from Omni-Channel to Choice with a skill and manually change it back after deployment.