32 questions
1
vote
1
answer
72
views
CG Cloud on scratch org: can’t create External Client App, Connected App pairing fails
I have an Enterprise org and I created a scratch org from it to set up Consumer Goods Cloud.
Setup docs say “Create an External Client App”, but when I try that in the scratch org I get:
“The Org ...
2
votes
1
answer
293
views
Get Object storage size and File Storage size in apex/ api In Salesforce?
How to get detailed object storage size (KB/MB/GB) in Apex or via API?
I want to retrieve the detailed storage usage (in KB/MB/GB) for each object (both standard and custom) in Salesforce using Apex ...
1
vote
0
answers
98
views
Need to capture the value from a specific field on the standard record edit page in real-time, before the Save button is clicked on Salesforce
I need to capture the value from a specific field on the standard record edit page in real-time, before the Save button is clicked, validate it, and then display the corresponding alert in the custom ...
0
votes
1
answer
62
views
Trying to unformatted phone number from (999) 777-8888 this to this 9997778888 format
My apex code below extracts phone number from Subject field in the Case object. The thing is that I can't compare with Account Phone field because Phone field is only numbers just like this 9998887777....
0
votes
1
answer
629
views
Add a value to a standard picklist field in salesforce
Using rest API, how to add new value to picklist for standard field without changing existing values.
How do I use the rest API to add a new picklist value to a standard field that already has many ...
-1
votes
1
answer
157
views
Salesforce first generation package post install script
I have a custom setting called TestCustomSetting__c with a checkbox field named TestCheckbox__c, which is initially set to unchecked by default. After installation, if a user checks this checkbox (i.e....
0
votes
1
answer
671
views
Sending JSON from Postman to Salesforce ([{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}])
I'm trying to send a JSON string from Postman to Salesforce
But I get this Error message [{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID&...
1
vote
1
answer
2k
views
Using the Salesforce REST API, is there a way to create a user and also send out the activation email?
In Salesforce, when I create a user via their REST API, no activation email is sent. There's also no ability to specify a password when the new user is created, which means the user cannot login. This ...
5
votes
6
answers
21k
views
Getting an "Only absolute URLs" error while trying to open Salesforce org with sfdx:open in VS Code
Warning: Deprecated environment variable: SFDX_JSON_TO_STDOUT. Please use SF_JSON_TO_STDOUT instead.
(Use node --trace-warnings ... to show where the warning was created)
Warning: The "force org ...
0
votes
1
answer
444
views
Trigger Handler not throwing errors or reading SOQL query correctly
When the trigger is called, I'm looking to pass the Trigger.new list into the ContactTriggerHandler class, and then filter on that list to be a certain record type and associated with an Account ...
0
votes
1
answer
269
views
Receiving sObject error: Error message does not fire and receiving a System error instead
Created a Contact Trigger and a ContactTriggerHandler class to produce an error if the Contact is related to a relationship that contains 'Pricing Letters' and any item in the Address or Email Address ...
0
votes
1
answer
1k
views
Calculate case age in salesforce org
How to calculate case age? Excluding weekends and Holidays?
if case is close calculate till close date or if case is open calculate till today.
it would be great if anyone will help me with step by ...
-1
votes
2
answers
454
views
Is it possible to only use CSS to hide/show events in Salesforce B2C Commerce Cloud
I am a Salesforce Commerce Cloud practitioner. Here I am trying to create a anchor tag which when clicked hide/show certain part of the page.
For example:-
If we want to show/hide the enter promo code ...
0
votes
2
answers
2k
views
In LWC JavaScript controller splice method not working with @api variable which is an array
In console this.unselectedPlayerList.length is not shown, It will shown before using splice method. So I have doubt in splice method.
export default class MakeYourTeamChild extends LightningElement {
...
0
votes
1
answer
907
views
Salesforce Einstein ChatBot
can anyone help how we can integrate a chatbot in a collaborative way?
Ex- we need to create an einstein chatbot in salesforce, we are two developers one developer working on another chatbot change ...
0
votes
0
answers
432
views
I am building a WebApp that authenticates with salesforce using a connected app
I am building a WebApp that authenticates with salesforce using a connected app. Currently while developing my WebApp, I have created a connected app in developer edition and using those connected app ...
0
votes
2
answers
6k
views
Salesforce Aura Component - getting current v.recordId for Flow variable
I am fairly new to Aura Component and Javascript so I do apologize for my wording if you find it inaccurate.
In my previous question I was able to know how I can grab the current recordID and pass it ...
0
votes
2
answers
343
views
i am trying to execute percentage of marks using abstract class in salesforce and i got below error
public class StudentA extends marks \\child class
{
public double maths;
public double chemistry;
public double physics;
double percentage;
public StudentA(integer maths, integer ...
0
votes
1
answer
58
views
Salsforce and Plivo integration for making outbound calls
I want to integrate salesforce with plivo for making outbound calls from salesforce. I just followed the Plivo api documentation for doing this. But the Plivo api response is showing Status=...
0
votes
1
answer
949
views
Salesforce Code Coverage Failure. Your code coverage is 12%. You need at least 75% coverage to complete this deployment
I wanted to deploy my code to production. In this apex code, I am calling a third party api for opportunity on click of button which triggers the doSomething() from VF page. I want to fix this issue ...
0
votes
2
answers
444
views
Have any one Worked on The fillable pdf in sales force
hi I am working on the fillable pdf in Salesforce, i have uploaded the pdf in the static resource in Salesforce , now need to handle the data to fill in it and download the file , can any suggestions ...
0
votes
2
answers
3k
views
sfdx force:apex:test:run include coverage for only those tests included in the sfdx command
I have an org that has approx 530 test classes .I am currently working on a nodejs project that uses the sfdx commands to run the tests in the org and then generate code coverage report, analyze and ...
0
votes
2
answers
346
views
Invocablemethod Apex Class Rollup Multiple Currency Fields
I'm writing an invocablemethod batch apex class to rollup multiple currency fields on an "Order Package" object to its parent object of "Order Location". I thought I got everything ...
-2
votes
1
answer
41
views
View account and contact details
I've added a new field named Total to Account:
How to view the Total field and the contacts associated with an account?
Searching for "Account":
does not yield the account page.
1
vote
2
answers
2k
views
Custom field is not found
I'm attempting to self learn Salesforce and want to add a custom field to an Account.
To achieve this I've done the following:
I've added the Total custom field to Account:
Here is the trigger:
...
0
votes
1
answer
446
views
Invocablemethod Not Creating Records in Apex Class
I'm pretty new to writing Apex but everything does seem to be running smoothly separately in an executable window when I split apart the class I created below, but when I'm running this from within a ...
0
votes
1
answer
3k
views
Apex Test Class for Invocablemethods
I'm brand new to writing apex and especially test classes in apex. I can’t seem to find out how to properly call my class method in my test class it seems like. My test class is definitely not ...
0
votes
1
answer
1k
views
Accessing CustomFieldDefinition metadata via tooling api
So, I've been attempting to gather picklist dependencies per Opportunity record type for my lightning components. I have been able to retrieve Standard Field dependencies by RecordType, but it the ...
0
votes
1
answer
995
views
what is the rate limit by SFCC/Demandware for OCAPIs?
Anyone here has any idea about what is the rate limit setup by SFCC/Demandware for OCAPIs. I am using OCAPIs(v19.10) with Oauth client having grant_types as Business Manager.
(urn:demandware:params:...
0
votes
1
answer
1k
views
Salesforce: SObject row was retrieved via SOQL without querying the requested field
I'm working on an application that creates and save invoices on salesforce cloud but when i try to create a transaction i get the following error
"SObject row was retrieved via SOQL without querying ...
2
votes
1
answer
149
views
Does not accept a WITH clause - Salesforce
When using below SOQL query in Salesforce for working with "WITH filteringExpression" referred from https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/...
3
votes
0
answers
597
views
Possible values in Salesforce Setup Audit Trail action column
Can anyone help us to figure out to identify the possible values of action column of SetupAuditTrail table in salesforce. Do we have any table which stores all action?
ex: "changedManager", "...