Unable to auto populate Assigned To field of assets from SCTASK

Jiajie Li
Tera Contributor

Hello Experts,

 

I am trying to auto populate the Assigned To field of an asset on the alm_asset.list table when a new hire is onboarded and an asset is selected. However, my flow is only able to populate the Reserved For field and not the Assigned To field. Would anyone happen to know why? 

 

Below is a screenshot of the request, fields, and flow. The flow for the Request For is the same as the Assigned To field. 

 

Capture1.PNG

Capture2.PNG

Capture.PNG

1 ACCEPTED SOLUTION

Hi Jiajie,

 

It should have worked; if you look at the screenshot below, the second record assigned to has been populated, but it did not work for the first record, and you'd notice a message pop out, and this is due to an existing OOB Business rule (Clear Assigned To on Update). It's just the data you chose; try some other asset that isn't in the On Order, In Stock, or In Transit states, and it should work.

 

Jobby1_0-1687329226974.png

Business Rule:

Jobby1_1-1687329798739.png

I hope this helps.

View solution in original post

5 REPLIES 5

Jobby1
Tera Expert

Hi Jiajie,

 

Can you try dot-walking requested_for.sys_id and give it a try as shown below?

Jobby1_0-1687302621790.png

 

The reason why it doesn't work is because assigned to is a reference field(User table) and expects sys_id whereas requested_for is a record type(kinda of User GlideRecord Object) and you would have to expand and select the attribute which is required(in this case you need to select attribute sys_id).

 

Regards,

Jobby

Jiajie Li
Tera Contributor

I tried both Sys ID and User ID but the Assigned To field still doesn't populate. Thanks for the suggestion and technical details though! I will continue troubleshooting keeping in mind the Assigned To is a reference field. 

 

Capture.PNG

Capture.PNG

Hi Jiajie,

 

It should have worked; if you look at the screenshot below, the second record assigned to has been populated, but it did not work for the first record, and you'd notice a message pop out, and this is due to an existing OOB Business rule (Clear Assigned To on Update). It's just the data you chose; try some other asset that isn't in the On Order, In Stock, or In Transit states, and it should work.

 

Jobby1_0-1687329226974.png

Business Rule:

Jobby1_1-1687329798739.png

I hope this helps.

Jiajie Li
Tera Contributor

It worked! I found that for an Asset, the State has to be In Use for the field to populate. Your details and screenshots were very helpful. Thanks for the help!

 

Capture.PNG