• sen19
  • NEWBIE
  • 50 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 18
    Questions
  • 8
    Replies
I am trying to create a custom related list quick link inside a LWC. I have 2 objects A and B. From the apex I am returning the list of B related record but how can I display it like a related list quick link on LWC? Any idead how to do this? Please help on this.
User-added image
  • January 14, 2021
  • Like
  • 0
I am trying to insert 2 images one inside other. The UI looks like our social profile. One background image and profile picture in front left corner. With the below code images are got placed properly but other tags are not populating properly in UI. like record id is getting printed behind the Pic2 and i am not able to move it down or other place. pls help here.
<template>
<lightning-card> <div style="position:relative"> <img src={pic1} style="top: 0px; left: 0px;"> <img src={pic2} style="position:absolute;top: 90px; left: 20px; border-radius: 50%;"/> </div> <div style="top: 2000px;"> record id:{recordId} </lightning-card>
</template>
  • January 07, 2021
  • Like
  • 0

Please help me with the html file for below UI in LWC.
This looks similar linke our linkdin profile: ex.  linkedin.com/company/facebook 
(top section)
User-added image
  • January 05, 2021
  • Like
  • 0
How can I insert a dashboard inside an custom aura component? In app builder the option is available to insert a dashboard but how to add the dashboard inside a custom aura component
  • November 03, 2020
  • Like
  • 0
I am calling apex class from helper.js and want to store the return string in a var or attribute. But the return string from apex is not getting stored in any of these. Its always coming as undefined. Could anyone help me in this:

    ({
   
    helpermethd1:function(component, event, helper)
    {
        var locale = $A.get("$Locale.language");
        var returl = component.get("v.backUrl");
        console.log('returl>>>'+returl);
       
        if($A.util.isEmpty(returl) && $A.get("$Label.c.a1")===locale){
            debugger;
            
            var tokendecoded=helper.getURLParamWithoutDecode('token');
            var action=component.get("c.returl");
           
            action.setParams({"tokenSF":tokendecoded});
            action.setCallback(this, function(response){
                var state = response.getState();
                if (state === "SUCCESS"){
                    alert('success');
                    var retrnvalue=response.getReturnValue();
                    
                    if(retrnvalue!=null){
                        returl=retrnvalue;
                    }
                    else{
                        returl=$A.get("$Label.c.abc");
                    }
                }
                else
                {
                    returl=$A.get("$Label.c.abc");
                }
            });
            
            debugger;
                               
        }
        else if($A.util.isEmpty(returl)){
          
            returl = $A.get("$Label.c.xyz");
            console.log('returl UK'+returl);
           
            debugger;
        }
        $A.enqueueAction(action);
        window.open(returl,'_top');
       
   
},
   getURLParamWithoutDecode : function(identifier)
    {
        .......
        .....
    }   
   
})

Apex:
public without sharing virtual class sample {
@AuraEnabled public static String redirectURL(String tokenSF){ return abc;
  • September 17, 2020
  • Like
  • 0
I have translated record type label name in translation workbench but not able to retrieve it in package xml. record type is not coming in below xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>CustomObjectTranslation</name>
    </types>
    <version>49.0</version>
</Package>


How can I retrieve record type label translated values in package xml
 
  • September 14, 2020
  • Like
  • 0
I am trying to add the related record component (standard lightning component) inside account record page. While adding there is no error. Its got activated successfully but when I am coming back to UI then the component is not visible. Again when I am going back to app builder page editor I can see that component is not available in the page. Can anyone please help me on this?
  • September 09, 2020
  • Like
  • 0
I am trying to rename existing field's API name. I know that before that I have to remove all references from class, VF pages..etc. Currently I am trying to fetch all references like classes and field metadata (xml file) in VS code and trying to deploy back with the updated name but it is creating new fields instead of overwriting the existing field. Can any one let me know that how should I proceed? shall I have to remove all references in the org manually then change the field API name. Post that put back all changes again manually?
  • September 01, 2020
  • Like
  • 0
I have a workflow/process builder which is sending mail to user. The mail will contain an link which should valid for 48hrs.
How can I achieve this? Pls help in this.
  • July 09, 2020
  • Like
  • 0
I have below wrapper class: 

public class GitDeployHistroryWrapper {
    

    public class Details {
        public List<ComponentFailures> componentFailures  {get;set;} 
        public List<ComponentSuccesses> componentSuccesses  {get;set;} 
        public String retrieveResult  {get;set;} 
        public List<ComponentFailures> allComponentMessages  {get;set;} 
        public RunTestResult runTestResult  {get;set;} 
    }

    public String id  {get;set;} 
    public String validatedDeployRequestId  {get;set;} 
    public String deployOptions  {get;set;} 
    public DeployResult deployResult  {get;set;} 

    public class DeployResult {
        public String id  {get;set;} 
        public String messages  {get;set;} 
        public String retrieveResult  {get;set;} 
        public Boolean success  {get;set;} 
        public Boolean checkOnly  {get;set;} 
        public Boolean ignoreWarnings  {get;set;} 
        public Boolean rollbackOnError  {get;set;} 
        public String status  {get;set;} 
        public Integer numberComponentsDeployed  {get;set;} 
        public Integer numberComponentsTotal  {get;set;} 
        public Integer numberComponentErrors  {get;set;} 
        public Integer numberTestsCompleted  {get;set;} 
        public Integer numberTestsTotal  {get;set;} 
        public Integer numberTestErrors  {get;set;} 
        public Details details  {get;set;} 
        public String createdDate {get;set;} 
        public String startDate {get;set;} 
        public String lastModifiedDate {get;set;} 
        public String completedDate {get;set;} 
        public String errorStatusCode {get;set;} 
        public String errorMessage {get;set;} 
        public String stateDetail {get;set;} 
        public String createdBy {get;set;} 
        public String createdByName {get;set;} 
        public String canceledBy {get;set;} 
        public String canceledByName {get;set;} 
        public Boolean done {get;set;} 
        public String runTestResult {get;set;} 
        public Boolean runTestsEnabled {get;set;} 
    }

    public class Successes {
        public String namespace {get;set;}
        public String name {get;set;}
        public String methodName {get;set;}
        public String id {get;set;}
        //public String time {get;set;}
        public String seeAllData {get;set;}
            
    }
    public class Failures {
        public String type {get;set;}
        public String namespace {get;set;}
        public String name {get;set;}
        public String methodName {get;set;}
        public String stackTrace {get;set;}
        public String id {get;set;}
        public String seeAllData {get;set;}
        public String packageName {get;set;}
       // public String time {get;set;}
        
    }

    public class RunTestResult {
        public List<Successes> successes {get;set;} 
        public List<Failures> failures {get;set;} 
        public Double totalTime {get;set;} 
        public String apexLogId {get;set;} 
        public Integer numTestsRun {get;set;} 
        public List<Successes> flowCoverage {get;set;} 
        public List<Successes> codeCoverage {get;set;} 
        public Integer numFailures {get;set;} 
        public List<Successes> codeCoverageWarnings {get;set;} 
        public List<Successes> flowCoverageWarnings {get;set;} 
    }
    public class allComponentMessages{
        public String componentType {get;set;} 
        public String fileName {get;set;} 
        public String fullName {get;set;} 
        public String id {get;set;} 
        public String problem {get;set;} 
        public Boolean success {get;set;} 
        public Boolean warning {get;set;} 
        public Boolean created {get;set;} 
        public Boolean changed {get;set;} 
        public Boolean deleted {get;set;} 
        public Integer lineNumber {get;set;} 
        public Integer columnNumber {get;set;} 
        public Boolean requiresProductionTestRun {get;set;} 
        public String createdDate {get;set;} 
        public Boolean knownPackagingProblem {get;set;} 
        public Boolean forPackageManifestFile {get;set;} 
        public String problemType {get;set;} 
    }   

    public class ComponentFailures {
        public String componentType {get;set;} 
        public String fileName {get;set;} 
        public String fullName {get;set;} 
        public String id {get;set;} 
        public String problem {get;set;} 
        public Boolean success {get;set;} 
        public Boolean warning {get;set;} 
        public Boolean created {get;set;} 
        public Boolean changed {get;set;} 
        public Boolean deleted {get;set;} 
        public Integer lineNumber {get;set;} 
        public Integer columnNumber {get;set;} 
        public Boolean requiresProductionTestRun {get;set;} 
        public String createdDate {get;set;} 
        public Boolean knownPackagingProblem {get;set;} 
        public Boolean forPackageManifestFile {get;set;} 
        public String problemType {get;set;} 
    }
    public class ComponentSuccesses{
        
        public String componentType {get;set;} 
        public String fileName {get;set;} 
        public String fullName {get;set;} 
        public String id {get;set;} 
        public String problem {get;set;} 
        public Boolean success {get;set;} 
        public Boolean warning {get;set;} 
        public Boolean created {get;set;} 
        public Boolean changed {get;set;} 
        public Boolean deleted {get;set;} 
        public Integer lineNumber {get;set;} 
        public Integer columnNumber {get;set;} 
        public Boolean requiresProductionTestRun {get;set;} 
        public String createdDate {get;set;} 
        public Boolean knownPackagingProblem {get;set;} 
        public Boolean forPackageManifestFile {get;set;} 
        public String problemType {get;set;} 
    }

    
    public static GitDeployHistroryWrapper parse(String json) {
        return (GitDeployHistroryWrapper) System.JSON.deserialize(json, GitDeployHistroryWrapper.class);
    }
}

I am deserializing response like below in my main class: GitDeployHistroryWrapper callList= (GitDeployHistroryWrapper)JSON.deserialize(response.getBody(), GitDeployHistroryWrapper.class);

I want list of ComponentSuccesses to return from my main class method. How can i achieve this? Pls help on this.
  • June 29, 2020
  • Like
  • 0
I want to create an apex class from below json. I am using json2apex but i am not able to get proper wrapper class from it. Can any one help me on this.
 My Json:
 { "id": "0Af2x000004Itv4", "validatedDeployRequestId": null, "deployOptions": null, "deployResult": { "id": "0Af2x000004Itv4CAC", "messages": null, "retrieveResult": null, "success": false, "checkOnly": true, "ignoreWarnings": false, "rollbackOnError": true, "status": "Failed", "numberComponentsDeployed": 1, "numberComponentsTotal": 2, "numberComponentErrors": 1, "numberTestsCompleted": 0, "numberTestsTotal": 0, "numberTestErrors": 0, "details": { "componentFailures": [ { "componentType": "AssignmentRule", "fileName": "sdx_sourceDeploy_1590739049091/assignmentRules/Case.assignmentRules", "fullName": "Case.Standard", "id": null, "problem": "In field: AssignedTo - no User named muralikrishna_r@hcl.om found", "success": false, "warning": false, "created": false, "changed": false, "deleted": false, "lineNumber": 4, "columnNumber": 21, "requiresProductionTestRun": false, "createdDate": "2020-05-29T07:57:36.000+0000", "knownPackagingProblem": false, "forPackageManifestFile": false, "problemType": "Error" } ], "componentSuccesses": [ { "componentType": "", "fileName": "sdx_sourceDeploy_1590739049091/package.xml", "fullName": "package.xml", "id": null, "problem": null, "success": true, "warning": false, "created": false, "changed": true, "deleted": false, "lineNumber": null, "columnNumber": null, "requiresProductionTestRun": false, "createdDate": "2020-05-29T07:57:36.000+0000", "knownPackagingProblem": false, "forPackageManifestFile": true, "problemType": null }, { "componentType": "AssignmentRules", "fileName": "sdx_sourceDeploy_1590739049091/assignmentRules/Case.assignmentRules", "fullName": "Case", "id": null, "problem": null, "success": true, "warning": false, "created": false, "changed": true, "deleted": false, "lineNumber": null, "columnNumber": null, "requiresProductionTestRun": false, "createdDate": "2020-05-29T07:57:36.000+0000", "knownPackagingProblem": false, "forPackageManifestFile": false, "problemType": null } ], "retrieveResult": null, "allComponentMessages": [ { "componentType": "AssignmentRule", "fileName": "sdx_sourceDeploy_1590739049091/assignmentRules/Case.assignmentRules", "fullName": "Case.Standard", "id": null, "problem": "In field: AssignedTo - no User named muralikrishna_r@hcl.om found", "success": false, "warning": false, "created": false, "changed": false, "deleted": false, "lineNumber": 4, "columnNumber": 21, "requiresProductionTestRun": false, "createdDate": "2020-05-29T07:57:36.000+0000", "knownPackagingProblem": false, "forPackageManifestFile": false, "problemType": "Error" }, { "componentType": "", "fileName": "sdx_sourceDeploy_1590739049091/package.xml", "fullName": "package.xml", "id": null, "problem": null, "success": true, "warning": false, "created": false, "changed": true, "deleted": false, "lineNumber": null, "columnNumber": null, "requiresProductionTestRun": false, "createdDate": "2020-05-29T07:57:36.000+0000", "knownPackagingProblem": false, "forPackageManifestFile": true, "problemType": null }, { "componentType": "AssignmentRules", "fileName": "sdx_sourceDeploy_1590739049091/assignmentRules/Case.assignmentRules", "fullName": "Case", "id": null, "problem": null, "success": true, "warning": false, "created": false, "changed": true, "deleted": false, "lineNumber": null, "columnNumber": null, "requiresProductionTestRun": false, "createdDate": "2020-05-29T07:57:36.000+0000", "knownPackagingProblem": false, "forPackageManifestFile": false, "problemType": null } ], "runTestResult": { "successes": [], "failures": [], "totalTime": 0, "apexLogId": null, "flowCoverage": [], "codeCoverage": [], "numFailures": 0, "codeCoverageWarnings": [], "flowCoverageWarnings": [], "numTestsRun": 0 } }, "createdDate": "2020-05-29T07:57:29.000+0000", "startDate": "2020-05-29T07:57:29.000+0000", "lastModifiedDate": "2020-05-29T07:57:37.000+0000", "completedDate": "2020-05-29T07:57:37.000+0000", "errorStatusCode": null, "errorMessage": null, "stateDetail": null, "createdBy": "0052x000001h6yF", "createdByName": "M Krishna", "canceledBy": null, "canceledByName": null, "runTestsEnabled": false, "runTestResult": null, "done": true } }

Wrapper class generated by jsonapex:

public class GitDeployHistroryWrapper {
public class Details { public List<ComponentFailures> componentFailures; public List<ComponentSuccesses> componentSuccesses; public String retrieveResult; public List<ComponentFailures> allComponentMessages; public RunTestResult runTestResult; } public String id; public String validatedDeployRequestId; public String deployOptions; public DeployResult deployResult; public class DeployResult { public String id; public String messages; public String retrieveResult; public Boolean success; public Boolean checkOnly; public Boolean ignoreWarnings; public Boolean rollbackOnError; public String status; public Integer numberComponentsDeployed; public Integer numberComponentsTotal; public Integer numberComponentErrors; public Integer numberTestsCompleted; public Integer numberTestsTotal; public Integer numberTestErrors; public Details details; public String createdDate; public String startDate; public String lastModifiedDate; public String completedDate; public String errorStatusCode; public String errorMessage; public String stateDetail; public String createdBy; public String createdByName; public String canceledBy; public String canceledByName; public Boolean done; public String runTestResult; public Boolean runTestsEnabled; } public class Successes { } public class RunTestResult { public List<Successes> successes; public List<Successes> failures; public Double totalTime; public String apexLogId; public Integer numTestsRun; public List<Successes> flowCoverage; public List<Successes> codeCoverage; public Integer numFailures; public List<Successes> codeCoverageWarnings; public List<Successes> flowCoverageWarnings; } public class ComponentFailures { public String componentType; public String fileName; public String fullName; public String id; public String problem; public Boolean success; public Boolean warning; public Boolean created; public Boolean changed; public Boolean deleted; public Integer lineNumber; public Integer columnNumber; public Boolean requiresProductionTestRun; public String createdDate; public Boolean knownPackagingProblem; public Boolean forPackageManifestFile; public String problemType; } public class ComponentSuccesses{ } public static GitDeployHistroryWrapper parse(String json) { return (GitDeployHistroryWrapper) System.JSON.deserialize(json, GitDeployHistroryWrapper.class); }
}

I am not getting proper output by using below: GitDeployHistroryWrapper callList= (GitDeployHistroryWrapper)JSON.deserialize(res.getBody(), GitDeployHistroryWrapper.class);
callList variable contains only below:
 callList-----GitDeployHistroryWrapper:[deployOptions=null, deployResult=null, id=https://login.salesforce.com/id/00D2x000004ubeDEAQ/0052x000001h6kKAAQ, validatedDeployRequestId=null]

Please help on this issue
  • June 26, 2020
  • Like
  • 0
Hi, I want to display the deployment status related fields inside a lightning component for each record. How can i accomplish this?Need help to achive this.
User-added image
  • June 25, 2020
  • Like
  • 0
I have a apex class which is having one method with returntype wrapper class. i am binding the return type in helper in a response attribute (type is object). I want to fetch two variables i.e. id,status from response. Currently I am getting undefined error in output.
Reponse attribute in cmp:
<aura:attribute name="response" type="object"/>
Helper.js:
({ getStatusHelper : function(component, event,helper) {
var jobID = event.getParam("Pass_Result");
component.set("v.jobId", jobID); var action = component.get("c.getCalloutResponseStatus"); action.setParams({"jobId": jobID});
action.setCallback(this, function(response) { var state = response.getState();
if (component.isValid() && state === "SUCCESS") { component.set("v.response", response.getReturnValue());
**var getStatus = component.get("v.response").status; //GETTING UNDEFINED ERROR
var getJobId = component.get("v.response").id; //GETTING UNDEFINED ERROR**
}
else{ alert('Failed status call from child!!'); } }); $A.enqueueAction(action); }
})
can anyone pls help me on this issue
  • June 23, 2020
  • Like
  • 0
Question 1:
I have account,contact, opportunity,case and lead in my unlocked package. For case entitlements,multicurrency fields (ex. currencyisocode, slastartdate, entitlementid etc.) I have added ""features": ["ENTITLEMENTS", "MULTICURRENCY"]" in project-scratch-def.json file and running versioning command with "-f config/project-scratch-def.json".
In this case I am getting errors for contact record type "Contact.Record type name: Picklist value: Facebook in picklist: LeadSource not found". I am Not able to identify the issue here. what could be the issue for this error?
Note: I am doing versioning for unlocked package. I have added standardvalueset for leadsource picklist in my package and all values are available there. If I am removing those feature related fields and running the versioning command without "-f config/project-scratch-def.json" then its versioning is getting success everytime

Question 2:
 While versioning of unlocked package I am getting errors for case object reacordtypes. "case.recordtype name" Case.Recordtype name: duplicate value found: is a duplicate of the value in the record with the following ID: >"
Note:There is no inactive/duplicate values for picklist in org.
Not getting proper solution for this. What could be the issue?

Question 3:
While versionig of the unlocked package I am getting below errors:
(1) CampaignType: Duplicate label: Partner
(2) LeadSource: Duplicate label: advertising
(3) Industry: Duplicate label: biotechnology

Please help to resolve these error.
  • March 02, 2020
  • Like
  • 0
I have to create package.xml for a custom lighting application and then I have to retrieve all metadata which is related to that app. For that I have to understand which components are related to the lightning application. 
How can I check complete dependency (including apex classes,triggers,component bundle,objects..etc.) for a custom lightning apps?
Please help on this.
  • December 09, 2019
  • Like
  • 0
I have 5 different 3rd party application out of these only one is now connected with SFDC CRM via connected app(Oath). Now I have to connect rest 4 applications with SFDC via connected app. Shall I have to create another 4 differents connected apps?
Can any one suggest which is best way to achive this. Thanks!!
 
  • July 23, 2019
  • Like
  • 0
I forgot the trailhead account password which is linked with my weassessor and I also do not have access to my mail box currently. So I am not able to perform the forgot password option and hence unable to complete the maintainence exam on trailhead.
How can I link any alternative trailhead account with webassessor. Please suggest some help ASAP.
  • April 07, 2019
  • Like
  • 0
How to achive rollupsummary by using of agregate functions?(lookup relation between custom object)
obj1 - count__c(custom field) - will calculate the total amount__c
obj2 - having lookup to obj1 - amount__c (available in obj2)

How can I achive this by aggregate functions?
  • January 11, 2019
  • Like
  • 0
How can I insert a dashboard inside an custom aura component? In app builder the option is available to insert a dashboard but how to add the dashboard inside a custom aura component
  • November 03, 2020
  • Like
  • 0
I am calling apex class from helper.js and want to store the return string in a var or attribute. But the return string from apex is not getting stored in any of these. Its always coming as undefined. Could anyone help me in this:

    ({
   
    helpermethd1:function(component, event, helper)
    {
        var locale = $A.get("$Locale.language");
        var returl = component.get("v.backUrl");
        console.log('returl>>>'+returl);
       
        if($A.util.isEmpty(returl) && $A.get("$Label.c.a1")===locale){
            debugger;
            
            var tokendecoded=helper.getURLParamWithoutDecode('token');
            var action=component.get("c.returl");
           
            action.setParams({"tokenSF":tokendecoded});
            action.setCallback(this, function(response){
                var state = response.getState();
                if (state === "SUCCESS"){
                    alert('success');
                    var retrnvalue=response.getReturnValue();
                    
                    if(retrnvalue!=null){
                        returl=retrnvalue;
                    }
                    else{
                        returl=$A.get("$Label.c.abc");
                    }
                }
                else
                {
                    returl=$A.get("$Label.c.abc");
                }
            });
            
            debugger;
                               
        }
        else if($A.util.isEmpty(returl)){
          
            returl = $A.get("$Label.c.xyz");
            console.log('returl UK'+returl);
           
            debugger;
        }
        $A.enqueueAction(action);
        window.open(returl,'_top');
       
   
},
   getURLParamWithoutDecode : function(identifier)
    {
        .......
        .....
    }   
   
})

Apex:
public without sharing virtual class sample {
@AuraEnabled public static String redirectURL(String tokenSF){ return abc;
  • September 17, 2020
  • Like
  • 0
I have translated record type label name in translation workbench but not able to retrieve it in package xml. record type is not coming in below xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>CustomObjectTranslation</name>
    </types>
    <version>49.0</version>
</Package>


How can I retrieve record type label translated values in package xml
 
  • September 14, 2020
  • Like
  • 0
I am trying to rename existing field's API name. I know that before that I have to remove all references from class, VF pages..etc. Currently I am trying to fetch all references like classes and field metadata (xml file) in VS code and trying to deploy back with the updated name but it is creating new fields instead of overwriting the existing field. Can any one let me know that how should I proceed? shall I have to remove all references in the org manually then change the field API name. Post that put back all changes again manually?
  • September 01, 2020
  • Like
  • 0
I have a workflow/process builder which is sending mail to user. The mail will contain an link which should valid for 48hrs.
How can I achieve this? Pls help in this.
  • July 09, 2020
  • Like
  • 0
Hi, I want to display the deployment status related fields inside a lightning component for each record. How can i accomplish this?Need help to achive this.
User-added image
  • June 25, 2020
  • Like
  • 0
I have 5 different 3rd party application out of these only one is now connected with SFDC CRM via connected app(Oath). Now I have to connect rest 4 applications with SFDC via connected app. Shall I have to create another 4 differents connected apps?
Can any one suggest which is best way to achive this. Thanks!!
 
  • July 23, 2019
  • Like
  • 0
How to achive rollupsummary by using of agregate functions?(lookup relation between custom object)
obj1 - count__c(custom field) - will calculate the total amount__c
obj2 - having lookup to obj1 - amount__c (available in obj2)

How can I achive this by aggregate functions?
  • January 11, 2019
  • Like
  • 0