Ask Search:
Anu MoorthyAnu Moorthy 
Can you let me know how to hide a section in visualforce page onchange of picklist value?
Best Answer chosen by Anu Moorthy
Abhishek SivasubramanianAbhishek Sivasubramanian
The rendered attribute in a page block section needs to get a true or false. If you have a straight forward condition, you could write something like as shown below.
<apex:pageBlockSection title="Test" rendered="{!Account.industry == 'IT'}">

If you have a standard controller with an extensions class OR a custom controller in your visualforce page, you could write your section code in visualforce page as 
<apex:pageBlockSection title="Test" rendered="{!CheckMe}">

You method in the controller would look like
public Boolean CheckMe {
  get {
   Boolean chk = true;
   chk = chk && (acc.industry != 'IT');
   return chk;
  }
}

Hope this helps.
Please do mark this as the answer if this solves your issue.
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 = 'https://hooks.slack.com/services/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';
    
    public class Oppty {
        @InvocableVariable(label='Opportunity Name')
        public String opptyName;
        
        @InvocableVariable(label='Owner')
        public String Owner;
        
        @InvocableVariable(label='Opportunity Amount')
        public String Amount;
        
        @InvocableVariable(label='Account Development Owner')
        public String AccountDE;
        
        @InvocableVariable(label='Account')
        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);
        
        
        msg.put('mrkdwn',true);
        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();
            req.setEndpoint(url);
            req.setMethod(method);
            req.setBody(body);
            Http http = new Http();
            HttpResponse res = http.send(req);
        }
 
    }
    
}

Test class 
@isTest
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>();
lis.add(opt);
SlackOpportunityPush.postToSlack(lis);

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:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http_testing_httpcalloutmock.htm
 
Lloyd SilverLloyd Silver 
How can I check API usage and what applications are making the calls?
Best Answer chosen by Miglena (Salesforce.com) 
Joshua PyleJoshua Pyle

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

https://na1.salesforce.com//00O?rt=104&retURL=%2F00O&c=UN&c=FULL_NAME&c=EM&c=CID&c=TS&c=CC&duel0=FULL_NAME%2CUN%2CEM&scope=organization&details=yes

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

/00O?rt=104&retURL=%2F00O&c=UN&c=FULL_NAME&c=EM&c=CID&c=TS&c=CC&duel0=FULL_NAME%2CUN%2CEM&scope=organization&details=yes

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 (salesforce.com) 
Andrew GrossAndrew Gross
If they are really concerned about this, there are applications that do this kind of tracking: http://sabersolutions.com/solutions/products/ezcloudaudit/
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!

Thanks!
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:

https://appexchange.salesforce.com/results?keywords=lists

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.
PLEASE HELP!!
 
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 http://office.microsoft.com/en-us/powerpoint/HA100703231033.aspx   
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 http://www.powerpoint.repair/
 
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?
Thanks!
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. https://onlinefilerepair.com/en/project-repair-online.html
You have my sympathies.
…., PMP
Microsoft Project Blackbelt