Aura, Lightning's runtime, has a "life cycle" that every event goes through. Everything in Aura starts with an event being fired, some controller handling that event, data propagating through any changed attributes, and finally a rendering phase to update the DOM. However, in JavaScript, we're allowed to do things…
Salesforce
Answered Mar 2, 2023
·
877 Views
Read answer →
After some analysis we went for this solution to invoke Salesforce web service: Created a process flow which triggers on update of an opportunity record Check if a certain value is met on the opportunity objectTrigger apex class public with sharing class WS { private static final String esbURL = 'endpointurl here';…
Salesforce
Answered Mar 1, 2023
·
734 Views
Read answer →
After building my regex for email on https://regex101.com/.. I managed to come up with a single line regex that helped me. This might not cover all email cases but it does for all my tests. NOT( REGEX( CS_Email_List__c , '([a-z0-9_-]+@[a-z0-9_-]+.[a-z0-9_-]+(;{1}[a-z0-9_-]+@[a-z0-9_-]+.[a-z0-9_-]+)+)*' ) )
Salesforce
Answered Mar 1, 2023
·
523 Views
Read answer →
To refactor components and communicate with events: component.set("v.newItem", " {'sobjectType':'Camping_Item__c','Name':'',Quantity__c': 0,'Price__c': 0}");
Salesforce
Answered Feb 27, 2023
·
557 Views
Read answer →
You can use the str.contains method for is in python code using a regex pattern: import pandas as pd L1 = ["a", "b", "c"] df = pd.DataFrame({ "column1": ["a", "c", "a, d", "brp"] }) # use the '|' character to check if the strings contains any of the characters in L1 df[df["column1"].str.contains("|".join(L1))]
Data Science
Answered Feb 15, 2023
·
693 Views
Read answer →
R IDE - R-Brain IDE (RIDE) for R & Python, Other Data Science R IDEs, Other Data Science Python IDEs. Flexible layout. Multiple language support. Jupyter notebook - The Jupyter Notebook App is a server-client application that allows editing and running notebook documents via a web browser. The Jupyter Notebook App can…
Data Science
Answered Feb 10, 2023
·
812 Views
Read answer →
Depending on the situation, if possible I usually use the following method for my DML error handling. public static void dmlErrorHandling(List srList, List contactList, String additionalMessage) { List successIds = new List(); for (Database.SaveResult sr : srList) { if (sr.isSuccess()) { successIds.add(sr.getId()); }…
Salesforce
Answered Feb 9, 2023
·
1.4K Views
Read answer →
Database.QueryLocator : when used the governor limit for the total number of records retrieved by SOQL queries is bypassed. For example, a batch Apex job for the Account object can return a QueryLocator for all account records (up to 50 million records) in an org. Another example is a sharing recalculation for the…
Salesforce
Answered Feb 9, 2023
·
1.5K Views
Read answer →
For Salesforce-Jira integration. We can use the below code to get the JSON response from Jira REST URL HttpRequest req = new HttpRequest(); req.setEndpoint(); req.setMethod('GET'); // POST if you want to post data to Jira HttpResponse res = http.send(req); Refer here…
Salesforce
Answered Feb 9, 2023
·
523 Views
Read answer →
Regarding test brand cloud exact keyword second: In the HTML I included the following code which specifies the 2 different subject lines. %%[ SET @firstName = [firstName] SET @Subject1 = Concat(v(@firstName),", Don't miss out on these offers") SET @Subject2 = "You have no first name " ]%% Then in the A/B split test -…
Salesforce
Answered Feb 7, 2023
·
549 Views
Read answer →
To resolve the error: SQL state 42601- You could make something like this But a Limit without an ORDER BY makes no sense, so you must choose one that gets you the correct 10 rows UPDATE rss_sub_source t1 SET t1.sub_url = SUBSTRING(t1.sub_url, 1, CHAR_LENGTH(t1.sub_url) - 1) FROM (SELECT id FROM rss_sub_source WHERE…
SQL Server
Answered Feb 7, 2023
·
1.3K Views
Read answer →
If SQL Server Agent won’t start, Check if the service is running. If not you can start the service using one of these alternatives: services.msc net start SQLSERVERAGENT Using SQL Server Configuration Manager Windows service manager start SQL Agent service (automatic) If the service is running, you can try this:…
SQL Server
Answered Jan 31, 2023
·
1.2K Views
Read answer →