Giter Club home page Giter Club logo

ea-starter-pack's Introduction

Einstein Analytics Starter Pack

This repo contains the source for the Einstein Analytics Start Pack template of the dashboards developed by Yuji Yamamoto.

The structure of this repo and scripts can also be used as a template for Einstein Analytics Template development.

Prerequisite

Before trying the steps detailed here, please clone and see the README for https://github.com/ttse-sfdc/sfdc-ea-sfdx-scripts

Usage

  1. Clone this repo: https://github.com/ttse-sfdc/ea-starter-pack.git
  2. Run python3 ./scripts/initOrg.py -t Einstein_Analytics_Starter_Pack -s -p ../ea-starter-pack/force-app/main/default from the cloned scripts project, to create a new Scratch Org with assets from repo. (Scratch Orgs are defaulted to expire in 1 day, override with argument python3 ./scripts/initOrg.py -t Einstein_Analytics_Starter_Pack -s -p ../ea-starter-pack/force-app/main/default -d 7)
  3. Do your development in the scratch org or VS Code.
    1. Edit dashboards in the org and pull source to local (see step 4i below)
    2. Edit template metadata in VS Code and push source to scratch org and update (see step 4ii below)
  4. Use the commands
    1. SFDX: Push Source to Org (VS Code) or sfdx force:source:push (Salesforce CLI) to push changes from local into the Scratch Org. For example changes to template metadata (i.e. template-info.json)
    2. SFDX: Pull Source from Org (VS Code) or sfdx force:source:pull (Salesforce CLI) to pull changes down from Scratch Org to local. For example, dashboard edits.
  5. Run ./scripts/updateTemplate.sh from the cloned scripts project, to update template with latest changes
  6. Sync code with git

Package Deployment Model (only if releasing through packaging)

  1. Use sfdx force:auth:web:login --setalias [ALIAS] to add your dev org used for managing the package for this template (First time only) (i.e. sfdx force:auth:web:login --setalias myNonScratchOrg )
  2. Use the commands SFDX: Deploy Source to Org (VS Code) or sfdx force:source:deploy -u [ALIAS] -p force-app/main/default/waveTemplates/[TEMPLATE NAME] (Salesforce CLI) to deploy the latest changes to Dev org for packaging (i.e. sfdx force:source:deploy -u myNonScratchOrg -p force-app/main/default/waveTemplates/Einstein_Analytics_Started_Pack)
  3. Log into Dev org and create/update package with template assets

ea-starter-pack's People

Contributors

ttse-sfdc avatar reidaelliott avatar

Stargazers

 avatar Greg Smith avatar

Watchers

Greg Smith avatar  avatar Yuji Yamamoto avatar  avatar

ea-starter-pack's Issues

orgInit.sh script fails to create template on the org

On line 75 or orginit.sh, it lists the template to get the ID but it specifies the wrong field value (f2) for the cut command...it should be cut -d ',' -f3

☘ sfdx analytics:template:list === Found [1] analytics templates. NAME LABEL TEMPLATEID FOLDERID NAMESPACE ─────────────────────────────── ─────────────────────────────── ────────────────── ──────── ───────── Einstein_Analytics_Starter_Pack Einstein Analytics Starter Pack 0Nk550000008P0lCAE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.