Code Monkey home page Code Monkey logo

Comments (8)

jacebenson avatar jacebenson commented on August 14, 2024

image

from jace.pro.

jacebenson avatar jacebenson commented on August 14, 2024

In short order we've integrated Azure intune (for device tracking), solarwinds for network equipment, and crashplan for backups with very minimal work. Then when those different integrations wanted to cahgne something we spent a little extra time on each of them to ensure we could iterate quickly by being consistent and using import sets.

I've been working with servicenow for a long time, and even I am tempted to write directly to the table. However writing direclty to the table is bad because over time the table changes.

  • Changing the column, adding a column, dropping a column
  • Adding access controls
  • Adding abort business rules

All of these can cause the integration to fail at a later date.
However, you have nothing to test to verify the integration is working if you're writing straight to the table except the lack of a record update. Even then the update may be by some other integration.

For these reasons I suggest using import sets for all the integrations where you can.
By doing an import set here's the quick benefits;

  1. You can insert all the details from the integration, you're not limited to the columns of the target table
  2. You can massage the data from the other system
  3. You can easily add/remove data by changing your import set instead of having to re-read and set up your api calls.

from jace.pro.

jacebenson avatar jacebenson commented on August 14, 2024

In this lab we're going to pull users in. I can imagine a number of systems where the users could be beneficial to have them in servicenow;

  • Customers (to act as callers from some other intake)
  • Leads (to try to sell things to)
  • Onboarding (from another system like workday)

In anycase, we're going to be using a simple and free non-sn resource to get the users with lots of data.

https://randomuser.me/api/?page=3&results=10&seed=sn

from jace.pro.

jacebenson avatar jacebenson commented on August 14, 2024

The fields returned are;

  • gender
  • name.title
  • name.first
  • name.last
  • location.street
  • location.city
  • location.state
  • location.postcode
  • email (use this as the coalesc)
  • login.username
  • dob.date
  • phone
  • cell
  • picture.medium
  • nat

Now a lot of these fields don't mean anything to us yet, but initially say the request is to pull in their email and name.
I'd still pull in all the details in initially so you don't have to mess with the import later;

You can easily convert JSON to excel for the import here;
https://codebeautify.org/json-to-excel-converter
Then just replace results.0. with nothing.

from jace.pro.

jacebenson avatar jacebenson commented on August 14, 2024

We could pull in just name.title + name.first + name.last
However, if we pull all parts of this, we don't have to consider the object until later and we can ask the stake holder if there's other data they want that they also might not even know is available.

from jace.pro.

jacebenson avatar jacebenson commented on August 14, 2024

k.pptx

from jace.pro.

jacebenson avatar jacebenson commented on August 14, 2024

If you don't want to run a transform until you load all the record, you'll need a global script include to allow access to GlideImportSetTransformerWorker.
Otherwise you'll get this if you try to execute code to do it.Evaluator: java.lang.SecurityException: GlideImportSetTransformerWorker is not allowed

Flatten the import data.

Use Import sets, always.
Pull in all available data to import set

from jace.pro.

jacebenson avatar jacebenson commented on August 14, 2024

https://codebeautify.org/json-to-excel-converter

from jace.pro.

Related Issues (20)

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.