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
John Angerami 16John Angerami 16 

Format Currency in Slack Post

I am trying to create an Apex Class/Process Flow that posts on Slack when an Opportunity is closed won.

The amount is not populating correctly and is coming as '10000' opposed to $10,000'.
 
public class Oppty {
        @InvocableVariable(label='Opportunity Name')
        public String opptyName;
        @InvocableVariable(label='Stage')
        public String stage;
        @InvocableVariable(label='Opportunity First Name')
        public String opptyFirstName;
        @InvocableVariable(label='Opportunity Last Name')
        public String opptyLastName;
        @InvocableVariable(label='Opportunity Amount')
        public Decimal opptyAmount;  
    }