+ 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;  
    }