Questions tagged [basics]
The basics tag has no usage guidance.
14
questions
2
votes
1
answer
463
views
How to Navigate to particular folder of Report with Navigation button in LWC
I am trying to navigate the Custom folder (Name: Account Report) of the report with the lightning button in LWC.
I am able to Navigate the home of a report by the following code. But I want to ...
0
votes
1
answer
103
views
Can someone help me with this one ? Why I am getting Output Twice
This is how my trigger looks:
trigger problem5 on Contact (after update)
{
if(Trigger.isAfter)
{
id currentID ;
if(Trigger.isupdate)
{
double ...
1
vote
1
answer
3k
views
Can we select server location of salesforce?
Is it possible for us to select specific location of Salesforce Sales cloud while purchase ?
i.e. : Server should be at Ohio.
-1
votes
1
answer
173
views
Salesforce Integration with Oracle
I need to Integrate Salesforce with Oracle Platform (Create Account in Salesforce when its created in Oracle platform). I researched and understood that It could be done by API Callout methods.
Could ...
0
votes
2
answers
2k
views
How can I count number of " !=null " fields on a record?
My question is about challenge when Opportunity is created specific fields must be populated. How can I count the fields which are not null from specific fields?
integer counter;
integer oppValue;
...
0
votes
1
answer
115
views
System.NullPointerException Question (Basic)
I am new in coding. Currently, working on a nullpointerexception challenge on Apex.
Error:
WarrantySummary: execution of BeforeInsert caused by: System.NullPointerException: Attempt to de-reference ...
2
votes
2
answers
1k
views
Spot the Difference: Can't complete challenge with my code. Platform Events Basics
This is the challenge:
Subscribe to a Platform Event in an Apex Trigger
Your Salesforce app uses a trigger to listen to events. Once your app receives the notification from the order system ...
0
votes
1
answer
28
views
updating info on a custom setting from a response body, getting uncommitted work pending error
I am getting this error because I am upserting a custom setting after each callout. What approach should I take to not have this issue?
The code below is a class with my @future callout method that I ...
9
votes
2
answers
3k
views
What is the $A object in lightning?
I'm starting to learn Lightning development. In the JS controller, out of curiosity, what exactly is the $A object?
I see it is used in the context of $A.enqueueAction(...), $A.getCallback(), and $A....
3
votes
1
answer
3k
views
Simple JavaScript Not Working On Visualforce Page
Why does this javascript not work on my page? It works perfect in JSFiddle. I can see that the console is returning bananas. But I get no .innerHTML change what so ever. Any insight?
<script>
...
1
vote
2
answers
2k
views
Upsert from a trigger? [duplicate]
I want to update records before insert if there is a match on a lookupkey rather than inserting a new record. I have viewed the related question but do not understand how to get the trigger list to ...
2
votes
2
answers
176
views
Is it possible to use SOQL to query a list that was created in a trigger
Does a SOQL query have to access the database, or can it be used to search through a list (or map)?
I think lists are easier to visualize, so I would have made a list in a FOR loop for each object ...
-3
votes
2
answers
1k
views
How to write a apex trigger before insert a data [closed]
How to write a apex trigger before,after insert a data!
I am new to salesforce i want to know about apex trigger can any one give some guideness
2
votes
3
answers
4k
views
How to rename a trigger?
Does anyone know how to rename an Apex class or trigger in Salesforce?
When I try to refactor it in the Force.com IDE, it tells me that renaming isn't supported via the IDE. In the wiki it says:
...