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

Correct requested for is not showing on request (Raised record from Catalogue Item)

Priya Singh 2 2
Tera Contributor

Hello Team,

 

I created a new Catalogue Item and used one existing variable set to set request information and I need to set the same requested for on request requested for field what I am choosing on Catalogue item but in my catalogue item it's setting logged in user as requested for and same variable set is setting the right value on another catalogue item, I created a flow designer and in the log correct requested for is showing :

PriyaSingh22_0-1759236921610.pngPriyaSingh22_1-1759236963069.png

PriyaSingh22_2-1759237048133.png

 

I am not sure what is going wrong here and why correct value is not updating and how we can fix this issue ?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Priya Singh 2 2 

requested_for field on REQ will always be populated with logged in user because of the way how dictionary is configured, because of the default value as logged in user

AnkurBawiskar_0-1759237757345.png

You can use "Update Record" flow action to update the Request->Requested For with the variable using "Get Catalog Variables" flow action

Like this, I didn't select any reference variable so I didn't see that, but you can select your variable (Requested for)

AnkurBawiskar_1-1759238089443.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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Priya Singh 2 2 

requested_for field on REQ will always be populated with logged in user because of the way how dictionary is configured, because of the default value as logged in user

AnkurBawiskar_0-1759237757345.png

You can use "Update Record" flow action to update the Request->Requested For with the variable using "Get Catalog Variables" flow action

Like this, I didn't select any reference variable so I didn't see that, but you can select your variable (Requested for)

AnkurBawiskar_1-1759238089443.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

@Priya Singh 2 2 

Hope you are doing good.

Did my reply answer your question?

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

It is working just one thing its first showing logged in user's name and in 1-2 seconds updating correct requested for, Is it the right behavior?

@Priya Singh 2 2 

Glad to know that my script worked for you

yes it's OOTB behavior since you are updating it later on after insertion.

Please close the thread by marking my response as correct so that it benefits future members.

 

 

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