How to create Database view between Catalog Task and Asset Table

SourabhAkiwate
Tera Expert

Hello All,

I have requirement that create report on, which assets has been assigned to user who is Requested for from catalog task table.

Could you please help me out to create report through script or through Database view ?

 

Thank you,

Sourabh A

1 ACCEPTED SOLUTION

Robert H
Mega Sage

Hello @SourabhAkiwate ,

As others have pointed out, there is no "Requested for" field on the Catalog Task table. I am going to assume you mean the "Requested for" of the RITM.

This is how your Database View would need to be configured to achieve that:

RobertH_0-1743071092064.png

It will give you something like this:

RobertH_1-1743071121640.png

 

Or, if you really need that report to be based on the Catalog Tasks, you would need to join all three tables, like this:

RobertH_0-1743071687008.png

RobertH_1-1743071756837.png

 

Regards,

Robert

View solution in original post

6 REPLIES 6

Robert H
Mega Sage

Hello @SourabhAkiwate ,

As others have pointed out, there is no "Requested for" field on the Catalog Task table. I am going to assume you mean the "Requested for" of the RITM.

This is how your Database View would need to be configured to achieve that:

RobertH_0-1743071092064.png

It will give you something like this:

RobertH_1-1743071121640.png

 

Or, if you really need that report to be based on the Catalog Tasks, you would need to join all three tables, like this:

RobertH_0-1743071687008.png

RobertH_1-1743071756837.png

 

Regards,

Robert

Shivalika
Mega Sage

Hello @SourabhAkiwate 

 

Create a Data base view and Join tables sc_task and alm_asset. 

 

In the where clause - add below line 

 

alm_asset.assigned_to = sc_task.requested_for

 

NOTE - replace alm_asset with trh prefix you choose for asset and sc_task with suffix you choose for task. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY