Hi All, how to set values in activity log of request

klavan32
Tera Contributor

Hi All,

 

How and where to check the values populating in activity log as soon as request is created

klavan32_0-1744109521810.png

in our request flow,  if requested for is different than requested by then initially requested for is setting as requested by then its updating the value to requested for we entered in variable, I got the config which was updating the value for the second time but i couldn't find where the config is mentioned that setting the value for first time, i believe the values mentioned in activity log are the initial values and I need to find out where that is being configured.

 

Please help me with this 

1 ACCEPTED SOLUTION

@klavan32 

Since you removed the default value from requested_for on REQ it should not populate it

I believe it comes from this place i.e. checkout widget. I removed the default value and still REQ Requested For got populated with logged in user

AnkurBawiskar_0-1744175982706.png

So check this article which talks about how to set that Request for in order confirmation based on variable and then your issue will be solved

Service Portal - Requested For 

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

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@klavan32 

requested_for at dictionary level has default value as gs.getUserID()

So it comes from there, so during insertion system sets the logged in user i.e. whoever submitted the REQ in that field

AnkurBawiskar_0-1744110659542.png

 

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

klavan32
Tera Contributor

Hi @Ankur Bawiskar 

 

Thank you for the response, I have tried to disable the default value of requested for in dictionary bur still it is assigning requested for to the current logged in user.

 

Could you please suggest me ways to avoid this

@klavan32 

what's your business requirement?

what should be populated in requested_for in REQ?

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

Hi @Ankur Bawiskar 

 

The issue is we have an email notification that triggers as soon as req and ritm is raised and before the update happens for the second time (updating actual requested for), email is being sent and in email,  it is taking first value(which is current logged in user name in requested for)

we want the value populates initially to be the right value (like whoever is in requested for from variables), i have tried to disable the default value but it is still taking current logged in username as first update.