The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Data sources custom(load from script) example

TM19
Tera Expert

Hi
I want to try out the data source of type 'Custom (Loaded from script)'. Is there any place where I can get a sample of the same to get the basic idea of its syntax and other rules?

1 ACCEPTED SOLUTION

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

at the official documentation there is an example, feel free to use it:

https://docs.servicenow.com/bundle/orlando-platform-administration/page/administer/import-sets/refer...

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

View solution in original post

17 REPLIES 17

It seems the instance I am trying to implement on is not Orlando, so it lacks the 'Custom()load by script' feature.

I actually want to populate multiple CI classes based on a data in custom table.
What would be the best approach for this?

Hi,

you can use Data source and transform map for this approach.

Or if this is one time job then write a one time schedule job and run it against your custom table.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

How can we add custom table to a Data source?

Hi,

you can create data source, create transform map. transform map would be on your custom table where you want to load the data

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur

Let me clarify my requirement

I want to take data from table X to one of the CI class.

In that case how can we configure a data source(for table X). Also I want this to happen every time a record is inserted to table X?