• MagulanDuraipandian
  • 1873 Points
  • Member since 2012

  • Chatter
  • 59
    Best Answers
  • 0
    Likes Received
  • 2
    Likes Given
  • 10
  • 718
when i am trying to deploy a am having 
Error parsing file: LWC Metadata Xml Parser: ParseError at [row,col]:[2,26]
Message: Element type "LightningComponentBundle" must be followed by either attribute specifications, ">" or "/>".LightningComponentBundle error inn my XML file.

im attaching my xml
User-added image

when if removing <targets> tag ...then the component is getting deployed.

did anybody face this issue?
pls help..
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,
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();
HttpResponse response = http.send(request);
if (response.getStatusCode() != 201) {
  System.debug('The status code returned was not expected: ' +
       response.getStatusCode() + ' ' + response.getStatus());
} else {
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!

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\

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

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


<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"  />   
            <lightning:layoutItem size="3" padding="around-small">
                <div class="img1" >
                    <img style="height: 100px;" src="/resource/Images/Assets/2.png"  />  
            <lightning:layoutItem size="3" padding="around-small">
               <div class="img2" ><img style="height: 100px;" src="/resource/Images/Assets/3.png" align="middle" />      
            <lightning:layoutItem size="3" padding="around-small">
                <div class="img3"  style="text-align: left">
                    <img style="height: 100px;" src="/resource/Images/Assets/4.png"/>  




       var evt = $A.get("e.force:navigateToComponent");
            componentDef : "c:Component2",
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...


public class ContactAuraController {
    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 {
        public Integer pageSize {get;set;}
        public Integer pageNumber {get;set;}
        public Integer totalRecords {get;set;}
        public Integer recordStart {get;set;}
        public Integer recordEnd {get;set;}
        public List<Contact> contactList {get;set;}


<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>
        <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"/>
        <table class="slds-table slds-table_bordered slds-table_cell-buffer">
                <tr class="slds-text-title_caps">
                    <th scope="col">
                        <strong><div class="slds-truncate" title="Name">Name</div></strong>
                    <th scope="col">
                        <strong><div class="slds-truncate" title="Phone">Phone</div></strong>
                    <th scope="col">
                        <strong><div class="slds-truncate" title="Email">Email</div></strong>
                <aura:iteration items="{!v.ContactList}" var="con"> 
                        <th scope="row" data-label="Name">
                            <div class="slds-truncate" title="{!con.Name}">{!con.Name}</div>
                        <th scope="row" data-label="Phone">
                            <div class="slds-truncate" title="{!con.Phone}">{!con.Phone}</div>
                        <th scope="row" data-label="Email">
                            <div class="slds-truncate" title="{!con.Email}">{!con.Email}</div>
        <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}"/>
                <p class="slds-page-header__title">{!v.RecordStart}-{!v.RecordEnd} of {!v.TotalRecords} | Page {!v.PageNumber} of {!v.TotalPages}</p>

    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");
        helper.getContactList(component, pageNumber, pageSize);
    handlePrev: function(component, event, helper) {
        var pageNumber = component.get("v.PageNumber");  
        var pageSize = component.find("pageSize").get("v.value");
        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);


    getContactList: function(component, pageNumber, pageSize) {
        var action = component.get("c.getContactData");
            "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));

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.

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?


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

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





 how to get Application name using Apex?



Magulan D

How to view Answers in Site without logging in?



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?



Magulan D


I have created an Aura component but I am unable to select the Picklist value for the field "Contact Preferred Language". I am able to highlight the value but I cannot select any value. 

Could someone help?

here is my component (.cmp)

<aura:component implements="forceCommunity:availableForAllPageTypes" controller="auraRegisterFormController" access="global" >
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
    <aura:handler name="SendHumanResult" action="{!c.verifiedResult}" event="CLAYH:HumanCheck" />
    <aura:attribute name="firstname" type="String" default="" />
    <aura:attribute name="lastname" type="String" default="" />
    <aura:attribute name="company" type="String" default="" />
    <aura:attribute name="email" type="String" default="" />
    <aura:attribute name="phone" type="String" default="" />
    <aura:attribute name="ContactPreferredLanguage" type="String" default="" />
    <aura:attribute name="verified" type="Boolean" default="false" />
    <div class="registerFormComp">
        <div class="registerFormTitle">NEW USER REGISTRATION</div>
        <h2>Please fill the following form :</h2>
        <lightning:input aura:id="field" name="firstname" label="Firstname" value="{!v.firstname}" placeholder="" required="true" />
        <lightning:input aura:id="field" name="lastname" label="Lastname" value="{!v.lastname}" placeholder="" required="true" />
        <lightning:input aura:id="field" name="email" label="Business individual email only" value="{!v.email}" placeholder="please don’t use private or generic email" required="true" />
        <lightning:input aura:id="field" name="company" label="Company" value="{!v.company}" placeholder="" required="true" />
        <lightning:input aura:id="field" name="phone" label="Phone" value="{!v.phone}" placeholder="" required="true" />
        <lightning:select name="ContactPreferredLanguage" label="Contact Preferred Language" value="{!v.ContactPreferredLanguage__c}" required="true">
            <option value="">--None--</option>
            <option value="English">English</option>
            <option value="French">French</option>
            <option value="Spanish">Spanish</option>
            <option value="Italian">Italian</option>
            <option value="Polish">Polish</option>
            <option value="German">German</option>

            <option value="Portuguese">Portuguese</option>
            <option value="Chinese">Chinese</option>
            <option value="Turkish">Turkish</option>

        <div class="areyouhuman"><CLAYH:AreYouHuman /></div>
        <lightning:button aura:id="submit" variant="brand" label="Request Access" onclick="{!c.submitForm}" disabled="{!v.verified==false}" />

and here is my controller.js

    doInit : function(component, event, helper) {
    verifiedResult : function(component, event, helper) {

        var ayhResult = event.getParam("result");
        component.set("v.verified", ayhResult);
    submitForm : function(component, event, helper) {
        var allValid = component.find('field').reduce(function (validSoFar, inputCmp) {
            return validSoFar && inputCmp.get('v.validity').valid;
        }, true);
        var toastEvent = $A.get("e.force:showToast");
        if (allValid) {
                "title":"Thank You",
                "type": "success",
                "message": "Registration completed, we'll get back to you as soon as possible!",
                "duration" : 10000
            var action = component.get("c.addNewContactRequest");
                firstname: component.get("v.firstname"),
                lastname: component.get("v.lastname"),
                email: component.get("v.email"),
                company: component.get("v.company"),
                phone: component.get("v.phone"),
                ContactPreferredLanguage: componet.get("!v.ContactPreferredLanguage__c")
            action.setCallback(this, function(action) {
        } else {
                "type": "error",
                "message": "Please fill in all required fields !",
                "duration" : 4000

thank you?

User-added image

Hi all, I need help with this task. 

I need to create a lightning component that will display a popup with some text lines, 2 checkboxes (text message and email) and a field named mobile number and a FINISH button.
This popup should be displayed only when a community user is logged in. I have created 3 custom fields on contact namely - text message(checkbox), email(checkbox) and mobile number(number) that will store the information of the user.
Whenever a user clicks on any of the checkboxes mentioned above, the popup should never appear. Also, when a user clicks the text message checkbox on the popup then the mobile number field should be mandatory. It is more like a consent popup that will allow uses to receive notifications via email or text. 

Your help will be much appreciated. 
Thanks in advance. 

Dear Team ,

Thank you for your continous support !!!

Please let me know how to integrate Salesforce to facebook . In social account m not getting facebook option plz have a look on attached file . User-added imageThanks & Regards
Sachin Bhalerao
I am trying to update a custom date field to a null value using ForceClient in .NET. Currently, it doesn't seem like it's possible to do this, even on optional Date fields. I've double-checked that the field is not required.

The way I understand it is, a Date field can accept a valid date string or null. But passing null causes the field not to update, it doesn't actually null out the field.

Code is something like this:
using (ForceClient sfClient = GetSfClient())
    SuccessResponse resp = null;
    	accountData.CustomDateField = null;
        resp = await sfClient.UpdateAsync("Account", accountId, accountData);
"accountData" is an object containing all the fields we're updating on the account. Like I mentioned above, passing null for any of those fields just causes the field to not update. For a Date field, we get an error on anything besides a valid date format. So I've tried passing "null", empty string, white space, etc.

How can I null out a Date field, or any field for that matter?

Thank you for your help,
Charlie Bratches

Using JS i am exporting CSV file, How to override the keys with custom column names?

convertArrayOfObjectsToCSV : function(component,objectRecords){
        // declare variables
       var csvStringResult, counter, keys, columnDivider, lineDivider;
        // check if "objectRecords" parameter is null, then return from function
        if (objectRecords == null || !objectRecords.length) {
            return null;
        // store ,[comma] in columnDivider variabel for sparate CSV values and 
        // for start next line use '\n' [new line] in lineDivider varaible  
        columnDivider = ',';
        lineDivider =  '\n';
        // in the keys valirable store fields API Names as a key 
        // this labels use in CSV file header
        keys = ['case__r.CaseNumber','Name','Resolved__c','In_Conflict__c','On_Another_Case__c','Payment_Terms__c','Original_Charge__c',
       csvStringResult = '';
       csvStringResult += keys.join(columnDivider);
       csvStringResult += lineDivider;
        for(var i=0; i < objectRecords.length; i++){   
            counter = 0;
             for(var sTempkey in keys) {
                 var skey = keys[sTempkey] ;   
              // add , [comma] after every String value,. [except first]
                  if(counter > 0){ 
                      csvStringResult += columnDivider; 
                 if(skey == 'Case Number') {
                     csvStringResult += '"'+objectRecords[i].Case__r.CaseNumber+'"';
                 else if(objectRecords[i][skey] != undefined ){
                     csvStringResult += '"'+ objectRecords[i][skey]+'"';
                     csvStringResult += '"'+ '' +'"';
            } // inner for loop close 
             csvStringResult += lineDivider;
          }// outer main for loop close 
       // return the CSV formate String 
        return csvStringResult;        
create a custom lightning component, kanban for any object ,something that looks like the standard opportunity kanban view,
along with which it should have drag and drop option for the kanban cards.
I need to get all items(records) of Products2.
According to the request, it returns an overview of Product2's metadata as well as a list of the most recently used Product2 records :  GET/services/data/v39.0/sobjects/Product2(https://developer.salesforce.com/docs/api-explorer/sobject/Product2/get-product2 ).
As I understand list of the most recently used Product2 records doesn't contain all records, so how can I get all records of Product2  or Account or any other object?
when i am trying to deploy a am having 
Error parsing file: LWC Metadata Xml Parser: ParseError at [row,col]:[2,26]
Message: Element type "LightningComponentBundle" must be followed by either attribute specifications, ">" or "/>".LightningComponentBundle error inn my XML file.

im attaching my xml
User-added image

when if removing <targets> tag ...then the component is getting deployed.

did anybody face this issue?
pls help..
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.


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 {
        public String opportunityName;
        public String distributionName;
        public Id opportunityId;
        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];
    public static void RoundRobinOpp(List<RRRequest> requests) {
        Set<String> distributionnames = new Set<String>();
        Set<Id> username = new Set<Id>();
        for (RRRequest request : requests) {
        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]) {
        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);
            //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,
        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?
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.
 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

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.


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