-
Metodologie di programmazione: TDD Test Driven Development (Programmazione / Sviluppo guidata dai test)
In informatica, nello sviluppo software, il test-driven development (abbreviato in TDD), in italiano sviluppo guidato dai test[1] o sviluppo guidato dalle verifiche è un modello di sviluppo del software che prevede che la stesura dei test automatici avvenga prima di quella del software che deve essere sottoposto a test, e che lo sviluppo del software […]
-
Salesforce Visualstudio SFDX terminal command
sfdx force:org:open -u [aliasName] (use for open org) sfdx force:source:push -f -u [aliasName] (use for deploy in org) sfdx force:source:deploy -p “force-app/main” -u [aliasName] (use for deploy in org entire project) sfdx force:source:deploy -p “C:\…\[project folder]\force-app\main\…[metadata]” -u [aliasName] (use for deploy in org of single file metadata) sfdx force:source:retrieve -m Flow:[apiname flow] -u [aliasName] sfdx […]
-
Pula – Camping Flumendosa
Non sempre è possibile vivere solo esperienze positive. Qualche volta servono anche le negative. Siamo a venerdì sera e decido appena staccato di lavorare, di prendere la roulotte e passare due giorni vicino a casa, ma al mare. Guardo in rete e chiamo a 30km di distanza al Camping Flumendosa di Pula. Mi rispondono gentilmente […]
-
Footer on Lightning Web Component
Practical example of how to build a footer in Lightning Web Component and inserting a call to action within it
-
Tab for LWC in Salesforce
How Make a new Tab for LWC Lightining Web Component in Salesforce? Lightning Web Components uses core Web Components standards and provides only what’s necessary to perform well in browsers supported by Salesforce. Because it’s built on code that runs natively in browsers, Lightning Web Components is lightweight and delivers exceptional performance. Most of the […]
-
Salesforce Refresh LWC on Aura Component
How refresh Lighting Web Component (LWC) child of Aura Component for example
-
Salesforce come fare a:
Come fare a testare un LWC / Lighting Web Component https://trailhead.salesforce.com/en/content/learn/modules/test-lightning-web-components https://trailhead.salesforce.com/en/content/learn/modules/test-lightning-web-components/write-a-jest-test-for-wire-service Ai link di sopra è possibile avere passo per passo la documentazione di come testare anche un LWC Come connettere un’applicazione https://trailhead.salesforce.com/en/content/learn/modules/connected-app-basics In questa documentazione troviamo come connettere un’applicazione, come eseguire delle integrazioni. Autenticazioni SAML, OpenID Come creare una classe apex da riga […]
-
Salesforce note per lo studio della certificazione
In questo post alcuni link utili per la certificazione e riguardano quiz, preparazione ad esami e documentazione di argomenti trattati in esame.
-
Salesforce invio email notifica da trigger
Per inviare una notifica via email ad uno user in caso di insert o update da trigger
-
Salesforce LWC Lighting Web Component Interactive Apex Controller
Visit url https://trailhead.salesforce.com/content/learn/modules/lwc-for-visualforce-developers/work-with-salesforce-data-in-lwc?trail_id=build-lightning-web-components
-
Ignore List Throubleshooting LWC
Ignore List lets you ignore selected JavaScript files when using DevTools, so that you only pause on your own exceptions. This allows you to ignore framework code that you don’t want to troubleshoot. In Settings, click Ignore List. Click Add pattern. Enter /aura_prod.*.js$ and then click Add. Click Add pattern. Enter /components/.*.js$ and then click […]
-
Salesforce select crontrigger
select CronTriggerId, CronTrigger.CronJobDetail.Name, CronTrigger.CronExpression, CronTrigger.NextFireTime, CronTrigger.PreviousFireTime, CronTrigger.StartTime, CronTrigger.State, ApexClass.Name, ApexClass.Namespaceprefix, Id, JobItemsProcessed, JobType, Status, NumberOfErrors, MethodName from CronTrigger where JobType in ('ScheduledApex')
-
Salesforce Schedule Batch
This script helps you to schedule/deschedule current Apex Batch Jobs String NameOfBatch = 'Name Of Batch'; Set<String> existingJobNames = new Set<String>(); List<CronTrigger> existingScheds = [SELECT Id, CronJobDetail.Name FROM CronTrigger WHERE CronJobDetail.JobType = '7']; for (CronTrigger ct : existingScheds) { existingJobNames.add(ct.CronJobDetail.Name); } if (!existingJobNames.contains(NameOfBatch)){ NameOfBatch_Sch b = new NameOfBatch_Sch(); String sch_b = '0 0 9 ? […]
-
How to convert changes set to Package.xml?
it happens that in the moment of migration there are some inconveniences with the production. To work around this problem, it is better to migrate with a defined package.xml. We can start from the change set. I’ll explain how
-
How pass record id from quick action to lwc
Do you need to create a quick action that passes the record id to a Lightning Web Component? This note might be useful to you.
-
How to recover a user having his Salesforce license available
To retrieve a license user can refer to this SOQL code
-
How to create a validation rules for profiles
This is a practical example that I had to implement for the realization of a validation rules valid for a system administration profile
-
DevOps Definition
DevOps is a set of practices that combines software development (Dev) and IT operations (Ops). It aims to shorten the systems development life cycle and provide continuous delivery with high software quality.
-
Continuous delivery definition
Continuous delivery (CD) is a software engineering approach in which teams produce software in short cycles, ensuring that the software can be reliably released at any time and, when releasing the software, without doing so manually
-
ITIL Definition
ITIL (formerly Information Technology Infrastructure Library) is a set of detailed practices for IT activities such as IT service management (ITSM) and IT asset management (ITAM) that focus on aligning IT services with the needs of business.
-
ERM Enterprise release management
Enterprise release management (ERM) is a multi-disciplinary IT governance framework for managing software delivery and software change across multiple departments in a large organization.
-
Release management Definition
Release management is a relatively new but rapidly growing discipline within software engineering. As software systems, software development processes, and resources become more distributed, they invariably become more specialized and complex.
-
Salesforce Chenge Filter Serch All Result in Lookup
Customize Search Layouts From Setup, in the Quick Find box, type Search Layouts. Select the layouts for the object you want to customize. From the objects search layouts list, edit the specific layout you want to customize. Save your changes. Filter Search Results From Setup, in the Quick Find box, type Search Layouts. Select the layouts for […]
-
Salesforce change field view on list view recently
For most list views, your users can select which fields to display and how to order the view columns. However, they can’t edit the recent records quick list on object home pages.
-
Remove Default Record Type From Chatter Profile
Remove from Chatter External User Chatter Free User Chatter Moderator User To remove record type in Chatter Free and Chatter Moderate User, it’s not that straight forward because there is no Object Settings in Profile Overview. You need to hack URL. Use this format to generate a URL to access Object Settings in a profile: https://[your org].salesforce.com/setup/ui/profilerecordtypeedit.jsp?id=[Profile ID]&tid=[Object TID]&pn=[Profile […]
-
How clone page layout on Salesforce
When you create a new page layout, you get the option to use an existing layout
-
How Clone RecordType on Salesforce
Just create a new Record Type and choose an existing one. Rename it like you want. Show Less
-
Salesforce WSDL malformed
SummaryGenerated WSDL for Apex web services does not contain some type definitions after API version 33.0. Repro1) Create a new web service class as below: global class MyWebService {webService static Id makeContact(String lastName, Account a) {Contact c = new Contact(lastName = ‘Weissman’, AccountId = a.Id);insert c;return c.id;}} 2) Go to Setup > Develop > Apex Class and […]
-
Salesforce Integration Tutorial Creating a SOAP Web Service in Apex
As you can see above, we have a method named as:- getContactIdAndNames() which is called when we make a get request to this API. Inside this method, we’re getting the contactLimit i.e. the number of contacts to be queried as a URL parameter and we’re returning a list of contacts in the response. Creating a custom SOAP API Now, […]
-
Salesforce soapui connection
Download soapui software Open soapui New Project 4. Login You’ll see an xml request shown on the right side with 4 fields that we can fill up namely:- organizationId, portalId in the header and username, password in the body. We don’t need to fill organization id and we don’t have a customer portal too so you can simply remove the question marks […]
-
Salesforce Aura Get Field from Dom
Other than with aura: id we can retrieve an element from the Dom (example a field of a form) in this other way
-
How Generate Unique Id (15 digit) for Salesforce
Blob b = Crypto.GenerateAESKey(128); String h = EncodingUtil.ConvertTohex(b); String guid = h.SubString(0,8)+ h.SubString(8,12) + h.SubString(12,15); system.debug(guid); Other Example
-
default recordtype for profile
Solution A: https://salesforce.stackexchange.com/questions/2202/changing-default-record-type-for-all-profiles Solution B https://developer.salesforce.com/forums/?id=906F0000000AgKFIA0
-
Generated Package XML from org
To generate a package of the entire Salesforce org you can use the link below Use https://packagebuilder.herokuapp.com/ Package.xml example (autogenerated) After generate package.xml you retrive all metadata Example minimal and puntual package.xml
-
Massive upload record into custom metadata type
Open your VSCODE IDE and create a project (If you already have project created on your vscode skip this step) Authorize your org Now fetch the Custom Metadata Type definition from your Salesforce org to your local machine. Click on icon Retrieve Source From Org on ‘Custom Object’. Prepare your .csv file and store in your project […]
-
DUPLICATE_VALUE, SetupOwnerId custom setting
A type of custom setting that uses a built-in hierarchical logic that lets you “personalize” settings for specific profiles or users. The hierarchy logic checks the organization, profile, and user settings for the current user and returns the most specific, or “lowest,” value. In the hierarchy, settings for an organization are overridden by profile settings, […]
-
SOQL to find All Users with a Custom Permission
Trova l’id di un dato custom permission in base al suo name Trova gli utenti con un certo custom permission settato
-
Apex Cast String to Boolean
Boolean a = false; if(String.isNotBlank(params.get(‘b’))){ a = Boolean.valueOf(params.get(‘b’)); [METODO 1] a = (Boolean) JSON.deserialize(params.get(‘b’), Boolean.class); [METODO 2] }
-
LWC: Funzioni base
Trailhead Qui dentro trovi informazioni su: @api @wire createRecordupdateRecorddeleteRecord Incapsulamento dei component o gerarchia Trailhead LWC: Eventi Trailhead
-
Salesforce LWC Example
Alcuni esempi di codici per LWC Binding Variabili import { LightningElement } from ‘lwc’; export default class App extends LightningElement { name = ‘Electra X4’; description = ‘A sweet bike built for comfort.’; category = ‘Mountain’; material = ‘Steel’; price = ‘$2,700’; pictureUrl = ‘https://s3-us-west-1.amazonaws.com/sfdc-demo/ebikes/electrax4.jpg’; ready = false; connectedCallback() { setTimeout(() => { this.ready = […]
-
Appunti creazione Lightning Aura Component in Salesforce
Questi appunti sono presi durante lo studio di Salesforce Aura Specialist Challenge 2 Classi Apex che interaggiscono con il component public with sharing class BoatSearchFormController { @AuraEnabled public static List getBoatTypes() { return [SELECT Id, Name from BoatType__c ORDER BY Name]; } } Da notare la presenza di @AuraEnabled questa classe restituisce dei dati presi […]
-
Salesforce Big Object
Trailhead Punti chiave dei Big Object An index must include at least one custom field and can have up to five custom fields total. Custom fields included in the index must be marked as required. Long Text Area fields can’t be included in the index. The total number of characters across all text fields in […]
-
Salesforce Best Practices Cache
Maggiori approfondimenti al link Sempre allo stesso link troviamo informazioni anche sul recupero dati dalla cache in una pagina visualforce
-
Apex Salesforce Creare un Time (Ora)
Time myTime = Time.newInstance(3, 3, 3, 0); Risultato: 14:22:17:002 USER_DEBUG [2]|DEBUG|Time 03:03:03.000Z
-
Ripristino tastiera impazzita
Risolvere il problema è semplicissimo, basta cliccare contemporaneamente due pulsanti, Shift e Alt di sinistra. In questo modo la lingua della tastiera verrà cambiata da inglese a italiana e viceversa. Spesso questo problema si verifica proprio perché vengono premuti quei due tasti fatali.
-
Salesforce info object attraverso Workbench
Per recuperare le info degli oggetti nel data model di Salesforce è possibile usare anche Workbench come segue Aggiornare il record di un oggetto con Workbench Esempio update record con WorkBench Clonare un record con workbench Oltre all’update di un record, possiamo usare workbench anche per creare o clonare un record Api Workbech clonazione record […]
-
How to Create GDPR Consent Form
Tomfoolery crikey bits and bobs brilliant bamboozled down the pub amongst brolly hanky panky, cack bonnet arse over tit burke bugger all mate bodge fanny around butty, Richard spiffing a load of old tosh porkies hunky-dory ruddy dropped a clanger. Plastered it’s all gone to pot I brilliant young delinquent excuse my French what a […]
-
How to create a knowledge base website with Docly
Tomfoolery crikey bits and bobs brilliant bamboozled down the pub amongst brolly hanky panky, cack bonnet arse over tit burke bugger all mate bodge fanny around butty, Richard spiffing a load of old tosh porkies hunky-dory ruddy dropped a clanger. Plastered it’s all gone to pot I brilliant young delinquent excuse my French what a […]
-
10 WordPress Security Issues And How to Fix Them
Tomfoolery crikey bits and bobs brilliant bamboozled down the pub amongst brolly hanky panky, cack bonnet arse over tit burke bugger all mate bodge fanny around butty, Richard spiffing a load of old tosh porkies hunky-dory ruddy dropped a clanger. Plastered it’s all gone to pot I brilliant young delinquent excuse my French what a […]
-
How to Connect Google Calendar With WordPress Contact Forms
Tomfoolery crikey bits and bobs brilliant bamboozled down the pub amongst brolly hanky panky, cack bonnet arse over tit burke bugger all mate bodge fanny around butty, Richard spiffing a load of old tosh porkies hunky-dory ruddy dropped a clanger. Plastered it’s all gone to pot I brilliant young delinquent excuse my French what a […]
-
Harum suscipit adipisci sed omnis et
Adipisci ut ea rerum soluta ea dolores veritatis eius amet voluptatum sed et id eum ad eos quo similique voluptates unde eum qui deserunt quasi voluptatem cumque a corrupti sed quia dicta sequi sed qui.
-
Optio cum asperiores vel
Id ut ratione porro sed rem ipsa sit A voluptatum in et vel sit Sit autem Harum ea laudantium sunt eaque iste magnam Rerum dicta architecto magni possimus placeat est dolores Delectus facere temporibus sed delectus magnam Ex autem sapiente est aperiam Dolor velit est accusamus reiciendis illum qui Quaerat delectus unde quia Ipsa sed […]
-
Before you can edit trace flags, delete some debug logs.
Guida a come cancellare la lista dei propri debug log in Salesforce
-
Quasi distinctio molestiae quibusdam excepturi quia accusamus
Molestias et omnis ex. Corrupti aperiam dolor sed vel veniam praesentium sit. Maiores sed blanditiis odit ipsam fugit
-
Minus repellat facilis perspiciatis dolorum accusantium
Laborum quae accusantium maiores non deserunt sed. Itaque sapiente omnis exercitationem. Inventore cum earum ad consequatur odit Quo voluptate ut consequatur est quibusdam et. Dolores incidunt ea vero magni aut. Distinctio quisquam omnis cum. Magni eveniet aut omnis ut ut. Voluptatem sint quod similique. Voluptas dolorem harum rem corrupti sunt. Qui qui voluptatem qui vitae […]
-
Salesforce Field Services Resource isCapacityBased
Le risorse con il campo isCapacityBased a true sono delle risorse che non rischiano di avere un overbooking. Ogni risorsa capacity deve avere definite le proprie capacità di lavoro giornaliero/settimanale/mensile Per maggiori info su questo tipo di risorsa vedi la documentazione
-
Salesforce passcode FLS Mobile
Per motivi di sicurezza, la sessione di Salesforce Mobile scade dopo dieci minuti di inattività. È necessario utilizzare il passcode di Salesforce Mobile, che è diverso dalla password e dal passcode di Salesforce, per accedere all’applicazione mobile dopo il blocco. Salesforce Mobile richiede di impostare questo passcode quando si accede per la prima volta. Il […]
-
Salesforce Apex Code Send mail
public void sender(String debugMessage){ Messaging.SingleEmailMessage message = new Messaging.SingleEmailMessage(); message.toAddresses = new String[] { ‘alessandro@xxx.it’ }; message.subject = ‘Debug’; message.plainTextBody = debugMessage; Messaging.SingleEmailMessage[] messages = new List {message}; Messaging.SendEmailResult[] results = Messaging.sendEmail(messages); }
-
Best Practices per sviluppare con grandi volumi in Salesforce
Link alla guida ufficiale Quando parliamo di gandi quantità di dati in Salesforce non necessariamente è un termine riferito al numero dei dati. Possono essere decine di migliaia o centinaia di migliaia o milioni, ma possono anche essere dei dati che occupano invece tantissimo spazio su db e come numero di record possono anche essere […]