How we can add 51-100 record out of 100 record available in Excel file.

vidishaagarwal5
Tera Contributor

Can we use Transform Script. coz I need to load data via excel sheet?

2 ACCEPTED SOLUTIONS

Ravi Gaurav
Giga Sage
Giga Sage

Hi @vidishaagarwal5 

Create onBefore transform script and add this
Add your code 

if(source.sys_import_row >= 100 ){ error = true; }

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

ï”— YouTube: https://www.youtube.com/@learnservicenowwithravi
ï”— LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

View solution in original post

Below Article will Help !!

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0745411

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

ï”— YouTube: https://www.youtube.com/@learnservicenowwithravi
ï”— LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

View solution in original post

5 REPLIES 5

M Iftikhar
Mega Sage

@vidishaagarwal5 ,

 

  • Go to System Import Sets > Transform Maps

  • Open your Transform Map

  • Add script to the Transform Script (onBefore) 

 if (source.sys_import_row  < 50) {
        ignore = true;
        return;
    }