Monday 28 March 2016

Document ID field in ServiceNow

Hey There!

Today we'll discuss an interesting thing provided by ServiceNow. At times we need to specify a reference column without knowing what will the table be. It might be an Incident to refer, or a change, or some other user defined table. But our very own reference field doesn't let us do that.

For that, ServiceNow has provided as the Document ID field. A Document ID field is of two types -

1. In which we can let the user specify the table name in another column created by us - known as Dependent column.

2. A field in which we have a table and a field drop-downs to choose from.

I'll show you how.

USING DEPENDENT COLUMN


First, we will go to the table where we want the Document ID field. Create a column of type Table Name with your choice of name. This will be used as the dependent column where the user will specify the table name to reference.

Next, create a column of type Document ID. Save it. Under the column Dependent Field, check the box Use Dependent Field. Under the drop down Dependent on Field, choose the field you created for table name to reference.


And...its done :) ...when you'll go ahead and add a new record to the table you'll be required to add the table name and then you can go ahead and choose the record from that particular table to refer to.



Without using the Dependent Column

Just don't check the column Use Dependent Column and add the values by selecting the table and record.

Feel free to post any queries under the comments section :)

16 comments:

  1. Can we have list editing for this field type, wiki says inline editing is now allowed

    ReplyDelete
  2. The article provided by you is very nice and it is very helpful to know the more information.keep update with your blogs .I found a article related to you..once you can check it outservicenow online training

    ReplyDelete
  3. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work..

    servicenow online training india

    ReplyDelete
  4. the blog is about Document ID field in ServiceNow it is useful for students and servicenow Developers for more updates on servicenow follow the link

    ServiceNow Online Training

    For more info on other technologies go with below links

    tableau online training hyderabad

    Python Online Training

    mulesoft Online Training

    ReplyDelete

  5. well done the blog is great and it is about Document ID field in ServiceNow it is useful for students and servicenow Developers for more updates on servicenow ServiceNow Online course

    ReplyDelete
  6. I really appreciate information shared above. It’s of great help.
    ServiceNow training in Hyderabad

    ReplyDelete
  7. How can I populate field with Type document ID dynamically?

    ReplyDelete
  8. Thank you for sharing wonderful information with us to get some idea about it.
    ServiceNow Training in Hyderabad

    ReplyDelete
  9. Hi, I have one query that is, I have two tables lets say Device and Expiry Alert for Device.

    so now Expiry Alert for Device table is referencing Device by a field which is of type Document ID and because of this I am not able to write related list condition in my filters in report.

    Do you have any solution for this?

    ReplyDelete
  10. Very nice article,this blog really very nice.
    thank you for sharing this awesome blog with us.
    keep updating......


    servicenow online training

    learn servicenow online

    servicenow training

    servicenow now learning

    ReplyDelete
  11. I was suggested this web site by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty. You are amazing! Thanks!web development berlin

    ReplyDelete
  12. I tried it in configurable workspace but it is not working showing "Can't display this list
    Try contacting your system administrator
    Instance creation failure for: com.glide.ui.list.graphql.listLayout.ListLayoutSchemaQuery" But the field is working fine in ui 16

    ReplyDelete