• ALL STAR
  • 17401 Points
  • Member since 

  • Chatter
    Feed
  • 557
    Best Answers
  • 0
    Likes Received
  • 17
    Likes Given
  • 0
    Questions
  • 5352
    Replies
Hello
I subscribe in Trailhead in order to get knowledge about Salesforce. I'm currently running a Trailhead module about Marketing cloud (connector between CRM org and Marketing Cloud) and I'm using my Trailhead Playground CRM org. But when trying to login Marketing Cloud to finish my Trailhead module, Marketing Cloud login tells me that my login/password are incorrect...?
Thanks for help
Is it possible using VisualForce to display two Contact related lists on the Account object?  Ideally, I would like to seperate the contacts based on recordtype.
  • January 07, 2019
  • Like
  • 0
When we are trying to deply report from one sandbox to another  , we are getting error 
Cannot find a user that matches any of the following usernames: xyz.abc@company.com.changesetcreationsandbox, xyz.abc@company.com.changesetdeploymentsandbox; remove the user from the component being deployed or create a matching user in the destination organization.

I have gone through couple of linkes , but i am not able to deply as i dont see option a srunning user. I see below options - 
View dashboard as  - 
Me
Another person
Let dashboard viewers choose whom they view the dashboard as Dashboard viewer

Please let me know which option i have to select while deploying in next higher sandobx where my login id doesnt exits and person deploying the reports/dashboards is different than me 
 
  • January 07, 2019
  • Like
  • 0
I have a piece of code in my lightning component as follows

pCodeShortDesc = pCodeShortDesc.subtring(0,28);

this return a string like "Nebuent    Inh 300 mg"

I want to remove the two extra white spaces in the above.

Please let me know urgent how to do.

thanks
sheila
Hello,

When i am trying to convert lead, i have below error:
 
Unable to convert lead that is in use by workflow.

when i check in debug logsi dont see any errors, i only have few logs saying it entered managed package..
Can someone guide me ?

 
write batch class to update field(noofcontacts__c) value on account with No of Contacts under that account.
 
Hello,

If i am sending anemail from opportunity, how can i show them as the related list on opportunity

thank you for suggestion
A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for this object. What happens when a user updates the record? Will both worflow and trigger be applied on the object?
I'm trying to complete Apex Integration Services rest services i  wrote code everything was good but when check challenge i got the error which i have mentioned above
Develop a visualforce page which comprises of an input box and search button. If name is entered and the search button is clicked, the page should display name and designation with respect to the name entered.
I tried writing the code below. But it seems to be not working. Please help me to complete this code,

<apex:page controller = "DisplayDesig">
        <apex:form>
        <apex:pageBlock>
            <apex:pageBlockTable value = "{!jobs}" var = "j">
                <apex:inputField value = "{!j.Name}"/>
                </apex:pageBlockTable>
    </apex:pageBlock>
    </apex:form>
</apex:page>

(Controller to fetch designation from custom object:)

public class DisplayDesig {
    
    public static List<Job__c> provideDesig(String Name)
        {
           List<Job__c> result =[SELECT Id, Designation__c from Job__c where Name =: Name];
            return result;

        }
    
    
}



 
How can I get all picklist values in a validation rule?

I'm looking for a suitable function but I cannot find any.

What I need to achieve is that some string is among the picklist values.

Please advise.
Hello all,

While preparing for the sales cloud certificate, I came across a question which seems debatable to me. I find in the documentation of work.com that A is possible. However, C and D seem to be also true (although the correct way to phase D would be to skip the word "coaching"). Can you please help and tell me which options are true and why?

How can you use Work.com to increase the productivity of your sales reps?(Choose 2 answers) 
A. Feedback can be requested for the entire sales team
B. Coaching statistics can be linked to reports
C. Feedback can be given publicly or privately
D. Coaching goals can be linked to reports
Hi guys,
I want to display day of the date in report. Start date is 2/10/2018 then need to display as Tue 2-Oct-2018.
Please help me to do this.
Thanks in advance
  • December 06, 2018
  • Like
  • 0
Hi All,
Winter 18 supports data loader for uploading customer inputs. 
https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_service_bots_dataloader.htm

However, I it does not include details on how (e.g. which salesforce object to use). Does anyone know or where to get that details?
  • December 06, 2018
  • Like
  • 0
Hello All,

I have created a managed package and installed into other org. But I dont know why the system permission for the profiles(Standard & Custom) are not getting carried over throough the package. Especially on the system permission for a profile - Run Flows - permission is not getting enabled automatically in the target org.

Please help me with this, its really urgent for me.User-added image
Hi All,

Can any one tell me how to Summarize the Formula field (Custom Field) in Reports.

Thanks & Regards,
Sarma
I populated the standard Product Object with Products & activated all. I want to add some Products in the Opportunity Line Object via the standard Opportunity page. I am not seeing any Products when trying to add to the Opportunity or the Price Book.
PL. HELP!!!!
A strange thing is happening in the Email address field of our Contacts. After deleting an email address on saving the change the email address reappears in the Email address field. What is happening is
 
  1. Email address entered into Contact email field and saved
  2. Later need to delete the entered email address and leave the field blank.
  3. Click ‘Edit’ button or double click on Email address field
  4. Delete entered email address
  5. Click ‘Save’
  6. Deleted Email address reappears in the Email field.
 
I can edit an entered email address and save and the new edited email address remains in the field.  I can also delete the old email address, enter a totally new email address and save.  The totally new email address remains in the field.  This is all good.

The problem is just when I want to leave the email address blank.
 
I have tried using Firefox and Chrome but the problem continues with either brouser.
 
Contact Email address field is not a mandatory/required field.  Therefore, so we should be able to delete an email address when we know the email address is no longer active and no replacement email address is provided.
 
Can you suggest what is happening and what needs to be done to correct the situation.
 
Regards
Graeme.
 
I wanted to create a custom exception message and thought it to the lightning component .. Does its possible ?
Hi! I'm just starting my Trailhead journey and wanted to pick your brains about how to best set this all up!

I will be leaving my company in a few weeks, yesterday I started Trailhead by logging in with LinkedIn (rather than a seperate new account).
Today I realised that when had I clicked to create the Trailhead Playground, this looks like it's linked to my SF work account which will be disappearing.

I have followed some advice posted here and created a developer account so I have the sandbox to play with, but it doesn't have the already-created playground setup that was created from Trailhead with my other account.

So.... should I start again with Trailhead using my Developer account to learn against (rather than the LinkedIn login).. will this allow me to create the playground pre-setup environment?

Also if I do this, and I'm not logged in to LinkedIn whilst progressing with Trailhead, is it just as easy to show badges etc from Linkedin if you're using a specified dev account rather than being logged into LinkedIn itself?

Thanks.
Hello
I subscribe in Trailhead in order to get knowledge about Salesforce. I'm currently running a Trailhead module about Marketing cloud (connector between CRM org and Marketing Cloud) and I'm using my Trailhead Playground CRM org. But when trying to login Marketing Cloud to finish my Trailhead module, Marketing Cloud login tells me that my login/password are incorrect...?
Thanks for help
Hello all,

I received this message:


"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: EJYTYQDC"

I tried several times complete this challenge but not work. 
Anyone can help with this?
Thanks
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: WSOPAXTH
Hello All.  I received this error message when attempting to complete my Trailhead module:

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: KHORHHIY.

Thanks in advance for the assistance.User-added image 
I've run into this error after following the steps in this Trailhead Module:
Installing pod dependencies
Update all pods
Updating local specs repositories
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down

As a result, I can't create the app and it won't compile in Xcode.
I'm running forceios version 7.0.0.

Anyone else see this?

 
I'm having the same issue. I completed the Admin Beginner Trail and it never showed up as completed on my profile. 
I am hoping there is a trigger way to keep users from being able to delete email records.All I have found is a suggestion to have this functionality. I found code to prevent a task from being deleted but we have something like that already in place. 

Any ideas?
Been reading a lot about Salesforce not being able to lock records. I think this would be the best workaround for my particle company. 
Is it possible using VisualForce to display two Contact related lists on the Account object?  Ideally, I would like to seperate the contacts based on recordtype.
  • January 07, 2019
  • Like
  • 0
When we are trying to deply report from one sandbox to another  , we are getting error 
Cannot find a user that matches any of the following usernames: xyz.abc@company.com.changesetcreationsandbox, xyz.abc@company.com.changesetdeploymentsandbox; remove the user from the component being deployed or create a matching user in the destination organization.

I have gone through couple of linkes , but i am not able to deply as i dont see option a srunning user. I see below options - 
View dashboard as  - 
Me
Another person
Let dashboard viewers choose whom they view the dashboard as Dashboard viewer

Please let me know which option i have to select while deploying in next higher sandobx where my login id doesnt exits and person deploying the reports/dashboards is different than me 
 
  • January 07, 2019
  • Like
  • 0
 I would like to break the standard page layout in SF and make it so separate users can only see certain activities. Any help would be greatly appreciated. Thank you. 
Hi, guys

When I did the project named "Build a Discount Approval Process", I could not pass the verification of the step "Prepare Your Org". Then the information I got is "Step not yet complete in My Trailhead Playground 1, Couldn’t find Allison Wheeler with the correct information. Please double check the instructions."

I knew this question probably is not very hard, but I tried to follow that step instruction 3 times, and I got the same error. So I confuse that why what I did is not correct.

Please help me or give me some suggestions about that and I appreciate for your guys help.

Thank you so much. 
  • January 06, 2019
  • Like
  • 0
Hello, I'm on step 7 of the Superbadget for Reports & Dashboards and created an org specifically for this badge. I have received the following error message: 
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: RBYLMECN
Any way to get through the last 2 steps without having to create new DE org and redo all the challenges?
Thanks!
Nicole
I am receiving an error on the last step of the Create Reports and Dashboards for Sales and Marketing Managers > Visualize your data Module:
"​​​​​​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: HXAWQXQK"

I haven't had any issue with any of the steps until this point.
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: OAORIKJS
 $(document).on('click','.f',function(){
        alert('Happy New Year');
       var status1 = $('.b').val();
       alert('status'+status1);
                    if(status1=="open") {
                        alert('status'+status1);   
                            $('.b').text("Status Field Should not be Open");
                        }
                    });
            <apex:commandButton value="Save" action="{!save1}" styleClass="f"/>
            <apex:inputField value="{!a.Status__c}"  styleClass="b"/>
 
I have a piece of code in my lightning component as follows

pCodeShortDesc = pCodeShortDesc.subtring(0,28);

this return a string like "Nebuent    Inh 300 mg"

I want to remove the two extra white spaces in the above.

Please let me know urgent how to do.

thanks
sheila
Hi
I am creating new community and while I am creating community users ,it is assigning the users to old community insted of new community.So what is the issue with it

Old and new community share same profile and permissions vary based on users.

Thanks in advance.
 
  • January 04, 2019
  • Like
  • 0
I have a lookup relationship between Order Line and Contact Objects where Contact is the parent. I am writing a batch class which looks for certain criteria on Order Line and send email to Contacts excluding the duplicates. 

Right now I have  2 duplicate Order Lines for the Contact and the batch is supposed to send 1 email. But in this code, there are 3 emails sent out. Can someone help with this?
 
global class BatchSendEmails implements Database.Batchable<SObject>
{
global Database.QueryLocator start(Database.BatchableContext BC){
	return Database.getQueryLocator([select id,Contact__r.Email,Contact__c,Account__c from Order_Line__c 
                                     where Order__r.OrderApi__Date__c = LAST_N_DAYS:3]);
}
      
    global void execute (Database.BatchableContext BC, List<Order_Line__c> scope){
         List<Messaging.SingleEmailMessage> mails = new List<Messaging.SingleEmailMessage>();
                                 List<String> email = new List<String>(); 
      
       List<Order_Line__c> sollist = [SELECT Id, Item__c, Contact__c,Order__c ,Contact__r.Email FROM Order_Line__c
        WHERE Order__r.Date__c = LAST_N_DAYS:3 AND Item__r.Name = 'Test'];
       
        Set<Id> solids = new Set<Id>();
        for(Order_Line__c ol : ollist){
            if(ol.id != null){
               olids.add(ol.Contact__c);
                system.debug('Added Contacts'+olids);
            }
        }
        
        AggregateResult[] groupedResults = [
        SELECT COUNT(Id) dups, Item__c, Contact__c,Order__c,Contact__r.Email
        FROM Order_Line__c
        WHERE Contact__c =:solids and Sales_Order__r.Date__c = LAST_N_DAYS:3 
        AND Item__r.Name = 'Test'    
        GROUP BY Item__c,Contact__c,Contact__r.Email,Order__c
         HAVING COUNT(Id) = 1];

        for(AggregateResult ar:groupedResults){
            String custid = (ID)ar.get('OrderApi__Contact__c');
            
          //	email.add(custid);
            
        List<Order_Line__c> sollist1 = [select id, Contact__r.Email,Order__c from Order_Line__c where id=: ar.Id limit 1];
            email.clear();
                email.add(ollist[0].OrderApi__Contact__r.Email); */
                                 List<String> ccemail = new List<String>();                                 
                                 ccemail.add('test@test.com');
    							 Contact c = [select id, Email from Contact where email <> null limit 1];
            try{                             
EmailTemplate templateId = [Select id from EmailTemplate where name = 'Email'];                                                   
                    system.debug(email);
                Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
                 OrgWideEmailAddress owa = [select id, DisplayName, Address from OrgWideEmailAddress where address = 'testing@test.org' limit 1];
                                            system.debug(email.size());
                                            mail.setToAddresses(email);
                                            mail.setccAddresses(ccemail);
                                            mail.setOrgWideEmailAddressId(owa.id);
                                            mail.setTargetObjectId(c.Id);
           									mail.setTreatTargetObjectAsRecipient(false);
                                            mail.setTemplateID(templateId.Id); 
                                            mail.setSaveAsActivity(false); 
                                            mails.add(mail);
                                            system.debug(mail);
											
                          
                                 Messaging.sendEmail(mails);
            }catch(Exception e){
                system.debug('Exception occured' +e);
            }
                
    }
    }
        
    global void finish(Database.BatchableContext BC){
        
    }
}

 
  • November 28, 2018
  • Like
  • 1
Hi,

I previously had a Developer Account where I added an app (+- 6 months ago)

Now, when I try to log in on that account, it does not recognize me.
I tried to change my password. Salesforce says it sent me an email but it never arrives
I need to get the account back because all the work has already been done

It was a connected app

I had to create a new account under a different name just to be able to post here

Please help!

Thanks
 
Apex class :-

    global class BlockIEPolicyCondition implements TxnSecurity.PolicyCondition {
     public boolean evaluate(TxnSecurity.Event e) {
      List<User> users = [SELECT ProfileId FROM User WHERE Id = :e.UserId];
            String profileId = (String)users.get(0).get('ProfileId');
            List<Profile> profiles = [SELECT Name FROM Profile WHERE Id = :profileId];
            String profileName = (String)profiles.get(0).get('Name');
            LoginHistory eObj = [SELECT Browser FROM LoginHistory WHERE Id = :e.data.get('LoginHistoryId')];
            string profileName1 = '"' +profileName + '"';
            String P=system.label.BlockIEPolicyProfile;
    Boolean ismatch = p.contains(profileName1);
    if(ismatch){
      if(eObj.Browser == 'IE 11' || eObj.Browser == 'IE 10' || eObj.Browser == 'IE 9' || eObj.Browser == 'IE 8') {
       return true;
     }
     }
    
     return false; 
    }
     }
I want to achieve one requirement that when Manager A logs in to his Org, then he should see only employees under him not under any other manager using lookup. Can someone help me to achieve it?
Trying to test the App in Salesforce1 - When I click "App Launcher" and then Salesforce.com I get this error message: Python 2.5 is no longer available. Please refer to https://goo.gl/aESk5L for more information. 

Please help so I can move forward. Thank you!
I would like to connect my org to the external data using OData 4.0. I have been configured the External Data Source and automatically create External Object.
But there is a problem when creating record in the external object. After save button clicked, then error dialog appears, see image below:
User-added image
Actually the data that I inserted was successfully created, but I still meet this error.
FYI, I have been configured the primary key on OData configuration and MySQL database.
I have a custom object called 'Class_Allocation__c' and have a lookup field on this object called 'Related_Contact__c.  I need expert help to write a trigger on Class_Allocation__c to auto copy the contact Id into this field based on 'Student__Name__c' field on Class_Allocation__C and Student_id_from_Student_object__c (on contact)
  • September 15, 2017
  • Like
  • 1
Hello All,
I need to be able to update an Azure database from Salesforce.  Mainly for Cases and Lawyers, when cases or lawyers get updated I need to update the Azure DB as well.
I have seen the examples that talk about Azure to Salesforce, but I have not seen anything talking about Salesforce to Azure.
I have looked at both the Salesforce WCF and RestAPI https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/
But again these go from Azure to Salesforce.

Is it possible to go the other way?  What would be the best approch to this as I have seen many differnt approches to connecting.
We don't want any syncing of data, just to make a .NET call when Salesforce records get updates ect.. to update our Azure DB.
Thanks,
K.
HELP
I am a brand new admin and I know nothing about the admin side of SalesForce.  Can someone explain to me how I can check if my org is using a single sign-on or HTTPS call outs?   I need to know if the default certificate retirement on 8/7/17 will affect my org before 8/7/17.   I've been reading about it but none of it makes sense to me.
when I was installing an app from appexchange, I got the oauth error. My account is the type of 30-day-free. 

Error code : 1800。

who can help me?
  • May 17, 2017
  • Like
  • 1
I have following scenario and want to set up partner community license.

1. Have profile Customer service rep.
2. He has access to only Order object.

i know we need to set Account as partner and then contacts need to be enabled as partner and then create user and assign the partner community profile.
But if i have no.of users and want to assign them Partner Community License  and Customer service repprofile, how i should proceed to implement this?

Could you please suggest?
I found an error in a Trailhead, thought I'd help anyone else with the same problem. While trying to solve the Using Events to Add Markers to the Map section of the Build an Account Geolocation App trailhead I kept receiving an error about a null value. Debugging the code I found that the map variable in AccountMapController.js was null. This is because the accounts were loading faster than the Leaflet.js libraries. To get around this I changed the accountsLoaded function to recursively check if the map existed only add markers once the map was an object:

   if(component.get("v.map") != null){
            var map = component.get("v.map");

            alert(map);
            
            var accounts = event.getParam("accounts");
            for (var i=0; i<accounts.length; i++) {
                var account = accounts[i];
                var latLng = [account.Location__Latitude__s, account.Location__Longitude__s];
                L.marker(latLng, {account: account}).addTo(map);
            }  
        }else{
            accountsLoaded(component, event, null); 
        }

Hello,

I am creating my first visualforce email. 
 

I am trying to list the Opportuntiy; owner, contact roles, and  opportuntiy team all on email template. I been able to figure out how to add the opportunity contact roles but I can't figure out how to add the Opportuntiy Owner and Opportuntiy team through the email code. 

Please see my visualforce code below. Thanks in Advance! 

<messaging:emailTemplate subject="Testing VF" recipientType="User" relatedToType="Opportunity">
<messaging:plainTextEmailBody >
Hello,
 
This is testing the text section....
Opportunity Name: {!Relatedto.name}
Account: {!Relatedto.account.name}
Amount: {!Relatedto.amount}
 
Contact Roles for this Opportunity:
<apex:repeat value="{!RelatedTo.OpportunityContactRoles}" var="ContactRole">
{!ContactRole.Contact.Name} {!ContactRole.Contact.Email}
</apex:repeat>
<apex:repeat var="team" value="{!relatedTo.opportunityteammembers}">
</apex:repeat>

Thanks!
</messaging:plainTextEmailBody>
</messaging:emailTemplate>

Hello Experts,

I have created excel workbook with help of VF page & XML Spreadsheet Reference. However I am not able to insert the company's logo in the first sheet. Can any one please suggest me how to insert an image in the sheet. Below is the VF code :

<apex:page controller="XYZ_controller" sidebar="false" showHeader="false"  contentType="application/vnd.ms-excel#{!object.Name__c}_Bid_Preview.xls" cache="true" action="{!changeProposalStatus}">
    {!xmlheader}
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
      xmlns:o="urn:schemas-microsoft-com:office:office"
      xmlns:x="urn:schemas-microsoft-com:office:excel"
      xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
      xmlns:html="http://www.w3.org/TR/REC-html40">
         
        <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
            <AllowPNG/>
        </OfficeDocumentSettings>
        
        <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
            <WindowHeight>7845</WindowHeight>
            <WindowWidth>12045</WindowWidth>
            <WindowTopX>630</WindowTopX>
            <WindowTopY>630</WindowTopY>
            <ProtectStructure>False</ProtectStructure>
            <ProtectWindows>False</ProtectWindows>
        </ExcelWorkbook>

<Worksheet ss:Name="Cover">
  <Table>
  <Column ss:Width="70" ss:StyleId="s_plain"/>
  <Column ss:Width="100" ss:StyleId="s_plain"/>
  <Column ss:Width="100" ss:StyleId="s_plain"/>
  <Column ss:Width="250" ss:StyleId="s_plain"/>

    <Row>
        <Cell  ss:Index="2" ss:StyleID="s9_confidential" ss:MergeAcross="3"><Data ss:Type="String">CONFIDENTIAL</Data></Cell>
    </Row>
    <Row></Row>
      
<I NEED TO INSERT AN IMAGE HERE i.e COMPANY'S LOGO> (For testing, any logo will do)

<Row ss:AutoFitHeight="1">
        <Cell  ss:Index="2" ss:StyleID="s_cover_heading" ss:MergeAcross="3"><Data ss:Type="String">Test Data</Data></Cell>
    </Row>
    <Row>
        <Cell  ss:Index="2" ss:StyleID="s_cover_heading_lab" ss:MergeAcross="3"><Data ss:Type="String">Test Data</Data></Cell>
    </Row>
    <Row></Row>
    
</Worksheet> 
   </Workbook>  
</apex:page>
    
I request your swift support and help on this. Your efforts would be greatly appreciated. Thanks in advance...!!
  • July 21, 2016
  • Like
  • 1