Ask Search:
Hormoz HekmatHormoz Hekmat 
I wrote a class 
public with sharing class SlackOpportunityPush {
    // To publish Opportunity values in form of a String//
    public static final String slackURL = '';
    public class Oppty {
        @InvocableVariable(label='Opportunity Name')
        public String opptyName;
        public String Owner;
        @InvocableVariable(label='Opportunity Amount')
        public String Amount;
        @InvocableVariable(label='Account Development Owner')
        public String AccountDE;
        public String Account;
    @InvocableMethod(label='Push to Slack')
    public static void postToSlack(List<Oppty> oppties) { 
        Oppty o = oppties[0]; // If bulk, only post first to avoid overloading Slack channel
        Map<String,Object> msg = new Map<String,Object>();
        msg.put('text',  '\n Opportunity Won !  Congrats to Opportunity Owner !  :-  ' +o.Owner +   '\n and Account Development Owner:-  '+ o.AccountDE + '\n who just closed Opportunity:-  ' +o.opptyName +   '\n associated to Account:- ' + o.Account +'\n for Opportunity Amount:- $ ' + o.Amount);
        System.debug('Called msg.put');
        System.debug('OpportunityOwner '+o.Owner);
        System.debug('OpportunityAccount '+o.Account);
        System.debug('OpportunityAmount '+o.Amount);
        String body = JSON.serialize(msg);    
        System.enqueueJob(new QueueableSlackCall(slackURL,'POST',body));
    public class QueueableSlackCall implements System.Queueable, Database.AllowsCallouts {
        public final String url;
        public final String method;
        public final String body;
        public QueueableSlackCall(String url,String method,String body) {
            this.url = url;
            this.method = method;
            this.body = body;
        public void execute(System.QueueableContext ctx) {
            HttpRequest req = new HttpRequest();
            Http http = new Http();
            HttpResponse res = http.send(req);

Test class 
private class SlackOpportunityTest {

static testMethod void testpostToSlack() {
SlackOpportunityPush.Oppty opt = new SlackOpportunityPush.Oppty();
opt.opptyName = 'Unit Test Opt';
opt.Owner = 'Unit Test Owner';

List<SlackOpportunityPush.oppty> lis = new List<SlackOpportunityPush.oppty>();

System.assertEquals(lis, lis); 

Now while Deploying I get this error :

​Methods defined as TestMethod do not support Web service callouts 
Stack Trace: null
Best Answer chosen by Hormoz Hekmat
Puneet MehtaPuneet Mehta
Hi Hormoz,

You will have to use callout mock intefaces to test classes making http calllout.

Further reading:
Lloyd SilverLloyd Silver 
How can I check API usage and what applications are making the calls?
Best Answer chosen by Miglena ( 
Joshua PyleJoshua Pyle

@Kirill, put this URL in for your instance.  It's how I found the API report.

Replace the na1 with your instance.  Below is the same url without the


Corinna RossknechtCorinna Rossknecht 
Hey there,

How can I start tracking calls and show the calling history in each Leads/Contacts/Opportunitites, when using Skype Click-to-Call? Any help appreciated!
Best Answer chosen by Corinna Rossknecht
Pruthvi RajPruthvi Raj
@Corinna : I might not be of great help here . Can you try contacting the customer service of the app , as they are the right persons for solving the issue ?
Casey EyeCasey Eye 
I am wondering if there is a way to get Salesforce to import the client e-mails into Sharefile, and possibly create an account into Sharefile?
Best Answer chosen by Casey Eye
Best Answer chosen by Scott Vey
Atul GuptaAtul Gupta
Yes, I think the controller which is associated with the vf page checks for the logged in user's profile and then redirects the page.

Is the package you installed unmanaged or managed ?

If it's unmanaged, the code can be looked into and changed. If its managed, read through the User/Installation Manual properly. There must be something written about this.

If nothing helps, reach out the the makers of the package regarding this.

Let me know if you need any further help on this.

If you find my answers userful, please mark it as "Best Answer" right under the comment.This will help if anyone else gets into the same issue. Thank you !!
Mary Lou GierlMary Lou Gierl 
Management is asking how many users and which users have viewed a newly created custom object containing competitive information. 
Best Answer chosen by Moderator ( 
Andrew GrossAndrew Gross
If they are really concerned about this, there are applications that do this kind of tracking:
Mohamed EshnukMohamed Eshnuk 
Hello, my company is moving from Sharepoint to Box, and we need the functionality of Sharepoint Lists. I was just wondering if anyone knows of any apps on the AppExchange that have similar functionality of Sharepoint Lists, or if you think it would be a better idea for us to develop our own version.

Please let me know!

Best Answer chosen by Mohamed Eshnuk
MarijaMarija (Salesforce) 

Hello Mohamed,

I see that there is  a number of apps available on the AppExhchange with similar functionality:

Have a look at the reviews and detials of the apps for further information.

Please let us know if you need further assistance, otherwise please take a moment to mark a post as "Best Answer" to help others in the community with similar questions.  Thank you all for your contribution to Success Community.

Wolfgang KrausWolfgang Kraus 
Hi, please can anyone help? submission deadline Monday 18:00 gmt
I am not sure what the file was saved as but when i come to open in .ppt 2007, it comes up with the error message : powerpoint can't open the type of file represented by filename.
Best Answer chosen by Wolfgang Kraus
Herbert HoodHerbert Hood
Try renaming the file to name.ppt  The .ppt extension will tell windows that it is a powerpoint file and hopefully open properly. 
Or upload the compatibility pack, and try again. see   
If these suggestions do not solve the problem then another possibility behind the error message can be the file damage. It may happen that the file you are trying to open is damage and needs repairing. You can repair the file by using PowerPoint Repair Kit repair and recovery software
mariano nietoramosmariano nietoramos 
Like a complete idiot I was working on a large task list in Microsoft Project.  I didn't "save" the project as I should have, and when I returned to work this morning, there had been a power failure, which took down my PC.
Is there anyway I might be able to retrieve this task list I was working on?
Best Answer chosen by mariano nietoramos
simon vanbeeksimon vanbeek
Hi mariano nietoramos,
Sorry, I have been down that road myself.  The short answer is no...
The only thing you can do is restart Project and hope for a magic message asking if you want to recover your work.  Well, still can try to recover the file in the online service Microsoft Project repair online. Maybe it's something will help. Unfortunately, I have never seen one appear.
You have my sympathies.
…., PMP
Microsoft Project Blackbelt
Daniel FullerDaniel Fuller 
Hello everyone,
I have a question in an area where I am stuck after creating a new stand-alone Lightning app. I do not want to run the Lightning app on the Salesforce1 platform but want to run it on a desktop platform from within the Salesforce org. What process does one have to go through to set up a stand alone Lightning App to be launched from within the Salesforce org? Is there a way to link Salesforce tabs to the Lightning App that will launch the app when they are clicked like you can with Visualforce pages or to add the Lightning App in the Apps menu? I am not able to find any documentation or how to use desktop Lightning Apps from within Salesforce or if that is possible at this time.
Best Answer chosen by Daniel Fuller
Daniel FullerDaniel Fuller
Thank you for the comments. I have discovered a few ways to do this that I wanted to share to this post for others.

1.) You can create a Web Tab and add the hard-coded URL for the Lighting App using the syntax cdylancarter mentioned as the URL. This will open the Lightning App inside of your Salesforce environment; therefore, you will still have the sidebar, header, standard stylesheets, etc.

2.) The more preferable way I have found is to create a Connected App in the Salesforce environment and specify the Lightning App URL as the "Start URL". You can then add the App to the App Launcher and it will appear in your normal app dropdown menu so that you can launch the app directly from there.