Salesforce Stack Exchange Community Digest

Top new questions this week:

Identifying Primary Keys of Data Views?

My goal is to extract each Data View to our warehouse with a rolling window (e.g, each day extract last 7 days of data using EventDate or similar fields, or just full refresh depending on the View). ...

marketing-cloud automationstudio data-views  
user avatar asked by Aaron Score of 1

Can we detect that LWC is opened from Salesforce Mobile App

I have a LWC which can be used in Lightning App from browser on desktop and in Salesforce Mobile app from iPad, And I want to dynamically show different elements in both scenarios. Is there a way to ...

lightning-web-components mobile form-factor  
user avatar asked by Vitalii Dehnerys Score of 1

How to avoid browser refresh on click of an action on hybrid cpq cart?

In Hybrid CPQ cart, we are using cpq-headers vlocity card to display various action available on the cart. On click of one of the button, I need an omniscript to execute, and need to open the ...

cpq omnistudio vlocity  
user avatar asked by prabanch nath Score of 1

Null pointer exception despite use of null safe operator

This code: String a = null; if (a?.startswith('0') && ('a' == 'a')) { System.debug('t'); } else { System.debug('f'); } produces: System.NullPointerException: Attempt to de-reference a ...

apex null-pointer  
user avatar asked by Sander de Jong Score of 1
user avatar answered by Nick C Score of 3

Greatest hits from previous weeks:

Get Hands-On with an Iterable Variable in For Loops

I am unable to complete this Trailhead Module: Get Hands-On with an Iterable Variable in For Loops, because I keep getting this error message: The constructor MyIterable should accept parameter of ...

apex constructor iterable platform-developer-1  
user avatar asked by Edward D Score of 8
user avatar answered by raditz2077 Score of 24

Authorize an org failed in VS code

I am new to learning lightning web component. I have installed VS Code, the salesforce extension pack inside VS code, Salesforce CLI I am trying to complete the Quick Start: Lightning Web Components ...

salesforcedx authorization sfdx-error  
user avatar asked by Amara Eledu Score of 2
user avatar answered by Mohith Shrivastava Score of 3

How to solve callout error on VF Page? You have uncommitted work pending. Please commit or rollback before calling out

I have written inline Vf page to update the record value. The values are coming from a web service. While updating the record the detail page redirected to VF page. But the record was committed in the ...

apex visualforce callout  
user avatar asked by uma451 Score of 24
user avatar answered by Ratan Paul Score of 24

Developer Console - Delete Multiple Records

Is there a DML or other way to delete all records from the developer console? For example, we have 100K Leads in our testing environment and we would like to delete all of them in one operation. Is ...

apex  
user avatar asked by Uri Lukach Score of 22
user avatar answered by Phil Rymek Score of 25

Component conversion failed: This directory does not contain a valid Salesforce DX project

in VS code, while trying to deploy source to org, getting a weird error below: Component conversion failed: This directory does not contain a valid Salesforce DX project. But I do have sfdx-project....

salesforcedx-cli vs-code  
user avatar asked by Yogi Score of 14
user avatar answered by uaggati Score of 8

How to query NOT LIKE?

the soql in the following code is failing. The error message is: "Compile failure on line 6, column 5: Unexpected token '<'." Map<Id, String> profileIds = new Map<Id, String>(); ...

soql  
user avatar asked by Dev Arya Score of 33
user avatar answered by Adrian Larson Score of 54

Is it possible to run a SOQL Query and get a Map returned?

It is possible to run query and the results inserted into an Apex list: List<Opportunity> opportunities = [SELECT Opportunity.OwnerId, Opportunity....

apex soql map  
user avatar asked by dublintech Score of 130
user avatar answered by Sergej Utko Score of 196
You're receiving this message because you subscribed to the Salesforce community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 14 Wall Street, 20th Floor, New York, NY 10005

<3