The CreatorCon Call for Content is officially open! Get started here.

Need to fill "Approving" - document_id field on the Approvals form view (table approval sequence)

Milan13
Giga Expert

Hello,

I am trying to fill the "Approving" field with REQ number (first screen shot) and as it is document_id field I added 2 fields to table sysapproval_approver   and used  code (second screen shot) which I got from a community thread.

The desired outcome is that the field "Approving" is filled with for examle "Request: REQ0010364", to be perfectly honest do not even know where the text "Request:" is automatically coming from.

This is making me a kind of confused and I am just wondering whether someone can bring some shed of light into this.

Appreciate your help,

Milan

 

1 ACCEPTED SOLUTION

About the "Request: REQ0010364".

You have to check what the display is for the sc_request table. I guess it's the short_description if I remember your image from yesterday. So if you want to display the REQ number there, you would have to change the display (obviously this would impact everywhere you are using the displayvalue for Request!!!).

Maybe "Request: Somet short description here" is also fine for you? Though then be sure the short_description field on sc_request is always filled.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

5 REPLIES 5

Milan13
Giga Expert

Actually I used the table as per XML, so the sc_request table should be the correct one.

<source_table>sc_request</source_table>