• SMARTIE
  • 1419 Points
  • Member since 

  • Chatter
    Feed
  • 44
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 786
    Replies
Hi Expert,

I need to change the permission of  "Internal Comments" on case object by profile. but this field is not editable in profile. So how i can edit this permission. 

User-added image

Please suggest

Thanks
Mukesh
A strange problem has just started, one which I haven't seen before. When I'm on any object such as Contacts , Accounts etc. and choose a list view such as All Contacts, I get a blank page returned (not really blank, but not showing any filtered records). This just started happening. Anyone encounter this before?

Hi All!
How can I call PageReference method in another void method within one class? I try like this, but nothing happens when I click button:

public PageReference Method1() {
...
}
public void Method2() {
Method1();
}

I am unable to login to trailhead. I think I may have turned the emails off. When I select forgot password no email comes through to my inbox. my email address is charlene.johnson188@ymail.com. My username is charlene.johnson188@ymail.com
I am using following code of Attachment object in vf page
<td><apex:outputLink value="/{!N.OwnerId}" target="_blank">{!N.OwnerId}</apex:outputLink></td>

when displaying {!N.OwnerId} on actual page id is displayed.How can i display name instead

I can use apex:outputField but i am not able to give target="_blank" so the page is being refreshed in vf page section without being displayed in new window.Any suggestion for solving the problem?
How can I create a 'delete' custom button for Lightning, in similarity to the one existing in the Classic details view? : 

User-added image
My company is trying to decide with tool to use for a two-way real-time integration with our web applications. I would like to know if Salesforce connect is a good option and if anyone has used it before to speak more on it.

 
Hi all,

I am building a process builder to send emails to users who created the case once the satus on case is changed. In the immediate action I chose Email alert, however, when I create email alest there is already required field to select who will receive this alert, which should not be the case. Is there an option to set up SF that the user who created the case receives an email everytime the status of the case is changed? Thanks
Whenever I post a reply to something on the forums (e.g.  https://developer.salesforce.com/forums/ForumsMain?id=9060G000000BflK) I get the error below. However it still posts my reply.

503
SPACESHIP MAINTENANCE
We're improving our site. Please try again later.


 
初心者な質問で恐縮です。もしご存知であればおしえてください。

SOQL WHERE 句の最大長の制限を見ていて4000文字とありました。

ただバインド変数を用いてSOQLを生成し発行するプログラムで、実際は4000文字を超えるSOQLが発行できています。
この4000文字ってバインド変数などは対象外とうことですか?

https://developer.salesforce.com/docs/atlas.ja-jp.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_soslsoql.htm

以上、よろしくお願いします。
I have created a Salesforce Community using Napili template. From the builder option, I have created two tabs for both Contact and Opportunity but when I login as a user, I can view all the contacts and opportunities in the org. Can I restrict this, so that the user can only see some fields from his contact and attachments from his opportunity? Can I do this using point and click or do I need visulaforce for this?

Thanks
When i run the below in my develope console
System.debug(UserInfo.getSessionId());

Displays "SESSION_ID_REMOVED". Can any one help me

Thanks & Regards
Ravi
 
When reading the challenge called "Write SOSL Queries", I read that one of the requirements is:

The return type for 'searchContactsAndLeads' must be 'List<List< SObject>>'

I believe this contains a simple couple of typos and should actually be:

The return type for 'searchContactsAndLeads' must be 'List<List<sObject>>'
Hi,

   Below piece of code is not covering the test class please suggest me how to cover this code
 
public static void accountRollup1(Map<id, Contact> newMap, Map<id, Contact> oldMap) {
        Map<id, List<Contact>> actCntMap = new Map<id, List<Contact>>();
        set<id> oldActidSet = new set<id>();
        set<id> newActidSet = new set<id>();
        for(Contact cont : newMap.values()){
            Contact oldCont = oldMap.get(cont.id);
            if(cont.AccountId == oldCont.AccountId){
                
            }
            List<contact> conts;
            oldActidSet.add(oldCont.AccountId);
            newActidSet.add(cont.AccountId);
            if(actCntMap.containsKey(cont.AccountId)) {
                conts = actCntMap.get(cont.AccountId);
            } else {
                conts = new List<Contact>();
            }
            conts.add(cont);
            actCntMap.put(Cont.AccountId, conts);
        }

        Map<id, Account> actMap = new Map<id, Account>([select id,NSE_1_Status__c,NSE_2_Status__c,NSE_3_Status__c,
                                                         NSE_4_Status__c, NSE_5_Status__c,NSE_6_Status__c, NSE_7_Status__c,
                                                         NSE_8_Status__c from account where id in :actCntMap.keySet()]);
        Map<id, Account> actOldMap = new Map<id, Account>([select id,NSE_1_Status__c,NSE_2_Status__c,NSE_3_Status__c,
                                                         NSE_4_Status__c, NSE_5_Status__c,NSE_6_Status__c, NSE_7_Status__c,
                                                         NSE_8_Status__c from account where id in :oldActidSet]);
        
        for(ID aid : actCntMap.keySet()) {
            system.debug(aid);
            system.debug(actMap);
            Account a = actMap.get(aid);
 
            for(Contact c : actCntMap.get(aid)) {
                Contact oc = oldMap.get(c.id);
                if(c.AccountId != oc.AccountId){
                    
                }
                if(c.NSE_1__c != oc.NSE_1__c) {
                    a.NSE_1_Status__c = changeCount(a.NSE_1_Status__c, c.NSE_1__c ? 1 : -1);
                }
                if(c.NSE_2__c != oc.NSE_2__c) {
                    a.NSE_2_Status__c = changeCount(a.NSE_2_Status__c,  c.NSE_2__c ? 1 : -1);
                }
                if(c.NSE_3__c != oc.NSE_3__c) {
                    a.NSE_3_Status__c = changeCount(a.NSE_3_Status__c,  c.NSE_3__c ? 1 : -1);
                }
                if(c.NSE_4__c != oc.NSE_4__c) {
                    a.NSE_4_Status__c = changeCount(a.NSE_4_Status__c,  c.NSE_4__c ? 1 : -1);
                }
                if(c.NSE_5__c != oc.NSE_5__c) {
                    a.NSE_5_Status__c = changeCount(a.NSE_5_Status__c,  c.NSE_5__c ? 1 : -1);
                }
                if(c.NSE_7__c != oc.NSE_7__c) {
                    a.NSE_7_Status__c = changeCount(a.NSE_7_Status__c,  c.NSE_7__c ? 1 : -1);
                }
                if(c.NSE_8__c != oc.NSE_8__c) {
                    a.NSE_8_Status__c = changeCount(a.NSE_8_Status__c,  c.NSE_8__c ? 1 : -1);
                }
            }
        }
        update actMap.values();
    } 
    
    public static void updateAccountRollup(List<Contact> newLst, Integer count) {
        Map<id, List<Contact>> actCntMap = new Map<id, List<Contact>>();
        for(Contact cont : newLst){
            if(cont.AccountId == null) continue;
            List<contact> conts;
            if(actCntMap.containsKey(cont.AccountId)) {
                conts = actCntMap.get(cont.AccountId);
            } else {
                conts = new List<Contact>();
            }
            conts.add(cont);
            actCntMap.put(Cont.AccountId, conts);
        }
        Map<id, Account> actMap = new Map<id, Account>([select id,NSE_1_Status__c,NSE_2_Status__c,NSE_3_Status__c,
                                                         NSE_4_Status__c, NSE_5_Status__c,NSE_6_Status__c, NSE_7_Status__c,
                                                         NSE_8_Status__c from account where id in :actCntMap.keySet()]);
        
        for(ID aid : actCntMap.keySet()) {
            system.debug(aid);
            system.debug(actMap);
            Account a = actMap.get(aid);
            
            for(Contact c : actCntMap.get(aid)) {
                if(c.NSE_1__c) {
                    a.NSE_1_Status__c = changeCount(a.NSE_1_Status__c, count);
                }
                if(c.NSE_2__c) {
                    a.NSE_2_Status__c = changeCount(a.NSE_2_Status__c, count);
                }
                if(c.NSE_3__c) {
                    a.NSE_3_Status__c = changeCount(a.NSE_3_Status__c, count);
                }
                if(c.NSE_4__c) {
                    a.NSE_4_Status__c = changeCount(a.NSE_4_Status__c, count);
                }
                if(c.NSE_5__c) {
                    a.NSE_5_Status__c = changeCount(a.NSE_5_Status__c, count);
                }
                if(c.NSE_7__c) {
                    a.NSE_7_Status__c = changeCount(a.NSE_7_Status__c, count);
                }
                if(c.NSE_8__c) {
                    a.NSE_8_Status__c = changeCount(a.NSE_8_Status__c, count);
                }
            }
        }
            update actMap.values();
        

    }
    
    private static decimal changeCount(decimal status, Integer count){
        decimal newCount = (status == null ? 0 : status) + count;
        system.debug(newCount);
        return (newcount < 0 ? 0 : newcount);
    }

 
I have a field on Opportunity object named "Type__c"(picklist) having values: opportunity ,Lead. When sales stage of a record having Type = “Lead”, is changed from Opportunity Identified to higher stage then Type should be updated to “Opportunity” and below message needs to be displayed on opportunity.   

Message to display: As deal moved to later stage, this lead will be auto-updated to opprtunity.

I have created field update for this but now stuck with this message. Could you please help and let me know how i can i populate this message whenever type is updated to lead.  

Your help is highly appreciated.

Thanks
Tanu


 
  • June 28, 2017
  • Like
  • 0
Hello all, 

 I have date with (dd-mmm-yy) ex: 20-may-17, in Excel sheet with text type , i need to update this date format  and load in salesforce. can anyone suggest me how to convert it proper date format in salesforce.
  
its bit urgenet requrement.
Thanks 
Vijendahr
) Query all contact records (limit 1000), and show using jquery table as below example:
http://datatables.net/examples/basic_init/themes.html

2) Make first name as clickable, and on click show the record information in editable format in a jquery popup dialog box like below example:
http://jqueryui.com/dialog/#modal-form

3) Contact must be saved using this dialog along with Photo Upload option. That photo must be saved in attachment for that contact and must be visible when the dialog box open for that record.

in this scenario i have done upto 2nd point and in 3rd point photo is being uploaded successfully bt i am not able to show photo in popup box when i open it again after photo upload
  • May 30, 2017
  • Like
  • 0
Hello,

I have below deployment error for deployment of page layout from one sandbox to another

User-added image

thanks for suggestions

 
Hello all,
I prepared one aplication, that is on salesforce clasic and then i just run in lightning so i have some UI issu so can you plz guid or give some suggation how can i solve 
In my 1st screnshort that is salesforce classic that is proper.
User-added image

2) this is my lightning problem is in this.
User-added image

so how can i do that in both it is compitibale?

plz giude me.
thanks in advance,
Hi ,

       I need to override the delete button in the record when I click on the delete button in need to change a field value instead of deleting.
Hello Guru's,

I've created an Apex Class, a Visual Force Page, and a custom field named "Last Viewed By" earlier, the goal is to have the feature of knowing who last viewed an account record in SF. Both of the Apex Class and Visual Force page are working fine, although there's a bit issue, It messes up the "Last Modified By" Field as well. So for example: USER 1 viewed the Account named Account 1 (viewed only, no editting done), when User 2 views the same account both of the "Last Viewed By" and "Last Modified By" field are now showing USER 1 DD/MM/YYYY TIME. Any advise, or suggestions on what changes needs to be done on the codes below.

APEX CLASS
public class lastViewedAccount{
public Datetime cDT;
public String LongDate;
public String firstname;
public String lastname;
public String userid;
private final Account acct;
public lastViewedAccount(ApexPages.StandardController stdController) {
this.acct = (Account)stdController.getRecord(); }
public String getLongDate() {
cDT = System.now(); //Format the datetime value to your locale
LongDate = cDT.format('dd/MM/yyyy HH:mm'); return LongDate;
}
public void updateField() {
//Get the user info from the current user
firstname = System.Userinfo.getFirstName();
lastname = System.Userinfo.getLastName();
userid = System.Userinfo.getUserId();
//Get the Account record to be updated
Account a = [select Last_Viewed_By__c from Account where id = :acct.id limit 1];
//Assign values to Last Viewed By field &amp; update the record
a.Last_Viewed_By__c = (firstname + ' ' + lastname + ', ' + getLongDate());
update a;
}

}

Visual Force Page
<apex:page action="{!updateField}" extensions="lastViewedAccount" showheader="false" sidebar="false" standardcontroller="Account"> </apex:page>
trigger majorIdonApplication on Application__c (before insert,before update) {
    Set<String>majorName = new Set<string>();
    Set<Id>majorNameset = new Set<Id>();
    for(Application__c application : Trigger.new){
        if(application.Intended_Major__c !=null){
            majorName.add(application.Intended_Major__c);
        }
    }
    for(Major__c major : [SELECT id,Name FROM Major__c WHERE name In : majorName]){
        majorNameset.add(major.Id);
    }
    for(Application__c app : Trigger.new){
        for(Id Child : majorNameset){
            app.Major_Interest__c = Child;
        }
    }
}
Seeking some assistance. I have moved forward with a button within my communities for live agent. The chat button is from the unmanaged package "Live Chat Button". All the configuration has been completed and it works as expected with the routing. However, the button is not going live unless the page is refreshed... I am unsure on why I need to refresh this page for it to go live. If anyone has any ideas on this please let me know! It is appreciated and thank you in advance.

 
i see messaging namespace and its methods and clases but i amnot understand properly
  • August 17, 2017
  • Like
  • 0
Hi Folks,

I am new in apex development where i have searched about multiple code editors like, inline editor, dev console, aside.io and sublime editor using mavan tool.

finally i stopped to eclipse by configuring force.com ide.

Now I am looking for code versioning at a point of time in eclipse.  Please guide me on this.  Thanks in Advance!!
I want to create a simple VF page 'Do not Contact' banner that applies to 1 Contact Record Type. The banner will be displayed on the 'contacts' page layout. I have looked at the examples but being an Admin and not a developer I need some guidance.
Hi, I'd like to insert a suggestion panel in an object layout which shows available records from another object.

I have three objects, Request, Vehicle and Garage. Garage and Vehicle has a master-detail relationship respectively. And they are both related to Request via lookup relationship. What I want to do is, show available cars in garages in Request layout. For example, if the city field in request is a certain city, I want the system to show garages and available cars in that city. 
Hi,
For test purpose i have created an approval process on goal object but now i am not able to delete it.
Can someone please suggest some solution .

Below is the errror  (getting same error on 2 of my dev org while deleting approval process of Goal Object )

An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com! 

I want to expose my third party application in salesforce visual force as a part of Salesforce experience.

I have already implemented this with help of Canvas App using Connected App. Through this approach I am not able to dynamically change my URL's domain.

Is there is any other way to implemente this ? If yes, then how ?

Hi everyone,

We are currently trying to implement the integration of GotoMeeting and we managed to do it for salesforce classic version, however this integration distrubs our salesforce lightning experience.
I would like to know how it is possible to adapt this inegration to lightning or is there another specific integration to Lightning

Thank you

Mathieu
hI friends,
pop up is not working on my vf page properly.
actually i am working on pageblock table,if the size of pageblock table is higher then the pop up is changed accordingly.if that is low,it changes.
based on back ground scroll bar,the pop up chenges automatically.
so please find this solution.
 
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: MLNKBVFT
I am stuck here.
According to the instruction (under "Add Actions to Execute when the Criteria are Met"), it says:

Select Opportunity > Account ID and then click Choose.

But, it does not give that option, but it leads to next drop down menu.
So, I do not know how to go about clicking "Choose".


User-added image.
Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: NDIIGWDR

Im in the Mobil Module - but have completed everything else.
Hello,

I am trying to install the Salesforce Adoption Dashboards from the AppExchange into my Playground for the Lightning Experience Reports & Dashboards > Extend Your Reporting Strategy with AppExchange hands-on challenge.  When I click on the link directly in Trailhead to install, it says I do not have the correct admin permissions (screenshot attached), atlthough in Setup I do have the admin profile assigned to me.  If I try to install the package directly from my Playground instead by searching the AppExchange, it redirects me to a window to verify my credentials and then says that the link it directed me to is broken.  It does nothing after that, so I have no way of installing the package from there either.

Any insight on what I can try out would be helpful!User-added image
From the below image if i select picklist as other than only new field should pop up on vf page so how to do that?
User-added image