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
Amit LohAmit Loh 

custom chatter buttons do not show up in chatter desktop

I created a custom chatter feed via apex code that shows up approve reject buttons, its showing up in browser but not in chatter desktop.
 
The code works but buttons show up only in browser-
actionLinkDefinitionInput.actionType = ConnectApi.ActionLinkType.Ui;
actionLinkDefinitionInput.actionUrl = 'https://test123567.na24.visual.force.com/apex/popuppage';
actionLinkDefinitionInput.labelKey = 'Approve';
actionLinkDefinitionInput.method = ConnectApi.HttpRequestMethod.HttpGet;
actionLinkDefinitionInput.requiresConfirmation = true;
 
// To Do: Substitute an OAuth value for your Salesforce org.
requestHeaderInput1.name = 'Authorization';
requestHeaderInput1.value = 'OAuth 00DD00000007WNP!ARsAQCwoeV0zzAV847FTl4zF.85w.EwsPbUgXR4SAjsp';
//actionLinkDefinitionInput.headers.add(requestHeaderInput1);
 
requestHeaderInput2.name = 'Content-Type';
requestHeaderInput2.value = 'application/json';
//actionLinkDefinitionInput.headers.add(requestHeaderInput2);
 
// Add the action link definition to the action link group definition.
actionLinkGroupDefinitionInput.actionLinks.add(actionLinkDefinitionInput);
 
actionLinkDefinitionInput1.actionType = ConnectApi.ActionLinkType.Ui;
actionLinkDefinitionInput1.actionUrl = 'https://test123567.na24.visual.force.com/apex/popuppage';
actionLinkDefinitionInput1.labelKey = 'Reject';
actionLinkDefinitionInput1.method = ConnectApi.HttpRequestMethod.HttpGet;
actionLinkDefinitionInput1.requiresConfirmation = true;
actionLinkGroupDefinitionInput.actionLinks.add(actionLinkDefinitionInput1);
// Instantiate the action link group definition.
ConnectApi.ActionLinkGroupDefinition actionLinkGroupDefinition = ConnectApi.ActionLinks.createActionLinkGroupDefinition(Network.getNetworkId(), actionLinkGroupDefinitionInput);
 
User-added image
alouie_sfdcalouie_sfdc
Chatter Desktop isn't being actively worked on by Salesforce, and so it doesn't support newer features like Action Links.
Amit LohAmit Loh
ah! but does normal browser based chatter is good for development or that is also non active..
Thanks!
alouie_sfdcalouie_sfdc
Browser-based development is fine. It's just the Chatter Desktop think client that won't get support for new features.
Amit LohAmit Loh
ok thanks! is this desktop chatter shelved... is desktop chatter used heavily