+ Start a Discussion
Harshith C ASCHarshith C ASC 
Hi, I'm new to SF...while I'm practicing on playground i came across a doubt that when i try to apply CSS props for id it won't work...it only work for classes? I need to know about it.
<p id="demo"> Hello </p>
<p class="abc"> world </p>

i wanna apply Css props for Hello now.. How do i do it?
Best Answer chosen by Harshith C ASC
ANUTEJANUTEJ (Salesforce Developers) 
Sorry, Harshith as mentioned in documentation https://developer.salesforce.com/docs/component-library/documentation/en/lwc/create_components_css there is "No support for ID selectors in CSS. Make sure that id values are unique within your HTML template. When the template is rendered, id values may be transformed into globally unique values. If you use an ID selector in CSS, it won’t match the transformed ID." I hope this addresses your question.
Rakesh M 20Rakesh M 20 
@RestResource(urlMapping='/v1/BookDetails/')
global class bookManager 
{
@httpGet
global static Book__c doGetBook()
{
    Book__c book = new Book__c();
    Map<String,String> paramsMap = RestContext.request.params;
    String bookId = paramsMap.get('Id');
    book = [select Id, Name, Price__c from Book__c where Id IN =: bookId]; // getting sytax error in this line
    return book;
}
}
Best Answer chosen by Rakesh M 20
Andrew GAndrew G
your have both equals (=) and IN in your SELECT statement.  Need one or the other
so try:
book = [select Id, Name, Price__c from Book__c where Id = : bookId];

regards
Andrew​​​​​​​
Jan SchneiderJan Schneider 
Hello, I am having a problem with the always on edge premium apk app. After the download of this app is completed, I get an error message when installing it "app not installed".
Is there a way to fix this problem?
Best Answer chosen by Jan Schneider
SwethaSwetha (Salesforce Developers) 
HI Jan,
This question appears to be off-topic, as it appears to be related to an Android app and not Salesforce's. Salesforce developers Forum is geared towards programming troubleshooting and support.

You might want to reach out on the app's forum for better visibility and inputs.

If this information helps, please mark the answer as best.Thank you
John PatinkinJohn Patinkin 

Hi,
I created two roll-up fields under Account (let's call them: var1 and var2).

These are the details for both of them:

Data Type: Roll-Up Summary
Summary Type: COUNT
Summarized Object: Opportunity  
Filter Criteria: Closed EQUALS True


When I check it in corresponding page layout, I get different results:

var1: 42,055

var2: 56,252

Why is there a different and how can I fix it?

Any help appreciated,

Thanks,

John.

Best Answer chosen by John Patinkin
VinayVinay (Salesforce Developers) 
Hi John,

Calculating roll-up summary field values can take up to 30 minutes, depending on the number of records affected and other factors.

Check below references.

https://help.salesforce.com/articleView?id=fields_about_roll_up_summary_fields.htm&type=5
https://salesforce.stackexchange.com/questions/138856/how-are-roll-up-summary-fields-calculated-in-the-database

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Michael MMichael M 
Hello, I would like to set up an apex trigger after a ListEmail is sent. However, i am seeing that ListEmail object is not a choice in the list of trigger objects. There is only "ListEmailChangeEvent". I am not familiar with that trigger. What would be an example of how I could use the ListEmailChangeEvent object trigger to fire after a ListEmail is sent?
Best Answer chosen by Michael M
VinayVinay (Salesforce Developers) 
Hi Michael,

Mass email actions do not invoke triggers,  check below reference for same.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_ignoring_operations.htm

An alternate approach would be try to use scheduled apex for operations around list emails.

Hope this helps...

Thanks,
Best Answer chosen by Vijaya Lakshmi 187
ShirishaShirisha (Salesforce Developers) 
Hi Vijaya,

Greetings!

You can monitor your org’s API usage and limits, you can use these resources:
The API Usage section of the System Overview page in Setup.
The API Requests, Last 24 Hours item in the Organization Detail section of the System Overview page in Setup.
The API Request Limit per Month usage-based entitlement, which shows you your org’s API calls aggregated over 30 days. This can be found on the Company Information page in Setup.
Information returned in the Sforce-Limit-Info response header for REST APIs.
Information returned in the response body (in <type>API REQUESTS</type>) for SOAP APIs.
The /limits call in the Lightning Platform REST API.

You can get temporary increase on API limits for 2 weeks.Please refer this article (https://help.salesforce.com/articleView?id=000315571&type=1&mode=1) for more information.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
 
Gold SteinGold Stein 
Can we add States to the Existing Country using Metadata Api
Am trying to get all Countries(AddressSettings) Using Metadata APi and wants add some new states to the one of the existing countries using Metadataservice .but its showing Invalid iso code ARA for state Allier in country France.
Best Answer chosen by Gold Stein
ShirishaShirisha (Salesforce Developers) 
Hi,

Greetings!

Unfortunately,you can't add/create the new States or Country values using Metadata API as suggested here (https://help.salesforce.com/apex/HTViewHelpDoc?id=admin_state_country_picklists_api.htm#:~:text=You%20can%20use%20the%20Metadata,picklists%20in%20your%20sandbox%20org.).

However,you can only edit the existing States/countries as suggested in the above document.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
VRKVRK 
HI 
Email Tab under Activity is Missing in Sandbox, its available in Production.
I tried in add in Edit Lighting Record pages, But i can't .
This issue appears recently....
Any one idea how to fix this ?

User-added image
Best Answer chosen by VRK
VinayVinay (Salesforce Developers) 
Check if email deliverability is set to 'All email' in your sandbox.

Check below references:
https://help.salesforce.com/articleView?id=000331369&type=1&mode=1
https://trailblazers.salesforce.com/answers?id=9063A000000eEyHQAU
https://help.salesforce.com/articleView?id=000316620&type=1&mode=1

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Sanjay92062Sanjay92062 
Hi,
I have a custom object with two record types. Now i am trying to redirect Visualforce page for one record type.
 Below is my controller code  :
 
public PageReference CaseRedirect() {
       
        	PageReference newPage;
          
            if(m.RecordTypeId =='0000111111'){
                  newPage = new PageReference('/apex/MPage');
                  newPage.getParameters().put('nooverride', '2');
                 return newPage;
                }
        else{
            PageReference pageRef2 = new PageReference('https://test.com/new?count=5&nooverride=1&recordTypeId=00002222');
            return pageRef2;
        }
       
}
Else Condition working as expected, but whenever i selected corrected record type it shows :
Cyclical server-side forwards detected: /apex/MPage
From internet,i added,
newPage.getParameters().put('nooverride', '2');
as well.But i am facing same issue.

Please help me.
Thank you.

 
Best Answer chosen by Sanjay92062
Sanjay92062Sanjay92062
I fixed the above error by creating the different vs page and calling the controller redirect method from there. So it working as expected.
Sowjanya Hegde 13Sowjanya Hegde 13 
Autoclose the omnichannel chat window in chat transcript object when the chat is done, that is when the user on the other end close the chat window or when they say bye or Thank you. How to write the trigger for this automation. Please help!
Best Answer chosen by Sowjanya Hegde 13
VinayVinay (Salesforce Developers) 
Hi Sowjanya,

I don't think this can be done based on chat like bye and thank you.  However use 'lightning:conversationChatEnded' for closest possible way.

Below are references along with example.

https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_events_liveagent_conversationchatended.htm
https://www.infallibletechie.com/2020/07/how-to-close-chat-tab-when-conversation.html

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,