How to ignore RITM insertion when Integrating with Success Factor

Prathamesh Chav
Tera Contributor

Hi Team, 

 

I am integrating with Success factor, and I am planning to run schedule job to insert RITM in snow with information from response body.
response body has tickets submitted in Success Factor with the user info
UserId is going to be unique key.
I want to ignore same user ID if inserting for same Catalog item for example "Consultant Onb".
"Con Ext" & "Con Off" tickets for same user ID can be inserted.
for "Con Ext" , "Con Off" ticket can be inserted
all other ticket as I am running every hour. ticket with same user ID which is inserted should ignore and if new user should get inserted.
also con extension happens every 3 months so user for "con Ext" may get repeated.
How to achieve this?


Thanks,

2 REPLIES 2

Hemanth M1
Giga Sage
Giga Sage

HI @Prathamesh Chav ,

 

How are you creating the requests? Are you using the cart API?

 

You can achieve this as follows:
Once you receive the response(array of User IDs), you can check the RITM table for the requestor ID. If the requestor ID exists and is valid do not return that User ID.  Return only the User IDs for which no requests exist. then proceed into the cart API logic to create the requests.

 

Let me know if any questions!

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Ankur Bawiskar
Tera Patron
Tera Patron

@Prathamesh Chav 

Before submitting/creating RITM you can query and see if already RITM is submitted for this user ID and catalog item

if yes then ignore

unless you share what's the current setup/script and screenshots we can't help

If my response helped please mark it correct and close the thread so that it benefits future readers.

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