• Parteek Goyal 3
  • NEWBIE
  • 370 Points
  • Member since 2014

  • Chatter
    Feed
  • 2
    Best Answers
  • 4
    Likes Received
  • 0
    Likes Given
  • 74
    Questions
  • 55
    Replies
Hello All,
I am trying to Create a Hello World Lightning Web Component as mentioned in the URL below.
Hello World Lightning Web Component (https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/create-a-hello-world-lightning-web-component?trail_id=build-lightning-web-components)
But in VS code I am getting below output and did some analysis but unable to risolve it please help me how can I proceed further.

VS code output:
Starting SFDX: Authorize an Org

09:42:18.175 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername
ERROR running force:auth:web:login:  Cannot start the OAuth redirect server on port PortInUseAction. 

Try this: 
Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
09:42:23.367 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername ended with exit code 1
------------------------------Sometimes below error is coming-------------------
use a custom connected app and update OauthLocalPort in the sfdx-project.json file

Thanks in Advance :)
Hi All,

We are moving our salesforce org from classic to lightnig but we are still not clear that do we need to move customer portal from classic to Lightning in Jan 20?

Thanks,
Parteek
Hello All,

I am trying to call other component using aura:method, but getting some errors. I appreciate if you can help.
Apex Controller


public class TestingIntegrationErrorHandling {
    @AuraEnabled
    public static object sampleCallout(){
        system.debug('entered apex');
       
        return object;
    }
}

The controller is working perfect
 
Parent Component:

<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" controller="CDI_TestingIntegrationErrorHandling" >
	<aura:attribute name="messageLog" type="Object__C" />
    <c:CDI_TestComponentParent aura:id="child"/>
    <lightning:button label="CallErrorHandlingComp" onclick="{! c.callChildMethod }" />
</aura:component>

Controller:
callChildMethod : function(component, event, helper) {
       console.log('calling child method');
       
        var action = component.get("c.sampleCallout"); 
        action.setCallback(this, function(result){
            var messageLog = result.getReturnValue();
            console.log('---messageLog-- ' + messageLog);
            component.set("v.messageLog", messageLog);
            
        });
        var childCmp = component.find("MessagePanel");
        var retnMsg = childCmp.executeMyMethod(messageLog);
        consolo.log('executing child');
        
        $A.enqueueAction(action);      
        
	}
 
Child component:
<aura:component access="global">	
    <aura:method name="executeMyMethod" action="{!c.executeMyMethod}">
         <aura:attribute name="messageLog" type="MessageLog__c" />
    </aura:method>	
</aura:component>

Controller:
executeMyMethod : function (component, event, helper) {
        var params = event.getParam('arguments');
        if (params) {
            var param1 = params.MessageLog__c;
			console.log('param1  ' + param1);
            component.set('v.messageLog',params.MessageLog__c);
            
        }
    }

Thank you for your help
Hi All,

I am tring to authorize an org on visual studio code but when I am trying authorize it, I am getting the below error.

SFDX: Authorize an Org failed to run
Try this:
Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
19:31:13.241 sfdx force:auth:web:login --setalias VSCodePlayground --instanceurl https://login.salesforce.com --setdefaultusername ended with exit code 1

I have Killed the Process on port 1717 and tried it again then I am not getting any error but it is running for infinite time. 

Please help.

Thanks,
Parteek
Hi All,

I want to pass the record id from component to javascript controller on click on account name hyperlink.
 
<aura:iteration items="{!v.searchResult}" var="acc" indexVar="count">
                        <tr>
                            <td>
                                <div class="slds-truncate">{!count + 1}</div>
                            </td>
                            <td>
                                
                                <!--a href="{!'/one/one.app?#/sObject/'+ acc.Id + '/view'}" width="400" height="400" target="_blank"-->
                                <a onclick="{!c.openModel}">
                                    
                                	<div class="slds-truncate">{!acc.Name}</div>
                                </a>
                            </td>
                            <td>
                                <div class="slds-truncate">{!acc.PersonEmail}</div>
                            </td>
</tr>
</aura:iteration>

Please help me.

 

Hi All,

I am facing a issue with managed package report type. basically that report type is visible to system Admin and Admin can create report on same record type. But the same record type is not visible to a user and user is unable to see the report created by System Admin based on that Record Type.

I assigned System Admin role and profile to the user to find the issue but issue still persist.

Please help me.

Thanks,
Parteek

 

Why do we use component custom event in Lightning, what are the use case of using custom component events.

Standard event like button click can do any work in lighting still we use custom components event, Please explain.

Thanks,
Parteek
Hi,

I create a visualforce page.
When some event is executed the follow message are showing in the page:
window.parent.SfdcApp.Visualforce.viewstate.ViewInstance.reload

how I remove this from the page?

Thanks.

Rafael
Hi all

I am trying to calcualte the sum of values on a custom object "invoice__c" to Opportunity which is a lookup relationship. As it's not MD I can't use rollup summary. The field on invoice is value and needs to be aggregrated the the "total invoice value" on the opportunty object.

Can anyone help, everything I've tried so far hasn't worked.

Thanks
Hi Team,

Is there a way to display a live dashboard on force.com site page for a site user (guest user license)
Hi All, I have to write a validation rule that Employee can apply only  for the available leaves if leave is more than available leaves it should show error " You dont have sufficient leaves to apply" Thanks.
Suppose I have 3 opportunity record type :
  1. Type 1
  2. Type 2
  3. Type 3
And I have Different teams like :
  1. Sales team
  2. Marketing team. etc
And lets say I have below fields in opportunity :
  1. Opportunity name
  2. Approval
  3. Amout etc and so on.
So my question is whenever "sales team" clicks on create opportunity of record type say "Type 1", I want to hide field "Approval". How I can do this? Any help wil be really appreciated.
Hi,

Here's the issue I'm currently facing:

I have created a visual flow and hosted it on a force.com site page so that it can be accessed by a guest user profile. One of the functions of this flow is the possibility to "record lookup" from the contacts object: the guest user can input the Contact ID in the flow and he will be able to see basic info of the contact such as name, email, country.

I tested this flow in the Sandbox and it was working perfectly. But when I deployed it to our QA org, the guest user is unable to find any contact record (even though the record exists in QA org).

In QA org I went through all these steps:

1. I checked that the guest user has READ / CREATE access to Contacts, Accounts and my custom object
2. I checked that the guest user has access to all the relevant fields across the objects
3. I checked the Sharing Settings: both in Sandbox and QA, the Accounts object is set to "Private" and Contacts is set to "Controlled by Parent". However, I have no idea why it works in Sandbox but not in QA. As far as I know, it seems it's not possible to create a sharing rule with a guest profile.
4. I checked that the guest user has access to the correct Contact record type (if that matters at all).

At this point, I'm lost and stuck with my project :(

Do you know what could prevent the guest user from looking up a contact record through the visual flow?

Thanks a million for any advice you might have.
i want to insert record xls file using email handler. Any ideas?