• Pritam Shekhawat
  • NEWBIE
  • 420 Points
  • Member since 2014
  • Salesforce.com Developer
  • Hytech Professional India Pvt Ltd


  • Chatter
    Feed
  • 12
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 85
    Replies
First question is:- can i do customization on Mailchimpforsalesforce App if yes, please read the below details.
I am using Mailchimpforsalesforce app to integrate salesforce and Mailchimp(MC). The MailChimpforSalesforce app is designed to offer a two-way sync between MailChimp and Salesforce.
By this app,i got the option for creating MC campaign,view MC campaign activity, creating list new segment, staying in salesforce account only. But i didn't have the option to "create new List". I want this particular feature on this App. can i do it? please give me some overall idea regarding this.
I created a new developer org to fulfill the trailhead modules but at the beginning of of validating a challenge I get the error:
"No app named ......"was found".
error message trailhead No app named ...

Because of his error I started again in the old environment to reproduce the challenge and everything works fine.
Can someone helps me what is blocking in the new developer org? I tried again to registrate for a third develop org but it gives the same problem when I reproduce the challenge.
 
In '3 - Sales & Marketing Adoption' dashboard, change the dashboard component for 'New LEAD Trend by Source' to a pie chart and set the wedges to Lead Source.
what is wedges?
Hi,

I am looking to move our organisation to the lightning experience as it is clearly far more simple and could result in less time wasted on CRM by our sales staff.  The Composer section for Tasks on the account page is very effective but I cannot seem to find where to customise this layout.  I need to add fields to this quick create composer.  Is this possible.  

Also is there any way to allow inline editing in lightning experience?

Nick
Hello,

Im trying to create a data validation rule for the phone number field to only accept the following formats +99 9 9999 9999 or +99 9 999 9999.
I found and modified the below online which works well for the number part, however I cant figure out how to add the + into this validation rule...

AND( 
IF(ISBLANK(Phone) , false , NOT( REGEX( Phone,"[0-9]{2}[\\s][0-9]{1}[\\s][0-9]{3}[\\s][0-9]{4}"))), 
IF(ISBLANK(Phone) , false , NOT( REGEX( Phone,"[0-9]{2}[\\s][0-9]{1}[\\s][0-9]{4}[\\s][0-9]{4}"))) 
)

I also found the below which works on its own, but I can figure out how to join these two into one validation rule...
LEFT(Phone, 1) <> "+" 

Please help.
Thanks Jeff
Hello

I am trying to create a formula to show tickets created last 2 days.  In a report I thought about using a literal date range filter to show last n days nut I cant see an option to do a custom last n days only 7, 30,60,90,120.

Is there a formula to show CreateDate last 2 days?


Many thanks

Sonya

Sonya
 
    Hi Team,
    
        I have one question. Is there any way to access the visualforce page without entering the login credentials in salesforce website. 
        I will only provide the sesion id or acces tokken.
        
        1. I will login through my rest api with user name , password, client id, client secret, call back url.
            The response of this request is a security token.
        
        2. Now I want to navigate a visual force page. Some thing like this.
        
            https://c.cs0.visual.force.com/apex/HelloWorld?oauth_token=<access token>
            
    Let me know is there any way to do this or do you have any suggestons?
  • October 09, 2015
  • Like
  • 0
Hai,
Anyone please explain me about INSERT in Data Loader, I got a doubt regarding creation of csv file. There is a condition of Standard Objects are must and should. I can't understand that .

Hi
Please tell me what is the difference between the CUSTOM APP and CONSOLE APP.


THANKS&REGARDS

RANGA

Can you pls answer the following and let me know the explanation pls.

A system administrator at universal containers needs to mass update the lead source on a number of opportunity records. How can this be accomplished. Choose 2 answers
A.create a list view for opportunities and update using inline editing.
B.Export opportunities and update  the dataloader
C.Use similar opportunities to update the opportunities
D.Export opportunities and update using import wizard
  • August 25, 2015
  • Like
  • 0
Hi guys,

I tried creating a new dev org and am getting this page below and cannot create an account. Is anyone else facing the same issue?
User-added image
User-added image
Hello,
         I am using visualforce page for task and log a call.And i set some default value for subject , due date and assigned to. But am not able to autopopulate whoid and whatid for lead and opportunity. Without this it is working fine for every object except opportunity. Whenever i click on new task from opportunity it will give below error.Validation Errors While Saving Record(s) There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Name ID: id value of incorrect type: 0011100000sysNbAAI".Below is my code am something missing here??
public with sharing class LogACallControllerExtension {

    public Task task;
    ApexPages.Standardcontroller controller;

    public LogACallControllerExtension(ApexPages.StandardController controller) {
    User u = [select firstname,Id ,LastName from user where id=:userinfo.getuserid()];    
            this.task = (Task)controller.getRecord();     
           
          
            this.task.status = 'Completed';
            this.task.Subject ='Call'; 
            this.task.OwnerId =u.Id;
            this.task.ActivityDate= date.today();
            this.controller = controller;

         
    }
   
    
    
    
   
}
Click here to return to the previous page.
Hello ,
         I have one object Project__c . In this there are one  picklist Assigned_To__c  in this picklist i add manually all user name. So whenever i choose for example Pritam Shekhawat then project owner should be Pritam Shekhawat. Give me a idea what is easy way to do this.
Thanks
Hello ,
         I am Using import wizard for importing my leads from production to developer account. I export all leads from production, i have total 3500 leads. When i tried to import then its display like this:
Result:
Total records processed: 3,555
Leads created: 1,974
Leads not updated: 1,581
Leads updated: 0
Invalid or no-access lead ids: 0
Deleted lead ids: 0
Locked leads: 0
Converted lead ids: 0
Ignored leads because a converted status was specified: 1,581
Duplicates: 0
Violated uniqueness constraints: 0

How to solveout this issue??
Thanks,

 
Hello Everyone ,
                       I am working on Custom Calendar in VisualForce page. I follow  steps from this  http://www.codebycody.com/2013/06/create-calendar-view-in-salesforcecom.html . Everything is doing fine but i dont know how to add new event in custom calendar on click on date.
So any idea how i can add new events ??
My controller
public class CalendarExample_Controller {



    public Boolean includeMyEvents {get;set;}

    public list<calEvent> events {get;set;}

    

    //The calendar plugin is expecting dates is a certain format. We can use this string to get it formated correctly

    String dtFormat = 'yyyy-MM-dd HH:mm:ss';

    

    //constructor

    public CalendarExample_Controller() {

        //Default showing my events to on

        includeMyEvents = true;

    }

    

    public PageReference pageLoad() {

        events = new list<calEvent>();

        //Get Contact's Birthdays

        for(Contact cont : [select Id, Birthdate, FirstName, LastName from Contact where Birthdate != null]){

            //here we need to replace the birth year with the current year so that it will show up on this years calendar

            DateTime startDT = datetime.newInstance(Date.Today().Year(),cont.Birthdate.Month(), cont.Birthdate.Day());

            calEvent bday = new calEvent();

            

            bday.title = cont.FirstName + ' ' + cont.LastName + '\'s Birthday!';

            bday.allDay = true;

            bday.startString = startDT.format(dtFormat);

            //Because this is an all day event that only spans one day, we can leave the send date null

            bday.endString = '';

            bday.url = '/' + cont.Id;

            bday.className = 'event-birthday';

            events.add(bday);

        }

        

        //Get Campaigns

        for(Campaign camp : [select Id, Name, StartDate, EndDate from Campaign where IsActive = true]){

            DateTime startDT = camp.StartDate;

            DateTime endDT = camp.EndDate;

            calEvent campEvent = new calEvent();

            

            campEvent.title = camp.Name;

            campEvent.allDay = true;

            campEvent.startString = startDT.format(dtFormat);

            campEvent.endString = endDT.format(dtFormat);

            campEvent.url = '/' + camp.Id;

            campEvent.className = 'event-campaign';

            events.add(campEvent);

        }

        

        //Get my Events if we have selected the correct option

        if(includeMyEvents){

            for(Event evnt: [select Id, Subject, isAllDayEvent, StartDateTime, EndDateTime from Event where OwnerID = :UserInfo.getUserId()]){

                DateTime startDT = evnt.StartDateTime;

                DateTime endDT = evnt.EndDateTime;

                calEvent myEvent = new calEvent();

                

                myEvent.title = evnt.Subject;

                myEvent.allDay = evnt.isAllDayEvent;

                myEvent.startString = startDT.format(dtFormat);

                myEvent.endString = endDT.format(dtFormat);

                myEvent.url = '/' + evnt.Id;

                myEvent.className = 'event-personal';

                events.add(myEvent);

            }

        }

        return null;

    }

    

    public PageReference toggleMyEvents() {

        if(includeMyEvents){

            includeMyEvents = false;

        }

        else{

            includeMyEvents = true;

        }

        pageload();

        return null;

    }



    

    //Class to hold calendar event data

    public class calEvent{

        public String title {get;set;}

        public Boolean allDay {get;set;}

        public String startString {get;private set;}

        public String endString {get;private set;}

        public String url {get;set;}

        public String className {get;set;}

    }
    }
visualforce page
<apex:page controller="CalendarExample_Controller" action="{!pageLoad}">

    <link href="{!$Resource.fullCalendarCSS}" rel="stylesheet" />

    <link href="{!$Resource.fullCalendarPrintCSS}" rel="stylesheet" media="print" />

    

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>

    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

    <script src="{!$Resource.fullCalendarMinJS}"></script>

    <apex:includeScript value="{!URLFOR($Resource.momentmin)}"  />

    <script>

        //We need to wrap everything in a doc.ready function so that the code fires after the DOM is loaded

        $(document).ready(function() {   

            //Call the fullCallendar method. You can replace the '#calendar' with the ID of the dom element where you want the calendar to go. 

            $('#calendar').fullCalendar({
                  
  

                header: {

                    left: 'prev,next today',

                    center: 'title',

                    right: 'month,agendaWeek,agendaDay'

                },

                editable: true,

                events:

                [

                    //At run time, this APEX Repeat will reneder the array elements for the events array

                    <apex:repeat value="{!events}" var="e">

                        {

                            title: "{!e.title}",

                            start: '{!e.startString}',

                            end: '{!e.endString}',

                            url: '{!e.url}',

                            allDay: {!e.allDay},

                            className: '{!e.className}'

                        },

                    </apex:repeat>

                ],
                
                
         
            });

           
        });

    

    </script>

       

    <!--some styling. Modify this to fit your needs-->

    <style>

        #cal-options {float:left;}

        #cal-legend { float:right;}

        #cal-legend ul {margin:0;padding:0;list-style:none;}

        #cal-legend ul li {margin:0;padding:5px;float:left;}

        #cal-legend ul li span {display:block; height:16px; width:16px; margin-right:4px; float:left; border-radius:4px;}

        #calendar {margin-top:20px;}

        #calendar a:hover {color:#fff !important;}

        

        .fc-event-inner {padding:3px;}

        .event-birthday {background:#56458c;border-color:#56458c;}

        .event-campaign {background:#cc9933;border-color:#cc9933;}

        .event-personal {background:#1797c0;border-color:#1797c0;}

    </style>

    

    <apex:sectionHeader title="My Calendar Example"/>

    <apex:outputPanel id="calPanel">

        <apex:form >

            <div id="cal-options">
                 
                <apex:commandButton value="{!IF(includeMyEvents,'Hide My Events','Show My Events')}" action="{!toggleMyEvents}"/>

            </div>

            <div id="cal-legend">

                <ul>

                    <li><span class="event-birthday"></span>Contact's Birthdays</li>

                    <li><span class="event-campaign"></span>Campaigns</li>

                    <li style="{!IF(includeMyEvents,'','display:none')}"><span class="event-personal"></span>My Events</li>

                </ul>

                <div style="clear:both;"><!--fix floats--></div>

            </div>

            <div style="clear:both;"><!--fix floats--></div>

            <div id="calendar"></div>

        </apex:form>

    </apex:outputPanel>

</apex:page>


 
Hello everyone , currently am working on one Requirement of my client . He want to replace the record id for account object with required custom field mobile__c . By default salesforce url for some account record is https://ap1.salesforce.com/0019000000nITT1 but i want to replace this by
https://ap1.salesforce.com/9696969696 its posssible in salesforce?? Waiting for your response
hii,
I'm working on a project for a dynamic search of clients using Jeff Douglas's blog as a template

http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/

I have everything displayed correctly, but in controller am not able to retrive dynamic picklist value.

https://jeffdouglas-developer-edition.na5.force.com/examples/CustomerSearch
i used  contact LeadSource Picklist Value in this controller.
Tell me how to retrive dynamic picklist value .its show Error: Compile Error: Invalid type: Schema.DescribeFieldResult at line 85 column 9
public with sharing class ContactSearchController {

  // the soql without the order and limit
  private String soql {get;set;}
  // the collection of contacts to display
  public List<Contact> contacts {get;set;}

  // the current sort direction. defaults to asc
  public String sortDir {
    get  { if (sortDir == null) {  sortDir = 'asc'; } return sortDir;  }
    set;
  }

  // the current field to sort by. defaults to last name
  public String sortField {
    get  { if (sortField == null) {sortField = 'lastName'; } return sortField;  }
    set;
  }

  // format the soql for display on the visualforce page
  public String debugSoql {
    get { return soql + ' order by ' + sortField + ' ' + sortDir + ' limit 20'; }
    set;
  }

  // init the controller and display some sample data when the page loads
  public ContactSearchController() {
  contacts= new List<Contact>();
    soql = 'select FirstName, LastName,account.name,LeadSource FROM Contact Where account.Name!=null';
    runQuery();
  }

  // toggles the sorting of query from asc<-->desc
  public void toggleSort() {
    // simply toggle the direction
    sortDir = sortDir.equals('asc') ? 'desc' : 'asc';
    // run the query again
    runQuery();
  }

  // runs the actual query
  public void runQuery() {

    try {
      contacts = Database.query(soql + ' order by ' + sortField + ' ' + sortDir + ' limit 20');
    } catch (Exception e) {
      ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, 'Ooops!'));
    }

  }

  // runs the search with parameters passed via Javascript
  public PageReference runSearch() {
      
    String FirstName = Apexpages.currentPage().getParameters().get('FirstName');
    String LastName = Apexpages.currentPage().getParameters().get('LastName');
   
    String LeadSource = Apexpages.currentPage().getParameters().get('LeadSource ');
    
    String accountName= Apexpages.currentPage().getParameters().get('accountName');
   
  

    soql = 'select  FirstName,LastName,LeadSource,account.name FROM Contact Where account.Name!=null';
   
    if (FirstName!= null && !FirstName.equals(''))
      soql += ' and FirstName LIKE \''+String.escapeSingleQuotes(FirstName)+'%\'';
    if (LastName!= null && !LastName.equals(''))
      soql += ' and LastName LIKE \''+String.escapeSingleQuotes(LastName)+'%\'';
    if (accountName!= null && !accountName.equals(''))
      soql += ' and account.Name LIKE \''+String.escapeSingleQuotes(accountName)+'%\'';
    if (LeadSource !=null && !LeadSource.equals(''))
      soql += ' and LeadSource LIKE \''+String.escapeSingleQuotes(LeadSource)+'%\'';  
  
    // run the query again
    runQuery();

    return null;
  }
 public List<String> LeadSource{
    get {
      if (LeadSource== null) {
 
        LeadSource= new List<String>();
        Schema.DescribeFieldResult field = Contact.LeadSource.getDescribe();
 
        for (Schema.PicklistEntry b : field.getPicklistValues())
          LeadSource.add(b.getLabel());
 
      }
      return LeadSource;          
    }
    set;
  }
 
}

 
hii,
I'm working on a project for a dynamic search of clients using Jeff Douglas's blog as a template

http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/

I have everything displayed correctly, but in controller am not able to retrive dynamic picklist value.

https://jeffdouglas-developer-edition.na5.force.com/examples/CustomerSearch
i used  contact LeadSource Picklist Value in this controller.
Tell me how to retrive dynamic picklist value .its show Error: Compile Error: Invalid type: Schema.DescribeFieldResult at line 85 column 9
public with sharing class ContactSearchController {

  // the soql without the order and limit
  private String soql {get;set;}
  // the collection of contacts to display
  public List<Contact> contacts {get;set;}

  // the current sort direction. defaults to asc
  public String sortDir {
    get  { if (sortDir == null) {  sortDir = 'asc'; } return sortDir;  }
    set;
  }

  // the current field to sort by. defaults to last name
  public String sortField {
    get  { if (sortField == null) {sortField = 'lastName'; } return sortField;  }
    set;
  }

  // format the soql for display on the visualforce page
  public String debugSoql {
    get { return soql + ' order by ' + sortField + ' ' + sortDir + ' limit 20'; }
    set;
  }

  // init the controller and display some sample data when the page loads
  public ContactSearchController() {
  contacts= new List<Contact>();
    soql = 'select FirstName, LastName,account.name,LeadSource FROM Contact Where account.Name!=null';
    runQuery();
  }

  // toggles the sorting of query from asc<-->desc
  public void toggleSort() {
    // simply toggle the direction
    sortDir = sortDir.equals('asc') ? 'desc' : 'asc';
    // run the query again
    runQuery();
  }

  // runs the actual query
  public void runQuery() {

    try {
      contacts = Database.query(soql + ' order by ' + sortField + ' ' + sortDir + ' limit 20');
    } catch (Exception e) {
      ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, 'Ooops!'));
    }

  }

  // runs the search with parameters passed via Javascript
  public PageReference runSearch() {
      
    String FirstName = Apexpages.currentPage().getParameters().get('FirstName');
    String LastName = Apexpages.currentPage().getParameters().get('LastName');
   
    String LeadSource = Apexpages.currentPage().getParameters().get('LeadSource ');
    
    String accountName= Apexpages.currentPage().getParameters().get('accountName');
   
  

    soql = 'select  FirstName,LastName,LeadSource,account.name FROM Contact Where account.Name!=null';
   
    if (FirstName!= null && !FirstName.equals(''))
      soql += ' and FirstName LIKE \''+String.escapeSingleQuotes(FirstName)+'%\'';
    if (LastName!= null && !LastName.equals(''))
      soql += ' and LastName LIKE \''+String.escapeSingleQuotes(LastName)+'%\'';
    if (accountName!= null && !accountName.equals(''))
      soql += ' and account.Name LIKE \''+String.escapeSingleQuotes(accountName)+'%\'';
    if (LeadSource !=null && !LeadSource.equals(''))
      soql += ' and LeadSource LIKE \''+String.escapeSingleQuotes(LeadSource)+'%\'';  
  
    // run the query again
    runQuery();

    return null;
  }
 public List<String> LeadSource{
    get {
      if (LeadSource== null) {
 
        LeadSource= new List<String>();
        Schema.DescribeFieldResult field = Contact.LeadSource.getDescribe();
 
        for (Schema.PicklistEntry b : field.getPicklistValues())
          LeadSource.add(b.getLabel());
 
      }
      return LeadSource;          
    }
    set;
  }
 
}

 
First question is:- can i do customization on Mailchimpforsalesforce App if yes, please read the below details.
I am using Mailchimpforsalesforce app to integrate salesforce and Mailchimp(MC). The MailChimpforSalesforce app is designed to offer a two-way sync between MailChimp and Salesforce.
By this app,i got the option for creating MC campaign,view MC campaign activity, creating list new segment, staying in salesforce account only. But i didn't have the option to "create new List". I want this particular feature on this App. can i do it? please give me some overall idea regarding this.
Hi,

I want to retrive in SOQL account record type from child object opportunity.

how can i write the query ?
I created a new developer org to fulfill the trailhead modules but at the beginning of of validating a challenge I get the error:
"No app named ......"was found".
error message trailhead No app named ...

Because of his error I started again in the old environment to reproduce the challenge and everything works fine.
Can someone helps me what is blocking in the new developer org? I tried again to registrate for a third develop org but it gives the same problem when I reproduce the challenge.
 
We mistakenly changed the domain name this morning using the "My Domain " option but now have my name in the URL  (  https://jasonold.my.salesforce.com/setup/ )  when we were trying to get the new company name included.
Is there any way to revert the domain back to the default Salesforce one or one of our choosing?

Regards

Jason 
In '3 - Sales & Marketing Adoption' dashboard, change the dashboard component for 'New LEAD Trend by Source' to a pie chart and set the wedges to Lead Source.
what is wedges?
Hi all,
The question is
Install an AppExchange dashboard package and make updates to one of the dashboards.
You’ve been asked to create a new Lead trending dashboard. Rather than creating the dashboard from scratch, install a CRM adoption dashboard package from the AppExchange into your Developer Edition environment and update one of the dashboard components as specified below. (Note: While it's a best practice to always clone a dashboard before you modify it, for this example, you can go ahead and modify the dashboard directly).
Install Salesforce Adoption Dashboards from the AppExchange into your Developer Edition.
Refresh the '3 - Sales & Marketing Adoption' dashboard in the 'Salesforce Adoption Dashboards' folder at least once.
In '3 - Sales & Marketing Adoption' dashboard, change the dashboard component for 'New LEAD Trend by Source' to a pie chart and set the wedges to Lead Source.

The thing that I did:
User-added image

The Error I am getting:
Challenge Not yet complete... here's what's wrong:
The 'LEAD Trend by Source' dashboard component is not a pie chart.

With Regards,
   Nisha



 
Hi All,

I need workflows in Professional Edition but i know there is no workflows in professional edition.
For testing purpose, we have created a trail PE edition in which i have seen a workflow feature. i dont know exactly how it appears.

User-added image       User-added image
Please let me know, is there any way to configure workflows in PE edition. 

I appreciate your response.

Thank you.
Rakesh.S
Hi
I want to create new leads and update existing leads from my PHP website. I can do both these tasks using PHP toolkit in my developer account.
But when I am trying to submit the form in my client's production account, I got API disabled error. My client is using Group edition.

My question is that I can create new leads using Web 2 lead form but is there a way to update an existing lead?

Please help!!
Thanks
Dear community,
I'm a new hire and started at salesforce last week. I've (before) already did some trails and earned some badges with a different account. Is it possible to transfer the existing badges of my old account to my salesforce account?
Thanks for your help.

Felix
Hi ,
I am new to salesforce can any one explain  what is Rollup summary field .


Thanks in advance
Hi 
Can any one tell me what is the use of schema builder
Hello,
I was trying to export cases with chinese characters in the description field via a soql api call. I encoded utf-8. (sys.setdefaultencoding('utf-8') However, the chinese characters are not showing up properly in the output (strange characters..such as ???). I wonder what the best way is to get case info with Chinese/Japanese/Korean characters.

Thanks,
Helena
Hi i am trying to upload some records in the case object so that i can run a report and create dashboard in trialhead: Visualizing Your Data

When i import data using Data Import wizard, i only get few object to choose from. is there any way i can upload some sample records in case and other standard object not listed in the icreenshot below. 

Thanks guys!
User-added image