Giter Site home page Giter Site logo

salesforce-coding-challenge's Introduction

Salesforce Senior Coding Challenge

We appreciate you taking the time to participate and submit a coding challenge! 🥳

In the next step we would like you to implement a simple Invocable Apex Action to be used by your Admin colleagues for a Flow. They need to do HTTP callouts to a NPS Service, whenever an Order got fulfilled. Below you will find a list of tasks and optional bonus points required for completing the challenge.

🚀 This is a template repo, just use the green button to create your own copy and get started!

Invocable:

  • accepts the Order Record Ids as Input Parameter
  • queries the required records to get the Bill To E-Mail Address (Contact.Email) and OrderNumber (Order.OrderNumber)
  • sends the data to the NPS API
  • add a basic Flow, that executes your Action whenever an Order Status is changed to Fulfilled

The Mock NPS API:

⚠️ Must Haves:

  • use sfdx and git, commit all code and metadata needed (so we can test with a scratch org)
  • write good meaningful unit tests
  • properly separate concerns
  • make a list of limitations/possible problems

✨ Bonus Points:

  • layer your Code (use apex-common if you like)
  • use Inversion of Control to write true unit tests and not integration tests
  • make sure customers don't get duplicate emails
  • think of error handling and return them to the Flow for the Admins to handle

What if I don't finish?

Finishing these tasks should take about 2-3 hours, but we are all about 'quality > speed', so it's better to deliver a clean MVP and leave some TODOs open.

Try to produce something that is at least minimally functional. Part of the exercise is to see what you prioritize first when you have a limited amount of time. For any unfinished tasks, please do add TODO comments to your code with a short explanation. You will be given an opportunity later to go into more detail and explain how you would go about finishing those tasks.

salesforce-coding-challenge's People

Contributors

sbresin avatar dependabot[bot] avatar

Stargazers

Kyle Roe avatar

Watchers

Sami Fahed avatar  avatar

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.