• DeepakSingh
  • NEWBIE
  • 90 Points
  • Member since 2016
  • Developer


  • Chatter
    Feed
  • 3
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 4
    Questions
  • 23
    Replies
Hello,

I want get the first 0 first characters fromtthe text area
I want to replace the following
=> remove space
=> remove special charaters
In short i want to create only create a 10 letters only from alphabts A to Z, 

thanks you for suggestion
 
system.jsonGenerator jpp =  json.CreateGenerator(true);
         
            jpp.writeStartobject();
        
     
            
             jpp.writestringfield('Name',null);
       
            
          jpp.writeEndobject();
 
 
 
          jsonstring1 = jpp.getAsString();

how go get the value of the name as null in the jsonformat :
i.e  
 
              { "Name" : null }

  can anybody suggest how to get the value .

Hi All,

I'm want to give view all access to the Site user. So site users can view cases from salesforce Site. (Using Apex, SOQL). 

Thanks in advance.

Hi all,
Right now I am sending the SMS from salesforce record page using Twilio API. 
Can anyone help me out how I can get replied SMS in the salesforce itself?
 
Hi everyone,
I am having a problem while using the lightning:inputAddress in the Utility bar. Am not able to type in the fields except street one.
it is working fine on the normal page(home page).
Here am also attaching the demo what issue am facing.
https://share.vidyard.com/watch/kbS1gjhWj6QscVGRPy1Znh?
It will be great if anyone can help me out.
Thanks.
 
I want to prevent users to update the Note(ContentNote) once it is created using the trigger or any other techniques?
var firstnameRegex = "[a-zA-Z]";
       var firstname = component.get("v.First_Name");
       var FirstnameMatch = firstname.match(firstnameRegex);

if(FirstnameMatch == false){
            alert("Please fill in the mandatory details");
        }

I tried this but it didn't work
Hi!
I'm trying to figure out how to write a test class for this trigger. Any help/ideas would be appreciated :)

trigger TR_UpdateCaseOwners on Case (before insert) {
    
    //Variable declarations
    List <Id> AccountIds = new List <Id>();
    List <Programs__C> ProgramOwner = new List<Programs__C>();
    List <Contact> contacts = new List<Contact>();
    List <User> OwnerID = new list<User>();
    
     for (Case c :Trigger.new) {
        if (c.type == 'Program Inquiry') {
           
      Set<Contact> con = new set<Contact>([Select Intent__C, CSU_Primary_Degree_Interest__c, CSU_Primary_Certificate_Interest__c FROM CONTACT WHERE ID = : c.ContactId]);
        
      for (Contact B : con){
      
      if (B.Intent__C == 'Degree') {
      
    //Update case owner
    ProgramOwner = ([SELECT ProgramOwner__c from Programs__C WHERE NAME =: B.CSU_Primary_Degree_Interest__c]);         
    
    //ProgramOwner SObject
    for (Programs__C P : ProgramOwner){
    
    //Query user table for program owner GUID    
    OwnerID = ([Select ID FROM User WHERE Name =: P.ProgramOwner__c]);    
    
    for (User U : OwnerID){
    
    //Assign new ID    
    C.OwnerID = U.ID; 
    
    }     
   }      
 }
    
 else  {
    
    if (B.Intent__C == 'Certificate')
    {
    
   //Update case owner
    ProgramOwner = ([SELECT ProgramOwner__c from Programs__C WHERE NAME =: B.CSU_Primary_Degree_Interest__c]);         
    
    //ProgramOwner SObject
    for (Programs__C P : ProgramOwner){
    
    //Query user table for program owner GUID    
    OwnerID = ([Select ID FROM User WHERE Name =: P.ProgramOwner__c]);    
    
    for (User U : OwnerID){
    
    //Assign new ID    
    C.OwnerID = U.ID; 
    
}     
}      
}
}
}
}
}
}

I can get the count of leads which has an account based on ConvertedAccountId/ConvertedContactId but I totally stuck to get the count of an Account which has no corresponding lead.

Can someone please help me with this... thanks ini advance

Hello,

I want get the first 0 first characters fromtthe text area
I want to replace the following
=> remove space
=> remove special charaters
In short i want to create only create a 10 letters only from alphabts A to Z, 

thanks you for suggestion
 
Hello All!
I've a requirement where I need to display an image whenever hover on its image name in lightning component.
I want to show image tooltip. 
For which I tried the following code:

<div style="padding-left:2rem;padding-top:5rem;position:relative">
    This is a kind of different phenomena as 
        <a href="{!$Resource.HoverTooltip}" class="slds-popover__body">Help Text</a>
        is required
        <img url="https://www.theverge.com/2019/4/22/18511375/earth-day-google-doodle-wildlife-diversity"  />
        <div class="slds-popover slds-popover_tooltip slds-nubbin_bottom-left" role="tooltip" id="help" style="position:absolute;top:-4px;left:35px">
        <div class="slds-popover__body" content="{!$Resource.HoverTooltip}">{!$Resource.HoverTooltip}</div>
        </div>
</div>


And this doesn't works properly.
Any kind of help is welcome.
Thanks in advance!
system.jsonGenerator jpp =  json.CreateGenerator(true);
         
            jpp.writeStartobject();
        
     
            
             jpp.writestringfield('Name',null);
       
            
          jpp.writeEndobject();
 
 
 
          jsonstring1 = jpp.getAsString();

how go get the value of the name as null in the jsonformat :
i.e  
 
              { "Name" : null }

  can anybody suggest how to get the value .
By using the indexVar attribute am able to generate the record numbers for the firstpage, when I click on the next page the record numbers remain the same.

  Could anyone help me on this
Hi all,
Right now I am sending the SMS from salesforce record page using Twilio API. 
Can anyone help me out how I can get replied SMS in the salesforce itself?
 
Hi everyone,
I am having a problem while using the lightning:inputAddress in the Utility bar. Am not able to type in the fields except street one.
it is working fine on the normal page(home page).
Here am also attaching the demo what issue am facing.
https://share.vidyard.com/watch/kbS1gjhWj6QscVGRPy1Znh?
It will be great if anyone can help me out.
Thanks.
 
I want to prevent users to update the Note(ContentNote) once it is created using the trigger or any other techniques?
I have been working on this for quite a while without success. I posted this previously but did not get an answer.  I open a secnd component to add some records and when I save, I navigate back to the original component.  THe problem is that the newly created records do not display on the original component.  The odd thing is that the doint function does not fire when I navigate back. Therefore, my assumption is that the first component never closes when I navigate to the second component to create the records.  Please help!!!!! Trying to either close the first component out when I navigate to the second or refresh the first when I go back.  Here is the code on the second componet to save record and navigate back to first component.  thanks!!!!

Fred
 
insertGS : function(component, groupstructures, callback) {
 
		//call apex to save the newly created group structures
  		var action = component.get("c.saveGroupStructure");
        	action.setParams({gs: groupstructures
	        });
    
  $A.enqueueAction(action);
          
  ///This part of code is used to navigate back to the GroupStructuresList Component
        //variable to hold the account id for my naviagation back to original component
        var recordId = component.get("v.existinggroupstructure.Account__c")
        //set urlEvent Variable to navigate back to the original component
         var urlEvent = $A.get("e.force:navigateToURL");
        urlEvent.setParams({
            "url" : "lightning/n/Group_Structures_List?//Aid=" + recordId + "&Tid=123456789"    
        });
        ///navigate back to groupstructures page
        urlEvent.fire();

      
        },

 
  • December 10, 2018
  • Like
  • 1
I need to write a trigger which will help me update the field automatically whenever the ETA field contains a future date.

I have information being pulled from multiple fields and would like to pull the information based on the ETA date that reflects a future date 
So far we have the workflow to pull this information but not automatically


User-added image



and it gets pulled into here 

User-added image


as you can see the container information and date reflects the past and this is the only way to pull this information to report on multiple opportunities with multiple containers 
 
Hello Community,
I am using Customer Community License but this license doesn't allow to create account record only read and edit permission is available but want to create the account using this license is there any workaround for this besides changing the license.

Please share your thoughts need to get a solution on an urgent basis.
Thanks.

Hi All,
I have created domain for lightening component learning.
1) I am looking to delete/deactivate the domain  , where as with 'System Admin' profile also i can see Delete/Deactivate is disable state.Can you pls help in this

2) when try to log into 'https://appexchange.salesforce.com/' it's routing to domain specic and not able to log in and nothing happens in screen , where as in url i can see the below error.
https://appexchange.salesforce.com/partnerCommunityError?ErrorCode=REGISTRATION_HANDLER_ERROR&ErrorDescription=ACCESS_DENIED_srinichd-dev-ed.my.salesforce.com&ProviderId=0SO30000000TN4O&startURL=%2FuserSetup%3Fgt%3Dhttps%253A%252F%252Fappexchange.salesforce.com%252FAppxSiteHome

thank you
User-added image

Our tasks are drawn from a common pool, I am trying to track the close rate for each user. To do that it seems I need to reassign the task to the user editing/closing it. Salesforce support indicates this is possible, but I have no idea where to get start. Anyone have any ideas how to go about this?

*We are in Salesforce classic if it matters. 
Salesforce Developer is the individual who has somewhat a more reasonable experience of working with Salesforce Org. As a Salesforce developer, you are relied upon to manage things like work processes, forms, APIs and so forth on an ordinary day basis.

In spite of the fact that an advanced education degree, for example, a sound technical education isn't important to wind up as a Salesforce Developer, a comprehension of Object-Oriented Programming Principles, Model-View-Controller configuration design, .NET Programming or Java is exceptionally useful. But still, there is no prior requirement of a degree.
 
On the off chance that you need to wind up as a decent developer, you should invest hours understanding and rehearsing the rudiments, learn ideas that you could have learned as a major aspect of a CS course, for example, object-oriented programming and web advancement and all the more vitally, get engaged with genuine tasks; Trailheads are likewise important and are an incredible asset that you would wish had been accessible when you had started making it in this field yet Trailheads alone are insufficient to end up being great at Salesforce, you will likewise need to chip away at some genuine undertakings and projects to broaden your horizon about the Salesforce dynamics.
Here are the certifications that you need to take up if you want to become a successful Salesforce Developer-
 
Platform App Builder
The Salesforce Platform App Builder accreditation is intended for individuals who can exhibit aptitudes and information in planning, assembling, and actualizing custom applications utilizing the explanatory customization abilities of the Salesforce Platform.
 
Platform Developer I
The Salesforce Platform Developer I qualification is intended for the individuals who have the skills as well as the experience to construct custom explanatory and automatic applications on the Salesforce Platform.
 
Platform Developer II
The Salesforce Platform Developer II (PDII) certification is intended for the individuals who have the necessary skills and the experience in cutting-edge automatic capacities of the Salesforce Platform and information displaying to create complex business rationale and interfaces.
 
B2C Commerce Developer
The Salesforce B2C Commerce Developer certification is intended for the individuals who have experience as full-stack engineers for Salesforce Commerce Cloud Digital.
 
Hi everyone,

I am using a Lightning Data table component that i can access from my desktop or my Salesforce mobile App.
It is built like this : 
 
<lightning:datatable aura:id="WSTable" data="{!v.filteredData}" class="slds-m-top_medium"
                columns="{!v.columns}"
                minColumnWidth="100px"
                keyField="identsrc"                             
                onrowselection="{!c.getSelectedRow}"
                sortedBy="{!v.sortedBy}"
                sortedDirection="{!v.sortedDirection}" 
                maxRowSelection = "1"
                onsort = "{!c.updateColumnSorting}"/>	           
    </lightning:card>

In desktop mode, the Data table is well displayed ! However, when i am in my app, it is displayed like this :
User-added image

So it is totally unreadable, and i would like to know how to fix this. I already tried to set a minWidth for the colums but it doesn't work.

Thanks in advance !

 
I have been working on this for quite a while without success. I posted this previously but did not get an answer.  I open a secnd component to add some records and when I save, I navigate back to the original component.  THe problem is that the newly created records do not display on the original component.  The odd thing is that the doint function does not fire when I navigate back. Therefore, my assumption is that the first component never closes when I navigate to the second component to create the records.  Please help!!!!! Trying to either close the first component out when I navigate to the second or refresh the first when I go back.  Here is the code on the second componet to save record and navigate back to first component.  thanks!!!!

Fred
 
insertGS : function(component, groupstructures, callback) {
 
		//call apex to save the newly created group structures
  		var action = component.get("c.saveGroupStructure");
        	action.setParams({gs: groupstructures
	        });
    
  $A.enqueueAction(action);
          
  ///This part of code is used to navigate back to the GroupStructuresList Component
        //variable to hold the account id for my naviagation back to original component
        var recordId = component.get("v.existinggroupstructure.Account__c")
        //set urlEvent Variable to navigate back to the original component
         var urlEvent = $A.get("e.force:navigateToURL");
        urlEvent.setParams({
            "url" : "lightning/n/Group_Structures_List?//Aid=" + recordId + "&Tid=123456789"    
        });
        ///navigate back to groupstructures page
        urlEvent.fire();

      
        },

 
  • December 10, 2018
  • Like
  • 1