Wednesday, March 30, 2022

Salesforce Vlocity Dataraptor

 Vlocity DataRaptor moves data into and out of Vlocity applications. It's commonly referred to as an extract, transform, and load application.

DataRaptors allows you to read and write data to and from your Salesforce org.

 There are four types of DataRaptor: 

Turbo Extract, Extract, Transform, and Load.

Turbo Extract: Read data from a single Salesforce object type, with support for fields from related objects. Then select the fields to include. Formulas and complex field mappings aren’t supported.

Extract: Read data from Salesforce objects and output JSON or XML with complex field mappings. Formulas are supported. We can data from one or more Objects.

Transform: Perform intermediate data transformations without reading from or writing to Salesforce. Formulas are supported.

Load: Update Salesforce data from JSON or XML input. Formulas are supported.

With DataRaptor:

  • No coding is required because it abstracts queries.
  • Any DataRaptor can be saved, exported, and reused.

Monday, March 21, 2022

Salesforce Content Security Policy

 The Lightning Component framework uses Content Security Policy (CSP) to impose restrictions on content. 

The main objective is to help prevent cross-site scripting (XSS) and other code injection attacks.To use third-party APIs that make requests to an external (non-Salesforce) server or to use a WebSocket connection, add a CSP Trusted Site.

CSP is a W3C standard that defines rules to control the source of content that can be loaded on a page. All CSP rules work at the page level and apply to all components and libraries.

When you define a CSP Trusted Site, the site’s URL is added to the list of allowed sites for the following directives in the CSP header.

connect-src

frame-src

img-src

style-src

font-src

media-src


This change to the CSP header directives allows Lightning components to load resources, such as images, styles, and fonts, from the site. It also allows client-side code to make requests to the site.


Note: 

  • LEX - CSP header is approved only for your organization’s Lightning Experience.
  • Communities - CSP header is approved only for your organization’s Lightning Communities.
  •  You can’t load JavaScript resources from a third-party site, even if it’s a CSP Trusted Site. To use a JavaScript library from a third-party site, add it to a static resource, and then add the static resource to your component. After the library is loaded from the static resource, you can use it as normal.


Friday, March 4, 2022

Error : " Installing plugin @salesforce/lwc-dev-server... ! " when installing in my Visual Studio in Windows

Steps to fix the above Issue:

====================

1. Installation of Nodejs software and disconnect from office network VPN (if connected).

2. >Install node gyp by running 

      npm install -g node-gyp

    >In command prompt or whatever command-line interface you use.

3. And then after that, you can run 

     npm install --global --production windows-build-tools

4. And finally tried the below command it worked after 2 3 times..

     sfdx plugins:install @salesforce/lwc-dev-server

ES12 new Features