function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Daniel Peaper 8Daniel Peaper 8 

Scratch Org With Facebook Messenger

I have created a scratch org and I wish to setup Facebook Messenger as a channel in Omni Channel. However, when I try to add a new channel I get the error message "You don't have any Messaging permission set licenses."

I enabled the following features in my definition file:

"features": ["ServiceCloud", "ServiceUser", "LightningServiceConsole", "LiveAgent", "Chatbot","LiveMessage"]

The doco (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file_config_values.htm#so_liveagent) says that it enables messaging for Facebook Messenger.

Am I missing some settings or is there another issue?

VinayVinay (Salesforce Developers) 
Hi Daniel,

Can you try creating a messaging permission set?

https://help.salesforce.com/articleView?id=sf.messaging_create_permission_set.htm&type=5

Thanks,
Daniel Peaper 8Daniel Peaper 8

Thanks @Vinay,

 I created the permission set as you suggested but I was unable to asign it to myself getting the following errors when I tried:-

Can't assign permission set Messaging Permission Set for Agents to user Dan Peaper. The user license doesn't allow the permission: Messaging Agent
Can't assign permission set Messaging Permission Set for Agents to user Dan Peaper. The user license doesn't allow the permission: End Messaging Session
Can't assign permission set Messaging Permission Set for Agents to user Dan Peaper. The user license doesn't allow the permission: Agent Initiated Outbound Messaging

Cheers,
Dan