Salesforce-lightning Questions
Ad
Is there any way to fetch fullnames for ProfilePasswordPolicy records using API?
Is there any way to fetch 'fullname' for profilepasswordpolicy records? i am trying to update and read records of profilepasswordpolicy but
Salesforce LWC Uncaught (in promise) TypeError: Cannot read property 'Symbol(ViewModel)' of undefined
I am getting this error when running a salesforce scratch org application; aura_proddebug.js:274 uncaught (in promise) typeerror:
Can you implement a Quick Action button from Community in Salesforce
I have an existing quick action button on an object, which i would like to display as a button for community users i have tried
force:recordData not working on Quick Actions
I'm using "quick action" on task object in order to replace an old js button. i tried to replace some ajax toll queries with "recorddata" and use
How can i resolve this MarkerCluster checkin/ checkout error (leaflet salesforce)?
The problem is that when i check out on overlay and after i check in again i receive this error: uncaught typeerror:
String search with all fields of array of objects
I have list/array of objects, it is aligned in a table. i got to implement a search functionality irrespective of any specific field. in other
How To Make Salesforce LWC work only for New Cases and Not on Existing cases
I have a requirement where lwc component is fired everytime when a case is opened,i want to change lwc component to work only for new cases,what
How to form an URL in LWC Community Page that can carry User Info?
I am forming a web app in lightning community experience builder using lwc, which already has an url that carries the domain of my org. now
Error in Salesforce flow: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY
Error detected during debug: create one opportunitylineitem record where opportunityid = {!$record.convertedopportunityid} (null)
How to use html tag in salesforce task api?
I am using jsforce for make api calls on salesforce. i
Ad
I need to run and fill Salesforce Web-to-lead form on herokuapp
I generated a web-to-lead in salesforce form, received an html file, installed a heroku cli and registered in heroku. what should i do next to run
salesforce lightning component init function call
I am trying to check something before the modal popup shows in salesforce opportunity page. when i call the doinit function the button handler
Anyone have experience with exposing Event type in Salesforce Lighting Web Component LWC for the Dynamic Interactions?
I tried to expose the event tab in the lwc. i followed this help document from salesforce:
salesforce get account id in lightning component
I have developed a lightning component modal popup to show on the opportunity page. there are two options yes and no. on condition this lightning
Salesforce image resize in LWC
I am new to salesforce development. i want to display an image in lwc in salesforce. i added the image in static resource and add the line in
How to add multiple scheduled actions in a process builder
I want to send reminders 45 days, 30 days, 21 days before the event start date. i have mentioned all those 3 in process builder. please see the
Salesforce LWC Database.setSavepoint
Javascript admitted newbie and hacker here, so i suspect this question is very ignorant and a learning experience. i'm essentially
Salesforce Tests for Org
Should every apex class have its own test class? currently dealing with tests in an org where 80% of apex tests are under
Retrieve data from Salesforce using Django
I am trying to integrate salesforce rest api with django, so for hours i have been trying to figure out the
How to access multiple salesforce orgs with same connected app
I am trying to access the multiple communities in multiple salesforce sites with same connected-app but could not. for example: i have
How can I configure fields in a custom lightning record form as an admin?
I am very new to salesforce and am currently trying to create a custom lwc for a project that has specific capabilities. i have created a
Ad
Refresh table LWC
I've been trying to rerender a table when i update an account record with a lightning-record-form. i tried looking up a solution to this with
force:hasRecordId interface doesn't provide recordId from “new” button override
I have two custom objects (let's call them house and resident). the house record page has a related list containing all related
Referance a static resource via aura:attribute
I have created a new component and i want to be able to pass an image from a static resource and a custom label via aura:attribute. this is what i
Issue deploying change set in salesforce prod - code coverage issue
Being new to salesforce i'm trying to make a prod deployment but it is failing because of code coverage issue. these are the apex classes that i
Durable Id assignment in URL not working in lightning
Problem statement: to auto-populate the lookup field i use durable id assignment with name. for e.g.
visualforce page shows uknown method error
I have 2 wrapper class as below public class wr_studennt{ public string name{get;set;} public decimal salary{get;set;}
How to break the text of long text area field in vf page
Enter image description here i have fetched the data of long
Salesforce Knowledge Article Field - Not Visible to Guest User
I am very new to salesforce, so apologies if my use of terms is not correct. i am using lightning knowledge i have enable and setup
Apex Specialist Challenge 1
I cannot resolve this error. closing a maintenance request of type 'routine maintenance' or 'repair' did not create of a new
Aura get boolean from parent to child
I am very new to salesforce. the boolean value in the parent component will be updated by clikcing a button. that is done. now i want to toggle a
Salesforce through HTTP query retrieves only Limited number of records through the JSON response
I am a java developer and building a sap hana adapter via java. i need to retrieve records from a salesforce application to populate hana tables.
Ad
How to make a Lightning Web Components?
I need to make a lightning web components with this apex class but i don't know how to pass the data to the js and the html and how to create that
How to highlight cell conditionally in aura component datatable?
I am building a lightning datatable with aura component and i am showing data in this table from external system and i want to select one or more
Pull URL via Screenflow in Salesforce
I am trying to pull the url for whatever record the user is on when they launch my screenflow. for example if they are on an account i
Salesforce Apex class to sort years and year ranges giving incorrect output
Tried writing a sort method where input was given like a string of comma-delimited years and year ranges string input = '2017,
How to Show/Hide button based on Profile in Salesforce LWC
I have develop lwc component which is normally used by normal users. in that lightning web component button is there as below.
Salesforce: Is there a way I can query my custom Commission table to return all the commissions under all contacts under a specific Account
i have a custom commission table which has a master detail relationship with contact. i have a list of accountids being passed into
SalesForce query returns results in Query Editor, but returns null from APEX code in Lightning component
I'm completely new to salesforce and have inherited a report that's not working. please excuse any incorrect terminology, since i'm learning
Trying to connect my org to salesforce cli via vs code, gettinbg the error : The REST API is not enabled for this Organization
I am starting with salesforce development but while connecting my org to salesforce cli, i am getting an error like - the rest api is not enabled
Salesforce How to update a roll-up summary field on parent table from inside method that gets triggered when child is persisted
i created a commission object with field called commission_amount__c, this object has a master detail relationship with contact.
Salesforce: Efficient way to automatically assign Lead Owner to specific User if Account or Company name is such
I am new to sf and learning things as i go. i am in a process to design automation for lead ownership assignment to specific user when
The LightningMessageChannel named boatMessageChannel was not found in the workspace
In lwc super badge challenge 2, we have to create a lightning message channel named boatmessagechannel. i tried creating it with the name
Ad
Salesforce- JS path shows null
I copied the js patch and pasted it to the console which shows that the item is null. it is the same with the other fields.
Button disable in Visual force page
On standard object (account) i have a button called sad. the button is added over there by visual force page. now my question is on account
Get all Salesforce data lead in Python
I want to get all the data of a lead object and i did this script to obtain the data of a lead and i only get an amount of 2000. what do i
Passing a class to a component in Salesforce
I'm using salesforce. if the text is more than 25 characters, i'm limiting it to 25 characters and passing it to a <p>. my
Action not visible in page layout setup
I have created an action to show a lightning component on the contact record:
Reset Lightning-record-form after creating new record
I'm new to lwc. i want to know that how can i reset the lightning-record-form after saving a record. file: contactcreator.html
how to get picklist in lightening flow based on specific record types of SObject - salesforce
My requirement - i have case object and it contains type as one filed ( it's data type is picklist). i have
To Reset Field using Visualforce page and apex
Hi i am new to visual force i wanted to learn how to reset the field in visualforce page
SalesForce Objects: Restapi visibility
Not quite sure if this has been asked. in salesforce, i can see within the object explorer and within the fields and relationships, all entries
Get refresh_token for Connected App in SalesForce
I set up a connected app, a python application to programmatically access salesforce objects on behalf of a user (offline access). the app
Make LWC Display Different Body Messages Based on Picklist
I have started the lwc below. i am attempting to clean up our rich text screen components on a lightning page. currently there are over 12
Ad
Setting Dependent Custom Lightning Picklist Level2 and Level3 then resetting the Level2 at Lightning component but Level2 Cached Data is Getting Saved
Step 1 in a salesforce lightning component i have a scenario with three levels of dependent picklists, first i am setting
How To Amend This SOQL to get All records for today After 6am
Is there a way i can customize this soql query to include all records after 6am from today? select case__c, level_1__c,
How to Write SOQL for 2 custom objects which have same fields Level_1__c, Level_2__c,Level_3__c
I have a custom object named case_type_data__c with fields level_1__c, level_2__c,level_3__c and i have another custom object
How To Report Records in Batchable Salesforce apex code such that it should report where the Level2 or Level3 are NULL
Here is my current batchable apex code,currently this batch job copies the data over from the new custom object ert_case_type__c to the old
I want to create a method to check if the Date is in 'mm/dd/yyyy' format in apex
This is the snippet i want to be the structure like this: public static boolean validatedateformat(string date1) {
How To Get Salesforce Code Coverage Report Similar to Sonarqube
Question is as we develop apex code and then we write test class which covers at least 75% code coverage of the apex class,now when i log in to
How to Write the Test class for Salesforce Apex Aura Enabled class?
Stuck in here to write a test class,please suggest a test class ,below test class which was written didn't solved the purpose
How to create CURL command for POST method for Salesforce Account Object using Salesforce Tooling API On Postman?
Hi i am able to get oauth token using below article,but i need to send post method for accounts using salesforce tooling api on postman i
What is the purpose of aura:set in the example?
<aura:iteration items="{!v.contactlist}" var="con"> <div class="slds-col slds-size_1-of-3
Button to run a flow fails when I press it twice consecutively
Below is my controller public class flowcontroller { public string flowresult {get;
Ad
Custom Salesforce Lightning App giving "You dont have access to this record"
Custom lightning app named "stack" giving "you dont have access to this record contact " trying to follow steps in
VSCode is not pushing the code and not not throwing any error
Using command - sfdx force:source:push to push an application and a component. it does not throw any error, but the
How To Implement Full Search in Case Type using Salesforce?
I need to build out a solution to create a search field on the new case type data object in all 3 of the level fields and populate based on
Task assign to multiple leads in salesforce using rest api
I am new in salesforce.below code working fine,its created task "call leadtest" sucessfully and assignd to only one lead/contact
What's the best practice to implement localization (for strings) in Salesforce's LWC?
I'm new to salesforce's lightning web components, and i'm trying to figure out what the best way to support localizing labels, messages, and other
How to use URLFOR() in Lightning web component of salesforce?
I am new to file handling in salesforce. i am currently working on downloading files of all records of a custom object. i read many blogs and
How to download all attachments of all records of a custom object in Salesforce?
I am new to file handling in salesforce. i want to grab all the files attached to all the records of a custom object. can anyone help me with
Does Lightning Web Component IF Directive support multiple conditions?
Hi i am new to lwc world & its syntax. i wanted to ask, if lwc supports multiple condition in a single statement? ex:
Lightning embed iframe from another website
I'm trying to build a simple component to display a web page inside a lightning component. this is my starting code.
vis.js Network regeneratorRuntime is not defined [regeneratorRuntime is not defined] error in Salesforce
Trying to use vis.js network library in salesforce i have tried both in lwc and in an aura component with api version 40.0 but am receiving
Salesforce - Call external API on button click and update custom field from response
So i'll start by saying i'm a c# .net/javascript developer with a lot of experience, but i have zero experience with salesforce. never ever seen
Ad
HTML is showing in the aura component
<aura:component
Switching content in LWC with radio group?
I have this radio group which should work in that if i select the top
How to write an Apex Test Class for Importing a CSV File?
Hello! i am unable to test the written apex class.. could you help me with this task? through the component, we transfer
Declaring field public vs private with public accessor lwc child component
I need to pass a parameter from the parent component to a child in lwc. is there a difference between having the field to be public vs private
No more than one executeBatch can be called from within a testmethod
How to fix below error message in test class system.unexpectedexception: no more than one executebatch can be called
How to disable options when radio/check is selected in LWC?
I'm new to salesforce lwcs and wanted some help with this. so basically i want to figure out how to disable and check off the options for all the
Salesforce Lightning - Login Failure In Staging
I'm trying to login into my staging salesforce lightning, by i get the following result: invalid_login: invalid username,
Can we use 'Apex Wire Method to Function' type more than once in js file?
When i am using two apex wire method to function type, only one wire method is responsive. i am not sure if i am doing it right.
How to create a case in a Salesforce Account using REST API and python Script
I need some help. i need to create a case in a account with all the details basically, all the fields, using rest api but it i am not able to
Error in Email Action "html body data value too large"
I am getting this error "html body data value too large" when i am replying to customer's mail which includes any table. so basically i
Lightning Web Component Specialist Super badge: Challenge 7
I am having trouble solving the challenge 7 i have the required imports as well as required functions in the js file. still #trailhead giving
Ad
Display attachment in LWC
I'm trying to display a image stored in an attachment. i have tried the following combinations and nothing seem to work: <img
Write picklist key in email template instead of display value
I'm need help how to write a leads country code in an outbound email in salesforce. i use this email for automation of an external
Case is not getting created via Email-To-Case
I have configured email-to-case and when i send an email from [email protected](for example) to the service address the case is not getting
How do i write test class for below apex code
Please help me in writing test class for below apex code,i wrote a test class which shows only 66% coverage,i am looking for 100%
What is the process for changing the "lead owner" through the salesforce API?
Currently creating an automation using zapier which should change the lead owner in salesforce when the event takes place. it successfully reaches
Is there a way to resolve Illegal conversion from List<AggregateResult> to List<String> in SForce Apex?
I am tryin gto fetch a field value and below is the code,but i am getting below error in sforce illegal conversion from
Apex (Salesforce) read json from response and store it in a string variable
I am trying to hit a api endpoint which is responding something like below when i am calling response.getbody() { "oktatoken":
Error: Compile Error: Expression must be a list type: String at line 446 column 44
I am trying validate the insurance number in salesforce , but i am getting below error insurance = insurance.replace('a','01');
What is meaning/significance of +1 in requestURI.lastIndexOf('/')+1) of Salesforce REST APEX Code
What is meaning/significance of +1 in below salesforce rest apex code @httppatch global static id
"Invalid field for upsert, must be an External Id custom or standard indexed field: Name" error
I am trying to enter unique values to the contact object. here is the code: list<contact> conlist = new list<contact>
The requested resource does not exist [error] in Salesforce. What is wrong with Salesforce?
I execute a soql request to get all available record ids of the sobject 'objectpermissions'.
Ad
How to get metadata of Salesforce Objects using Python if the object name is dynamic?
from salesforce_api import salesforce client = * connection details* desc_obj = client.sobjects.case_details__c.describe()
Salesforce Bulk Upsert throws Duplicate error
I am doing the r&d on the duplicate error scenario in sf bulk api and found that somehow i am not able to perform insert and update operation
Ad
Blog Categories
Ad