• MagulanDuraipandian
  • SMARTIE
  • 1828 Points
  • Member since 2012


  • Chatter
    Feed
  • 58
    Best Answers
  • 0
    Likes Received
  • 2
    Likes Given
  • 10
    Questions
  • 707
    Replies
A. To guarantee at least 50% of code is covered by unit tests before it is deployed
B. To ensure every usecase of the application is covered by a test
C. To confirm every trigger is executed at leat once.
D. To confirm all classes and triggers compile successfully
A.String qryName = ‘%’ + String.escapeSingleQuotes(name) + ‘%’;
String qryString = ‘SELECT ID FROM contact WHERE name LIKE \ ' % ' + qryName + ' % \ ' ';
List<contact> queryResult =Database.query(queryString);


B. String qryName = ‘%’ + name + ‘%’;
String qryString = ‘SELECT ID FROM contact WHERE name LIKE :qryName' ;
List<contact> queryResult =Database.query(queryString);

C. String qryString = ‘SELECT ID FROM contact WHERE name LIKE \ ‘%’ + name + ‘%\ ’ ’;
List<contact> queryResult =Database.query(queryString);

D. String qryName = ‘%’ + String.enforceSecurityChecks(name) + ‘%’;
String qryString = ‘SELECT ID FROM contact WHERE name LIKE :qryName;
A. Call “Opportunity.StageName.Label”.
B. Call “Opportunity. StageName.getDescribe().getLabel()”.
C. Call “opp.StageName.getDescribe().getLabel()”.
D. Call “opp.StageName.Label”.
I have built a new App for end users to use to access HD services. I am building a new component to house large buttons that will launch flows that in turn will create new cases.

So far, so good.

When I click the buttons, the flow opens in a new tab. The user completes the steps and a case is created.

Again, all good.

I do not like the user experience with the new tab though. When they click the Finish button at the end, it just takes them back to the opening screen element and does not close the tab.

What I am looking for is an experience that is more like what i get when I launch a flow from say a contact record as a quick action. That opens the flow in a some sort of sub process like this:
User-added image

User-added image

User-added image
And the sub process then closes when the user clicks the Finish button.

Is there a way to accomplish this same effect from within this new component I have built? some HTML or other that will open the flow in this same sort of process? The best I have managed so far is the separate tab and that is just not doing it for me.

Any suggestions?
Best regards,
Steve
Hi guys,

I'm having issues calling an url from salesforce. 
Here is th code.
private final String clientId = 'xxxxxxxxx';
private final String clientSecret = 'xxxxxx';
String reqbody = 'grant_type=password&client_id='+clientId+'&client_secret='+clientSecret;
Http http = new Http();
HttpRequest request = new HttpRequest();
request.setBody(reqbody);
request.setMethod('GET');
request.setEndpoint('http://xxxx/api/xx-xxx-xxxxxxx-api/v1.0/getEmplId?firstName=xxx&lastName=xxx&middleName=xx');
HttpResponse response = http.send(request);
if (response.getStatusCode() != 201) {
  System.debug('The status code returned was not expected: ' +
       response.getStatusCode() + ' ' + response.getStatus());
} else {
   System.debug(response.getBody());
}
I'm getting the following message - response|"System.HttpResponse[Status=Service Unavailable, StatusCode=503]".
I've added the site url in salesforce. 

Please let me what I'm doing wrong?!

Appreciate your help!

Thanks,
NSK
 
Is the wire service in LWC Synchronous or Asynchronous?  Is there a way to capture data from a wire inquiry and use it in a second wire service. Can you call a wire service or is it only  called when the component is loaded? Can LWC be used in a 3rd party App with Angular or React?
Howdy all,
My company is looking for a good way to keep track of which companies are subscribed to different products, especially with little data entry. Would any of you have any suggestions, how your company handles this, anything pre-built in to salesforce we should be using, that sort of thing. It would be very nice to go to a companies record and see which services and products they are currently using. Any and all input would be greatly appreciated!
Hi Team,
Any one is having the lightning documentation is done by their own.
If have please provide.. Thanks in advance\

Thanks 
Venkat.
I just got a new PC and have loaded the Data Loader on it.  I have successfully logged in and am trying to export a file but get the following error:
!LoadWisard.errorFileCreate!extract.csv
I have created a folder for the files to export to but cannot get rid of this error?
Orgs are limited to the number of Dynamic Dashboards that can be used.

However we were curious if we could create some custom Lightning Components that could somehow copy the functionality of a Dynamic Dashboard?  This would allow us to circumvent that limit somehow.  

I know it's a long shot and would require some sort of developer know-how.
Hello Folks,

How can I get the log files of process builder. To be specific I need to log file of process builder & what it has created or inserted.
Any help is appreciated.

Thank you!!
I want to see debug statements for a specific Apex Class only - how do I do this?  I have went out to debug logs and set debug up on that specific class, however, the logs listed are only by user.  Am i overlooking something - or is there a different place to see the logs set up for the class?

I have also attemped to set up a debug level that has "NONE" for all except Apex Code (which I have set to "DEBUG") - however I get so many logs for the user when I have this set and have no way to quickly find the specific one that I would be looking for with the debug statements.

Any help / advice on how to quickly see the debug statements for a given user or apex class would be much appreciated.  I must be doing something incorrectly to get so many logs.

Dan
Hi Team,
Just I created two components. My requirement is need to navigate one component to another component when i click on my image.
But i am getting some error like...This page has an error. You might just need to refresh it.
Action failed: c:Component1$controller$click [Cannot read property 'setParams' of undefined].
            
                Please help me on this... Thanks in advance...

Component1:

<ul class="slds-list--horizontal slds-has-dividers_around-space" onclick="{!c.click}">

  <lightning:layout >
            <lightning:layoutItem size="3" padding="around-small">
                 <div class="img " >
                    <img  style="height: 100px;" src="/resource/Images/Assets/1.png"  />   
                  <h1>TEXT1</h1>
                </div> 
            </lightning:layoutItem>
            <lightning:layoutItem size="3" padding="around-small">
                <div class="img1" >
                    <img style="height: 100px;" src="/resource/Images/Assets/2.png"  />  
                   <h1>TEXT2</h1>
                </div> 
            </lightning:layoutItem>
            <lightning:layoutItem size="3" padding="around-small">
               <div class="img2" ><img style="height: 100px;" src="/resource/Images/Assets/3.png" align="middle" />      
                <h1>TEXT3</h1>
                </div>
            </lightning:layoutItem>
            <lightning:layoutItem size="3" padding="around-small">
                <div class="img3"  style="text-align: left">
                    <img style="height: 100px;" src="/resource/Images/Assets/4.png"/>  
                    <h1>TEXT4</h1>
                </div>
            </lightning:layoutItem>
        </lightning:layout>
              


</ul>   

Controller.Js


click:function(component,event,helper){        

       
       var evt = $A.get("e.force:navigateToComponent");
        evt.setParams({
            componentDef : "c:Component2",
        
            });
        
      
        evt.fire();
    }
    
    Thanks
    Venkat
Hi Team, 

I am having datatable with pagenation concept. As of now i am displaing the records.My requirement is
need to populate the checkbox beside the records what i am getting from the object. And need to sort  records based onReference image colum headers.  At a time we need to check only one check box. After checking that check box i need to click on above any one of the four images iam having 4 images above my datatable and  that should navigate to another component ex: abc.cmp with that checked record Id.Please kindly help me on this.

                                                                                         Thanks in advance...
                            


Controller:


public class ContactAuraController {
    @AuraEnabled
    public static ContactDataTableWrapper getContactData(Decimal pageNumber, Decimal pageSize) {
         
        Integer pSize = (Integer)pageSize;
        Integer pNumber = (Integer)pageNumber;
         
        //Offset for SOQL
        Integer offset = (pNumber - 1) * pSize;
         
        //Total Records
        Integer totalRecords = [SELECT COUNT() FROM Contact];
        Integer recordEnd = pSize * pNumber;
 
        //Instance of Contact DataTable Wrapper Class
        ContactDataTableWrapper objDT =  new ContactDataTableWrapper();  
        objDT.pageSize = pSize;
        objDT.pageNumber = pNumber;
        objDT.recordStart = offset + 1;
        objDT.recordEnd = totalRecords >= recordEnd ? recordEnd : totalRecords;
        objDT.totalRecords = totalRecords;
        objDT.contactList = [SELECT Id, Name, Phone, Email FROM Contact ORDER BY Name LIMIT :pSize OFFSET :offset];
        return objDT;
    }
     
    //Wrapper Class For Contact DataTable  
    public class ContactDataTableWrapper {
        @AuraEnabled
        public Integer pageSize {get;set;}
        @AuraEnabled
        public Integer pageNumber {get;set;}
        @AuraEnabled
        public Integer totalRecords {get;set;}
        @AuraEnabled
        public Integer recordStart {get;set;}
        @AuraEnabled
        public Integer recordEnd {get;set;}
        @AuraEnabled
        public List<Contact> contactList {get;set;}
    }
}
=============================================

Component



<!--Pagination.cmp-->
<aura:component controller="ContactAuraController">
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
     
    <aura:attribute name="ContactList" type="Contact[]"/>
    <aura:attribute name="PageNumber" type="integer" default="1"/>
    <aura:attribute name="TotalPages" type="integer" default="0"/>
    <aura:attribute name="TotalRecords" type="integer" default="0"/>
    <aura:attribute name="RecordStart" type="integer" default="0"/>
    <aura:attribute name="RecordEnd" type="integer" default="0"/>
     
    <div class="slds-m-around_xx-large">
        <h1 class="slds-text-heading--medium">Contacts</h1>
        <br/>
        <div class="slds-float_right">
            <ui:inputSelect aura:id="pageSize" label="Display Records Per Page: " change="{!c.onSelectChange}">
                <ui:inputSelectOption text="10" label="10" value="true"/>
                <ui:inputSelectOption text="15" label="15"/>
                <ui:inputSelectOption text="20" label="20"/>
            </ui:inputSelect>
            <br/>
        </div>
         
        <table class="slds-table slds-table_bordered slds-table_cell-buffer">
            <thead>
                <tr class="slds-text-title_caps">
                    <th scope="col">
                        <strong><div class="slds-truncate" title="Name">Name</div></strong>
                    </th>
                    <th scope="col">
                        <strong><div class="slds-truncate" title="Phone">Phone</div></strong>
                    </th>
                    <th scope="col">
                        <strong><div class="slds-truncate" title="Email">Email</div></strong>
                    </th>
                </tr>
            </thead>
            <tbody>
                <aura:iteration items="{!v.ContactList}" var="con"> 
                    <tr>
                        <th scope="row" data-label="Name">
                            <div class="slds-truncate" title="{!con.Name}">{!con.Name}</div>
                        </th>
                        <th scope="row" data-label="Phone">
                            <div class="slds-truncate" title="{!con.Phone}">{!con.Phone}</div>
                        </th>
                        <th scope="row" data-label="Email">
                            <div class="slds-truncate" title="{!con.Email}">{!con.Email}</div>
                        </th>
                    </tr>
                </aura:iteration> 
            </tbody>
        </table>
         
        <div class="slds-clearfix">
            <div class="slds-page-header" role="banner">
                <div class="slds-float_right">            
                    <lightning:button disabled="{!v.PageNumber == 1}" variant="brand" aura:id="prevPage" label="Prev" onclick="{!c.handlePrev}" />            
                    <lightning:button disabled="{!v.PageNumber == v.TotalPages}" aura:id="nextPage" variant="brand" label="Next" onclick="{!c.handleNext}"/>
                </div>
                <p class="slds-page-header__title">{!v.RecordStart}-{!v.RecordEnd} of {!v.TotalRecords} | Page {!v.PageNumber} of {!v.TotalPages}</p>
            </div>
        </div>
    </div>
</aura:component>
====================================================
Controller.js


({
    doInit: function(component, event, helper) {
        var pageNumber = component.get("v.PageNumber");  
        var pageSize = component.find("pageSize").get("v.value"); 
        helper.getContactList(component, pageNumber, pageSize);
    },
     
    handleNext: function(component, event, helper) {
        var pageNumber = component.get("v.PageNumber");  
        var pageSize = component.find("pageSize").get("v.value");
        pageNumber++;
        helper.getContactList(component, pageNumber, pageSize);
    },
     
    handlePrev: function(component, event, helper) {
        var pageNumber = component.get("v.PageNumber");  
        var pageSize = component.find("pageSize").get("v.value");
        pageNumber--;
        helper.getContactList(component, pageNumber, pageSize);
    },
     
    onSelectChange: function(component, event, helper) {
        var page = 1
        var pageSize = component.find("pageSize").get("v.value");
        helper.getContactList(component, page, pageSize);
    },
})

===============================================================
helper.js

({
    getContactList: function(component, pageNumber, pageSize) {
        var action = component.get("c.getContactData");
        action.setParams({
            "pageNumber": pageNumber,
            "pageSize": pageSize
        });
        action.setCallback(this, function(result) {
            var state = result.getState();
            if (component.isValid() && state === "SUCCESS"){
                var resultData = result.getReturnValue();
                component.set("v.ContactList", resultData.contactList);
                component.set("v.PageNumber", resultData.pageNumber);
                component.set("v.TotalRecords", resultData.totalRecords);
                component.set("v.RecordStart", resultData.recordStart);
                component.set("v.RecordEnd", resultData.recordEnd);
                component.set("v.TotalPages", Math.ceil(resultData.totalRecords / pageSize));
            }
        });
        $A.enqueueAction(action);
    }
})
===================================================================================


Thanks
Venat
 
We had Salesforce create a Health Assessment report for us.  Found that we had 6 Apex Classes / 2 Apex Triggers / 5 Visualforce Pages that were using old versions of API's.  Within the "New Code using old API" section we had 37 Apex Classes / 2 Apex Triggers / 4 Visualforce Pages using old versions of API's.

We are new to this process so any guidance / answers / suggestions would be much appreciated for the following questions:
What are others doing to keep API's as current as possible (would it be a good practice to set time aside once a year to make sure all Classes / Triggers / Pages are using the most current version of API's)?  We are requiring when code is updated to upgrade to latest API, but sometimes code doesn't change often.
Can someone give a guess or rough estimate the amount of time it would take 2 people to go through process of upgrading to the latest versions of API's?  (ie so many hours per change or estimate of 40/80/120 ... hours)
What is the recommended process for Apex Classes to upgrade to the latest API version.
What is the recommended process for Apex Triggers to upgrade to the latest API version.
What is the recommended process for Visualforce Pages to upgrade to the latest API version.
Thanks for any guidance you can provide.  Trying to keep our environment as stable / healthy as possible.

Dan
We need to create a process that loops through an order once it has been submitted and determine if it has duplicate items.  If it does, we would delete the duplicate from the order automatically.  We are still learning from the tools available. When reading through the order items, we will match on the SKU / Category - if there is more than 1 occurrence within that order, we wish to delete the last occurence.

Haven't figured out how to do this yet in Work Flow / Process Builder.  Wondered if someone with more experience on the various options can give the best practice solution?

Thanks 

Dan
If I assign a profile to a user, with field level security specified for a concrete field, and I assign a permission set to the same user, with a different permission level specified for that field, which one takes precedence? the most restrictive? Thanks
Hello,

If i make Changes to Profiles in Dev sandox how can i deliver it to Production. as i see nothing avaialble in change sets for profiles.

Thank you
<apex:variable var="count" value="{!1}"/>
   
         <apex:commandButton action="{!add}"  id="button" styleClass="button"  image="{!URLFOR($Resource.add)}" reRender="idForm">
                <apex:param name="paramValue2" value="{!count}" assignTo="{!rows}"/>
            </apex:commandButton>
            <apex:variable var="count" value="{!count + 1}"/>


<apex:selectList size="1" value="{!operator}" id="operator" styleClass="basic">
                <apex:selectOption itemValue="Select Operator"/> 
                <apex:selectOption itemLabel="Equals" itemValue="="/>
                <apex:selectOption itemLabel="Greater or equals to" itemValue=">="/>
                <apex:selectOption itemLabel="Lesser or equals to" itemValue="<="/>
            </apex:selectList>
Hello,

I want a use case where user clicks on a button and the selectlist is added.

One cleick one select list is added and it will happen consecutiveely.

I also want to have appropriate controller.

Any tutorial on net will be helpful

Thanks
  • April 27, 2015
  • Like
  • 0
Is it possible to show the marker in Green color instead of red color in lightning:map tag?
How to set the Popup width while using LookupHoverDetail.getHover(). If anyone has sample code, it will be very useful.
I am looking for good materials and sample questions for Service cloud exam.
String accessToken = Auth.AuthToken.getAccessToken(authProviderId, 'Open ID connect');
        system.debug('Access Token is ' + accessToken);

here authProviderId has my Auth. Provider id.

It is returning null value.

I would like to write a trigger, when the user logins in and logs out.

 

-

Magulan

http://www.infallibletechie.com

 how to get Application name using Apex?

 

Regards,

Magulan D

How to view Answers in Site without logging in?

 

Regards,

Magulan D

How many records can be exported using export details in reports?

 

--

Magulan D

How many records can be exported using Export Details button in reports?

I want to post from VF page to Facebook.

 

Can anyone help?

 

Regards,

Magulan D

We use a contact role as designation for statement delivery.  I need to find all accounts that don't have a contact with a role set to statement delivery.  I can't think of how I would do this with a report. Is there a way I could do this with SOQL? 

Has anyone encountered this issue?

I have tried clearing my cache, using Chrome, IE, Firefox, I don't know what else to try.

Salesforce support tells me to go to trailhead and click on a link (Login issue) but even when I navigate to that page, it re-loads and gives me the same error.

 

This page isn’t workingtrailhead.salesforce.com is currently unable to handle this request.
HTTP ERROR 500

 

Every trailhead page I navigate to gives me this error.

What is the SOQL to find all the subscribed/scheduled dashboards? 
Hi everyone,

I'm getting this error on line 58:
ystem.NullPointerException: Attempt to de-reference a null object

Below is the code. I'm planning to put this code on Process Builder. This code will transfer the opportunity to other representatives when the opportunity has been touched for 4 days. Before transferring away, it will create a record on Round Robin Record object. Record Distribution is the list of teams. Record Distribution Mapping is the list of Representatives with a lookup field to Record Distribution object.
 
public class RoundRobinOpp {
    public class RRRequest {
        @InvocableVariable
        public String opportunityName;
        
        @InvocableVariable
        public String distributionName;
        
        @InvocableVariable
        public Id opportunityId;
        
        @InvocableVariable
        public Id ownerId;   
    }
    
    public static List<Record_Distribution_Mapping__c> getRepsByDistribution(String distributionName) {
        return [select User__r.id, CreatedDate, Record_Distribution__c, Record_Distribution__r.Number_of_RR__c 
                from Record_Distribution_Mapping__c 
                where Record_Distribution__r.Name = :distributionName
                order by CreatedDate asc];
    }
    
    @InvocableMethod
    public static void RoundRobinOpp(List<RRRequest> requests) {
        Set<String> distributionnames = new Set<String>();
        Set<Id> username = new Set<Id>();
        
        for (RRRequest request : requests) {
			distributionnames.add(request.distributionName);
            username.add(request.ownerId);
        }
        
        Map<String, List<Record_Distribution_Mapping__c>> distributionToMappings = new Map<String, List<Record_Distribution_Mapping__c>>();
        Map<String, Record_Distribution__c> relevantDistributions = new Map<String, Record_Distribution__c>();
        Map<String, Record_Distribution_Mapping__c> relevantUser = new Map<String, Record_Distribution_Mapping__c>();
        
        for (Record_Distribution_Mapping__c users : [SELECT User__c, Opportunity_Name_1__c, Opportunity_Name_2__c, Opportunity_Name_3__c, Number_of_Opp__c
                                                     FROM Record_Distribution_Mapping__c WHERE User__c = :username]) {
                                                         relevantUser.put(users.User__c,users);
                                                     }
        
        for (Record_Distribution__c distribution : [select Name, Number_of_RR__c from Record_Distribution__c where name in :distributionnames]) {
			relevantDistributions.put(distribution.name, distribution);
		}
        
        for (String distributionName : distributionnames) {
			distributionToMappings.put(distributionName, getRepsByDistribution(distributionName));
		}      
        
        List<Round_Robin_Record__c> lstRRrecord = new List<Round_Robin_Record__c>();
        List<Opportunity> lstOppsToUpdate = new List<Opportunity>();
        for (RRRequest request : requests) {
            Round_Robin_Record__c newRecord = new Round_Robin_Record__c();
            newRecord.Opportunity_Name__c = request.opportunityName;
            newRecord.User__c = request.ownerId;
            
            Record_Distribution_Mapping__c updateRRnumber = relevantUser.get(request.ownerId);
            updateRRnumber.Number_of_Opp__c++;
            //Might add the opportunity names for reporting
            
            Opportunity reassignedOpp = new Opportunity(id = request.opportunityId);
            Record_Distribution__c TeamDistribution =  relevantDistributions.get(request.distributionName);
            reassignedOpp.OwnerId = distributionToMappings.get(request.distributionName)[Math.mod((Integer) TeamDistribution.Number_of_RR__c,
                                                                                                 distributionToMappings.get(request.distributionName).size())].User__r.id;
            lstRRrecord.add(newRecord);
            TeamDistribution.Number_of_RR__c++;
            lstOppsToUpdate.add(reassignedOpp);
        }
        
        insert lstRRrecord;
        update lstOppsToUpdate;
        update relevantDistributions.values();
        update relevantUser.values();
    }
}

I can't find the reason why the Number_of_Opp__c is empty, I have put 0 in that field for each record already.

Please help! Thanks in advance.
We're getting ready to turn on the ability of our users to send salesforce email (email from an account, etc) via Outlook 365. But what we *really* want to do is to FORCE them to do it this way. We want to ensure Outlook 365 has a record of the outbound emails. 

However, I see no way to set this preference for everyone other than to log in as each user and choose the setting for them. With over 1000 users, that's a bit ridiculous.

Does anyone know a better way to enforce and administer this?
--Bryan
A. To guarantee at least 50% of code is covered by unit tests before it is deployed
B. To ensure every usecase of the application is covered by a test
C. To confirm every trigger is executed at leat once.
D. To confirm all classes and triggers compile successfully
A.String qryName = ‘%’ + String.escapeSingleQuotes(name) + ‘%’;
String qryString = ‘SELECT ID FROM contact WHERE name LIKE \ ' % ' + qryName + ' % \ ' ';
List<contact> queryResult =Database.query(queryString);


B. String qryName = ‘%’ + name + ‘%’;
String qryString = ‘SELECT ID FROM contact WHERE name LIKE :qryName' ;
List<contact> queryResult =Database.query(queryString);

C. String qryString = ‘SELECT ID FROM contact WHERE name LIKE \ ‘%’ + name + ‘%\ ’ ’;
List<contact> queryResult =Database.query(queryString);

D. String qryName = ‘%’ + String.enforceSecurityChecks(name) + ‘%’;
String qryString = ‘SELECT ID FROM contact WHERE name LIKE :qryName;
How to mass update selected records in list view using lightning quick action invoking lightning component.
Any help would be much appreciated.
 
A. Call “Opportunity.StageName.Label”.
B. Call “Opportunity. StageName.getDescribe().getLabel()”.
C. Call “opp.StageName.getDescribe().getLabel()”.
D. Call “opp.StageName.Label”.
A. Use a custom controller.
B. Use a custom controller with extensions.
C. Use a standard controller with extensions.
D. Do not specify a controller.
E. Use a standard controller.
While the process for authenticated internal users (that is, full CRM users) via OAuth is well-documented, I'm wondering if OAuth sign-in is possible for other licenses types as well (for example, Authenticated Website, Community, etc.)

The apparent lack of documentation would appear to suggest that this is not possible, but I might just be missing something and wonder if anyone here has any insight.
I grabbed the trigger below from a website but it keeps comparing null values on the Lead object to null values on the Account object. 

Basically, I just want to make sure that when Addy_Account_Id__c is entered on the Lead object, it checks if there are any Accounts with a matching Addy_Account_Id__c. If they do match, the SFDC Account Id should be stamped on the Lead record in the "Convert_To_Existing_Account__c " field. 

However, this trigger is matching based on null values. I would like to exclude those. Please Help!!!
 
trigger pullSFDCaccountonlead on lead (before update) {

    Set<String> codes = new Set<String>();
    for (lead o : trigger.new) codes.add(o.Addy_Account_Id__c );

    Map<String, Account> siteAccounts = new Map<String, Account>();
    for (Account a : [
        SELECT Addy_Account_Id__c FROM Account
        WHERE Addy_Account_Id__c IN :codes
    ]) siteAccounts.put(a.Addy_Account_Id__c , a);

       for (lead o : Trigger.new)
    {
        Account siteAccount = siteAccounts.get(o.Addy_Account_Id__c );
       Id parentId = (siteAccount != null) ? null : siteAccount.Id;
        o.Convert_To_Existing_Account__c = parentId;
    }
}

 
I'm using as template code that works for Investigations.
$wi is a hash populated for this context.
Where should I look for the cause of the error?
Is it type => 'ADM_Work__c'? What are the other options?
 
I started today with the Lightning Roll out Superbadge but ran into problems on the first challenge already. Two issues need resolving
  • I typed in Optimizer in Setup, but nothing is displayed. On the community site I found a resolution to copy /ui/setup/optimizer/OptimizerSetupPage?setupid=SalesforceOptimizer this into my address. I then get a insufficient privilege error. I am signed in as an administrator.
  • The challenge fails as it cannot find user John Wiseman. I have confirmed that he exist with the correct profile and license. I think it might to do with the alias or nickname not being correct.
Any help would be appreciated.
Thanks
 i have a custom picklist field documentType__c(documents name are - BirthCertificate, passport, CAE, NDI) , it is controlling by another picklist field named is ProgramType__c(program name are - US, India,UK , UAE). 
How to get documentType field value based on the particular ProgramType .

ThanksaUser-added image
Thanks in Advanced.
  • November 14, 2019
  • Like
  • 0
Pop window page should take all related data from record page and open a a window referencing LWC and auto populate with relevant data. Those fields should also be editable. 

Thanks,
Sharif
Hi Experts,
In Data export , i selected Case object and started Export ..

I received more than 20 zip files ..
After download zipfiles,When i try to unzip folders getting below error :
"""Cant complete the Comprassed (Zipped) folder Extraction wizard even download 
Pls let me know is anythng missing here ? or how can i able to open files and see the case records...
Any ideas..
Thanks
Ram
Give an example of why you would use a trigger over a workflow or process builder to accomplish an update to a field?

Is there any pros/cons apart from below, Please share your thoughts.
  • If we need to perform an update on fields by validating the before/after validations of any other fields save to database then Triggers can be used instead of Workflow/Process Builder
  • Workflow/Process Builder cannot handle delete and undelete DML. Whereas Apex triggers can handle all DML operations.
  • Errors reported in Workflow/Process Builder is more generic which makes it difficult to find the origin of the error. With Apex triggers, exception handling can be made more specific.
  • It is all or none in case of Workflow/Process Builder failure. But with Apex triggers partial success is possible

I've enabled all users to automatically follow the items they create in chatter. However, it looks like files that are created when attaching records through Lightnig for Outlook also get followed. Because of this there are some users that are quickly approaching the 500 record limit. 

How can I stop users from following new files, or use the app Chatter Unfollow Rules to unsubscribe them immediately? I can't figure out which object I can reference using the app.
 

Thanks! 

What is the best way integration between two clouds, Here the requirement is integrate from salesforce cloud to amazon cloud..
  • April 22, 2014
  • Like
  • 1