Add reference on a record to himself

Gal Katz
Kilo Sage

I need to set reference fields in some records so the will refer to themselves but this action is blocked by ServiceNow.
Is there a way I can overcome this and set a reference on a record to himself?   

5 REPLIES 5

AndersBGS
Tera Patron
Tera Patron

Hi @Gal Katz ,

 

You can just create a reference field on the e.g. incident table which refer to the incident table again. Is that the solution that you're looking for?

 

if my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Hi Anders!

Thank you for your reply.
the issue is that I want to populate that reference field with the current record, but this action is blocked by ServiceNow because the selected reference loops back to the current record.

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

What is the usecase?

-Anurag

Hi Anurag,
Thank you for your response!
I'm inserting/updating accounts based on data I receive from a 3rd party application.
On the Account table I have account_parent field which is a reference to Accounts table.
 If the account_parent sent to me from the 3rd party application is empty, I need to populate the account_parent field with the current record(make the account an account_parent of himself).
the issue is that is blocked by ServiceNow because the selected reference loops back to the current record.