• Sharmila Sahu 12
  • NEWBIE
  • 15 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 9
    Replies
User in our org is not able to see any data in user report(Administrator Report).
This report is basically to seee login statics of users. First user was not able to even open report. Then I assigned View Setup and Configuration and manage external user permission. Now user is able to open report but report is not showing any data on login statistics of user whereas as a admin when I am running the report I am able to see data.
User Views 0 records:
User-added image
My View:
User-added image
I even gave highest role to user, still no luck. In sharing setting, this is the setting for user

User -Default Internal access
Public Read Only
Default external access-
Private

Any ideas what I am missing?
 
We have one visulaforce tab that is launching VF page.VF page has standardcontroller and extension on Opportunity. When I click on cancel button in Classic it is taking me to Home Page But in lightning it is throwing error.Any idea how to make this standard Cancel button work on VF page in lightning to properly redirect.

User-added imageWhen Clicking on Cancel Button it is throwing error.
User-added imageAny idea how to make this standard Cancel button work on VF page in lightning to properly redirect.
 
How can we avoid add product selection screen while creating opportunity in salesforce.

We have one requirement, for one specific new record type in Opportunity, users do not want to see Price book selection and Add Product to Opportunity selection while creating Opp.

I was able to avoid Price book selection screen through Process Builder by setting default value of price book for that record type. But Add Products to Opp screen is still coming Is there any way to remove it of particular Opp record type. 
In salesforce for outlook, while printing email in PDF version, it is attaching category,subcategory , salesforce  id etc. in email's PDF version. 
User-added image​​​​​​​Any Help
Copy like this is being sent to customers and we would like the Salesforce Information pictured below removed from the top of the page.  if possible we would like this information to be removed so that customers do not receive this information.
 
Since there are may duplicate rules on Lead already available. Is it possible to run trigger(DuplicateRecordItemTrigger ) on DuplicateRecordItem object and do merging  only for  one specific Duplicate Rule and not for other duplicate rules available on Lead.

and if possible can anybody please help how to do it.
lookup field is not getting populated in URL hacking in custom button in lightning. It is getting populated in lightning.

I have one parent object named Sample Request  and its child object Sample Product having master detail relationship.

I created one custom button with url hacking to set some fields and recordtype id for sample product creation which is  in related list of Parent object(Sample Product).

In classic parent lookup field in getting populated while clicking on related list button but it is not working in lightning. Lokkup field is empty.
I have used this code:
/a0m/e?CF00Na000000ATqLW={!Sample_Request__c.Name} 
&CF00Na000000ATqLW_lkid={!Sample_Request__c.Id} 
&RecordType="{!$Label.UsCanSampleProductRecordType}" 
&retURL=%2F{!Sample_Request__c.Id}

I need to display this button in related list.
I thought of creating lightning action but it is not getting displayed in related list section as only list buttons can be displayed in related list section.

Any help would be appreciated. 
I want to set record type while creating record in lightning component through e.force:createRecord. But I am not able to do so.
I tried using custom label and even I tried hardcoding still It is not showing correct record type and it is showing default record type for record creation.
Please find below code for javascript controller:
({
    doInit: function (component, event, helper) {
        var recId = component.get("v.recordId");
        console.log(recId);

        var action = component.get("c.getdetails");
        action.setParams({
            "sId": recId
        });
        action.setCallback(this, function (response) {
            var state = response.getState();
            if (state === "SUCCESS") {
                $A.get("e.force:closeQuickAction").fire();
                console.log("Success" + JSON.stringify(response.getReturnValue()));
                component.set("v.sampleRequest", response.getReturnValue());
                var sampProd = component.get("v.sampleRequest");
                
                 if(sampProd.Lead__c === sampProd.Contact__c){
                    var Name = sampProd.Contact__r.Name;
                }
                else
                {
                   var Name = sampProd.Lead__r.Name; 
                }
                


                var createSampleProduct = $A.get("e.force:createRecord");
                var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": '0121b0000004aeSAAQ',
                    "defaultFieldValues": {
                        'Sample_Request__c' : component.get("v.recordId"),
                        'Name__c': Name,                    
                    }
                });
                createSampleProduct.fire();
            } else {
                console.log("Fail");
            }
        });
        $A.enqueueAction(action);
    }
})

I tried hardcoding:
              var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": '0121b0000004aeSAAQ',

I have tried using:

            var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": staticRecordLabel ,

it is just showing for 1 sec 
UsCanSampleProductRecordType and then it is taking me to record creation page with default record type.

Please help. 
This page has an error. You might just need to refresh it.We are reporting this as error id (780888435).

I am getting this error while creating Opportunity in lightning in production org.

Please help to resolve this.
I want to set record type while creating record in lightning component through e.force:createRecord. But I am not able to do so.
I tried using custom label and even I tried hardcoding still It is not showing correct record type and it is showing default record type for record creation.
Please find below code for javascript controller:
({
    doInit: function (component, event, helper) {
        var recId = component.get("v.recordId");
        console.log(recId);

        var action = component.get("c.getdetails");
        action.setParams({
            "sId": recId
        });
        action.setCallback(this, function (response) {
            var state = response.getState();
            if (state === "SUCCESS") {
                $A.get("e.force:closeQuickAction").fire();
                console.log("Success" + JSON.stringify(response.getReturnValue()));
                component.set("v.sampleRequest", response.getReturnValue());
                var sampProd = component.get("v.sampleRequest");
                
                 if(sampProd.Lead__c === sampProd.Contact__c){
                    var Name = sampProd.Contact__r.Name;
                }
                else
                {
                   var Name = sampProd.Lead__r.Name; 
                }
                


                var createSampleProduct = $A.get("e.force:createRecord");
                var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": '0121b0000004aeSAAQ',
                    "defaultFieldValues": {
                        'Sample_Request__c' : component.get("v.recordId"),
                        'Name__c': Name,                    
                    }
                });
                createSampleProduct.fire();
            } else {
                console.log("Fail");
            }
        });
        $A.enqueueAction(action);
    }
})

I tried hardcoding:
              var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": '0121b0000004aeSAAQ',

I have tried using:

            var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": staticRecordLabel ,

it is just showing for 1 sec 
UsCanSampleProductRecordType and then it is taking me to record creation page with default record type.

Please help. 
User in our org is not able to see any data in user report(Administrator Report).
This report is basically to seee login statics of users. First user was not able to even open report. Then I assigned View Setup and Configuration and manage external user permission. Now user is able to open report but report is not showing any data on login statistics of user whereas as a admin when I am running the report I am able to see data.
User Views 0 records:
User-added image
My View:
User-added image
I even gave highest role to user, still no luck. In sharing setting, this is the setting for user

User -Default Internal access
Public Read Only
Default external access-
Private

Any ideas what I am missing?
 
We have one visulaforce tab that is launching VF page.VF page has standardcontroller and extension on Opportunity. When I click on cancel button in Classic it is taking me to Home Page But in lightning it is throwing error.Any idea how to make this standard Cancel button work on VF page in lightning to properly redirect.

User-added imageWhen Clicking on Cancel Button it is throwing error.
User-added imageAny idea how to make this standard Cancel button work on VF page in lightning to properly redirect.
 
How can we avoid add product selection screen while creating opportunity in salesforce.

We have one requirement, for one specific new record type in Opportunity, users do not want to see Price book selection and Add Product to Opportunity selection while creating Opp.

I was able to avoid Price book selection screen through Process Builder by setting default value of price book for that record type. But Add Products to Opp screen is still coming Is there any way to remove it of particular Opp record type. 
lookup field is not getting populated in URL hacking in custom button in lightning. It is getting populated in lightning.

I have one parent object named Sample Request  and its child object Sample Product having master detail relationship.

I created one custom button with url hacking to set some fields and recordtype id for sample product creation which is  in related list of Parent object(Sample Product).

In classic parent lookup field in getting populated while clicking on related list button but it is not working in lightning. Lokkup field is empty.
I have used this code:
/a0m/e?CF00Na000000ATqLW={!Sample_Request__c.Name} 
&CF00Na000000ATqLW_lkid={!Sample_Request__c.Id} 
&RecordType="{!$Label.UsCanSampleProductRecordType}" 
&retURL=%2F{!Sample_Request__c.Id}

I need to display this button in related list.
I thought of creating lightning action but it is not getting displayed in related list section as only list buttons can be displayed in related list section.

Any help would be appreciated. 
I want to set record type while creating record in lightning component through e.force:createRecord. But I am not able to do so.
I tried using custom label and even I tried hardcoding still It is not showing correct record type and it is showing default record type for record creation.
Please find below code for javascript controller:
({
    doInit: function (component, event, helper) {
        var recId = component.get("v.recordId");
        console.log(recId);

        var action = component.get("c.getdetails");
        action.setParams({
            "sId": recId
        });
        action.setCallback(this, function (response) {
            var state = response.getState();
            if (state === "SUCCESS") {
                $A.get("e.force:closeQuickAction").fire();
                console.log("Success" + JSON.stringify(response.getReturnValue()));
                component.set("v.sampleRequest", response.getReturnValue());
                var sampProd = component.get("v.sampleRequest");
                
                 if(sampProd.Lead__c === sampProd.Contact__c){
                    var Name = sampProd.Contact__r.Name;
                }
                else
                {
                   var Name = sampProd.Lead__r.Name; 
                }
                


                var createSampleProduct = $A.get("e.force:createRecord");
                var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": '0121b0000004aeSAAQ',
                    "defaultFieldValues": {
                        'Sample_Request__c' : component.get("v.recordId"),
                        'Name__c': Name,                    
                    }
                });
                createSampleProduct.fire();
            } else {
                console.log("Fail");
            }
        });
        $A.enqueueAction(action);
    }
})

I tried hardcoding:
              var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": '0121b0000004aeSAAQ',

I have tried using:

            var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": staticRecordLabel ,

it is just showing for 1 sec 
UsCanSampleProductRecordType and then it is taking me to record creation page with default record type.

Please help. 
This page has an error. You might just need to refresh it.We are reporting this as error id (780888435).

I am getting this error while creating Opportunity in lightning in production org.

Please help to resolve this.