Shashank Shastri
  • Member for 7 years, 4 months
  • Last seen this week
Visual force page not rendering the ouptput
Accepted answer
2 votes

In the apex:input set the value as {!name} this will ensure any change made in the search input will be available in the apex controller. It should look like this - <apex:inputText id="oppid&...

View answer
Error while fetching Record values in Apex
2 votes

Use a Set <String> in place of List<String>. Using a set will remove all duplicate instances of the Sponsor Id (Sponsor__c) Set<string> allProsList = new Set<string>(); //List&...

View answer
Query/Use Help Text from Object Fields in Aura?
1 votes

You can access the Helptext in apex using - String helpText = SObject.FieldAPIName__c.getDescribe().getInlineHelpText(); replace sobject name and field api name with the object and field for which ...

View answer
Lead conversion automatically
Accepted answer
1 votes

You can use a trigger to convert the Lead when the status is set to converted. You can tweak the code to suit your business needs. List<Database.LeadConvert> listToConvert = new List<Database....

View answer
how to show a pinner when a lightning button is clicked?
1 votes

you should add the logic to switch the css class from 'slds-hide' to 'slds-show' var spinner = component.find("mySpinner"); $A.util.removeClass(spinner, "slds-hide"); $A.util....

View answer
Can I setup two-factor authentication for mobile only
Accepted answer
1 votes

Here's the documentation on How to set up Two Factor Authentication for Android and iOs Devices Set Up Two Factor Authentication for mobile (Android/iOs) Steps to set up Two Factor Authentication ...

View answer
Apex update trigger - updating Detail Fields
Accepted answer
1 votes

//Use it if Child Record to be updated only under certain Field update on the parent private void executeUpdated(){ List<String> locationList = new List<String>(); for (Location__c ...

View answer
@ wire returning undefined for both data and error
0 votes

I'm assuming you have the necessary imports in place. If not, import { getRecord, getFieldValue } from 'lightning/uiRecordApi'; getFieldValue is optional. And try the updated code - export default ...

View answer
Email action is not displayed in the chatter group
0 votes

Ensure the Email Deliverability is set to 'All Email' In Lightning Experience Click on the gear icon. Click Setup. Enter Deliverability on the Quick find box. Click Deliverability. Select All email ...

View answer
Images are broken while rendering through LWC in communities
0 votes

If authenticated users can vie the images and it's an issue specific to guest users only then this can be a cache issue. Clearing out the cache and reloading the community is a documented resolution ...

View answer
pass query parameters to urladdressable aura component with child lwc
0 votes

Here's a sample LWC JS to get values from URL Parameters. import { LightningElement, wire } from 'lwc'; import { CurrentPageReference } from 'lightning/navigation'; export default class ...

View answer
How will i get the Date Time once the record has been opened in salesforce? I need this value to compare with LastModifiedDate in my Lwc component?
0 votes

Include the field LastViewedDate in the SOQL. This field is blank on creation and stamped with the date when the record is viewd the first time. And upon subsequent record views updated with the most ...

View answer
how to update 2 fields of 2 different object if the condition is true in 1 workflow?
0 votes

It is not possible through one Workflow rule. For Cross-object field updates for a workflow, a change to a detail record can update a field on the related master record only. As in this case a ...

View answer