-
ChatterFeed
-
2Best Answers
-
4Likes Received
-
0Likes Given
-
74Questions
-
55Replies
Trigger to calculate sum of value on child object
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
- sfdc_newbie17
- August 08, 2017
- Like
- 0
- Continue reading or reply
how to disable case reference id
I want to Disabled Ref Id and New Threading Behavior for Email-To-Case. could you please explain the clear steps.
Thanks
- Parteek Goyal 3
- December 13, 2022
- Like
- 0
- Continue reading or reply
Einstein Bot: How to get user response from dynamic menus
I am working on Einstein bot and trying to implement dynamic menu in it. I have displayed the dynamic menu but i am not sure that how to capture the user response from dynamic menu once user selected one of the menu.
Please help.
Thanks,
Parteek
- Parteek Goyal 3
- November 05, 2021
- Like
- 0
- Continue reading or reply
How to group the values in lightning:checkboxGroup?
I got a requirement to group the values in lightning:checkboxGroup.
Exp:
We have 6 values -- A1 , A2, B1, B2, C1, C2.
We have to show the above values like this:
A1
A2
<br/>
B1
B2
<br/>
C1
C2
Please help me with this.
Thanks,
Parteek
- Parteek Goyal 3
- April 20, 2020
- Like
- 0
- Continue reading or reply
Unable to save ValidatedFromAddress field in EmailMessage trigger
I have written a trigger on EmailMessage object. I added a validation on From Address. below is the validation condition.
if(!email.FromAddress == 'test@test.com' && em.Incoming == false){ System.debug('Testing Email'); em.addError('Check From Email Address'); }It is working fine in Salesforce Classic but when I switch it to Lightining then it's not working as FromAddress is comming NULL.
I further Investegated it and found that we can use ValidatedFromAddress field for Lightning, this field is visible in field list of email Message but I am unable to save it in the trigger. I am not sure how to fix this isssue.
- Parteek Goyal 3
- January 10, 2020
- Like
- 0
- Continue reading or reply
Can we enable SSO to authenticate salesforce sites?
Hi All,
I got a requirement to implement Single Sign On with Salesforce Sites. It means we just want to provide the access of Salesforce Sites to the user who is authenticated via IDP.
Please help me.
Thanks,
Parteek
- Parteek Goyal 3
- December 17, 2019
- Like
- 0
- Continue reading or reply
do we need to move customer portal from classic to Lightning in Jan 20?
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
- Parteek Goyal 3
- November 14, 2019
- Like
- 0
- Continue reading or reply
How to push source code to scratch orgs in salesforce dx
I need help in push source code to scratch orgs in salesforce dx.
Thanks,
Parteek
- Parteek Goyal 3
- October 20, 2019
- Like
- 0
- Continue reading or reply
How to use Platform Event with rest API in salesforce
I have to integrate salesforce with third party system to get some multiselect picklist values using callouts but we have a client requirement to use Platform Events with it. Now I am not able to understand that what is the use of Platform Events in rest and how we can implement this.
Thanks,
Parteek
- Parteek Goyal 3
- September 17, 2019
- Like
- 0
- Continue reading or reply
I want to download the content document in lightning component without preview it
I want to download the content document files in lightning component without preview it.
Please help me.
Thanks,
Parteek
- Parteek Goyal 3
- August 19, 2019
- Like
- 0
- Continue reading or reply
Is there any way to download Entity relationship diagram from Salesforce
I want to download the Entity relationship diagram from Salesforce.
Please help me.
- Parteek Goyal 3
- July 09, 2019
- Like
- 1
- Continue reading or reply
SFDX: Authorize an Org failed to run
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
- Parteek Goyal 3
- July 04, 2019
- Like
- 0
- Continue reading or reply
How to solve conflicts in SVN using Visual Studio Code
I am trying to resolve merge conflicts in visual studio code using SVN repository. I can see below two options as well related to this. But I am not sure how to use these.
- SVN: Resolved conflicts for selected
- SVN: Resole All conflicts
Thanks,
Parteek
- Parteek Goyal 3
- June 27, 2019
- Like
- 0
- Continue reading or reply
how to connect SVN with visual studio code
I am trying to connect SVN with visaul studio code. I have installed VS Code and SVN, also enabled the SVN related extensions. Now I have few questions related to this.
- I am unable to add SVN extension to activity bar.
- How to clone/Create a repository using visual studio code
Parteek Goyal
- Parteek Goyal 3
- June 26, 2019
- Like
- 0
- Continue reading or reply
how to pass the record id from aura component to javascript controller on click on hyperlink
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.
- Parteek Goyal 3
- April 02, 2019
- Like
- 0
- Continue reading or reply
Issue with managed package Report type
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
- Parteek Goyal 3
- March 06, 2019
- Like
- 0
- Continue reading or reply
How to export remote site settings in salesforce
I want to take backup of remote site settings for sandbox referesh activity but I am unable to do this.
Please help me.
Thanks
- Parteek Goyal 3
- August 07, 2018
- Like
- 0
- Continue reading or reply
how to hide visualforce page header in lightning
I have created a visualforce page using <apex:enhancedList type="Activity" height="1000"/> tag and embeded this page in lightning component. Now I have added this component to home page layout, it is working fine but it is showing headers two time.I only want to show global header. Could you please help me with this.
Thanks,
Parteek
- Parteek Goyal 3
- February 27, 2018
- Like
- 0
- Continue reading or reply
why we use custom component event in salesforce lightning?
Standard event like button click can do any work in lighting still we use custom components event, Please explain.
Thanks,
Parteek
- Parteek Goyal 3
- February 23, 2018
- Like
- 0
- Continue reading or reply
How to use visualforce page in login flow?
I want to use visualforce page in login flow. I am to understand how to achive this.
Please help.
- Parteek Goyal 3
- December 15, 2017
- Like
- 0
- Continue reading or reply
how to call apex controller method using visualforce javascript in salesforce lightning
I want to know that how can we call apex controller method using visualforce javascript in lightning.
Is "sforce.apex.execute" method support in lightning, if not then what else we can do?
Thanks,
Parteek
- Parteek Goyal 3
- June 22, 2017
- Like
- 0
- Continue reading or reply
Is there any way to download Entity relationship diagram from Salesforce
I want to download the Entity relationship diagram from Salesforce.
Please help me.
- Parteek Goyal 3
- July 09, 2019
- Like
- 1
- Continue reading or reply
Business hours : Error: Start time must be earlier than end time
I want to discuss a business hours senario with you. We are using business hours for calculate Plan date of custom Activities. Our shift timing are 06:30 AM(Monday) to 03:30 AM(Tuesday),06:30 AM(Tuesday) to 03:30 AM(Wednesday) and so on. When I am going to set these hours to business hours, it is throwing the error "Error: Start time must be earlier than end time".
Please help me to fix this issue.
Thanks,
Parteek
- Parteek Goyal 3
- May 15, 2017
- Like
- 2
- Continue reading or reply
I want to add a pop up window on click when account is not selected
I want to add a pop up window on click when account is not selected. this is a list view page of account. and i am adding a custom button there.
- Parteek Goyal 3
- April 30, 2015
- Like
- 1
- Continue reading or reply
Issue with SFDX: Authorize an Org
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 :)
- Raviteja_K
- January 10, 2020
- Like
- 0
- Continue reading or reply
do we need to move customer portal from classic to Lightning in Jan 20?
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
- Parteek Goyal 3
- November 14, 2019
- Like
- 0
- Continue reading or reply
using Aura:method to call other component and passing params
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
- Ravi Sankar 12
- November 13, 2019
- Like
- 0
- Continue reading or reply
SFDX: Authorize an Org failed to run
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
- Parteek Goyal 3
- July 04, 2019
- Like
- 0
- Continue reading or reply
how to pass the record id from aura component to javascript controller on click on hyperlink
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.
- Parteek Goyal 3
- April 02, 2019
- Like
- 0
- Continue reading or reply
Issue with managed package Report type
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
- Parteek Goyal 3
- March 06, 2019
- Like
- 0
- Continue reading or reply
why we use custom component event in salesforce lightning?
Standard event like button click can do any work in lighting still we use custom components event, Please explain.
Thanks,
Parteek
- Parteek Goyal 3
- February 23, 2018
- Like
- 0
- Continue reading or reply
ViewState are showing in the visualforce page
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
- Rafael.Martins.Santos
- August 08, 2017
- Like
- 0
- Continue reading or reply
Trigger to calculate sum of value on child object
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
- sfdc_newbie17
- August 08, 2017
- Like
- 0
- Continue reading or reply
display dashboard for site users
Is there a way to display a live dashboard on force.com site page for a site user (guest user license)
- suneetha.konda
- August 08, 2017
- Like
- 0
- Continue reading or reply
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.
- Jeevan Technologies 2
- August 08, 2017
- Like
- 0
- Continue reading or reply
Hide fields for particular user
- Type 1
- Type 2
- Type 3
- Sales team
- Marketing team. etc
- Opportunity name
- Approval
- Amout etc and so on.
- Sujit Karande
- August 07, 2017
- Like
- 0
- Continue reading or reply
Force.com Site user unable to lookup records
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.
- Stefano Amenta
- August 07, 2017
- Like
- 0
- Continue reading or reply
i want to insert record xls file using email handler. Any ideas?
- Ishan.Arora
- July 20, 2017
- Like
- 2
- Continue reading or reply