Database View Creation and Report Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
All,
Wanted to create a database view for the specific Request items which have skipped approvals in the workflow
and provide the report access to the user.
Thought of joining requested item, Workflow Context and Workflow History to create that view.
Request to share the steps in detail please basically in the conditions where I have to match the fields
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @SambitRath ,
You want a report that shows request items where an approval step in the workflow was skipped. To do that, you need to connect three pieces of information:
Request Item (RITM) – the actual request.
Workflow Context – the workflow run that belongs to that request.
Workflow History – the log of each step in that workflow, including approvals.
That gives you a list of RITMs that had skipped approvals.
Go to System Definition > Database Views.
Create a new view and add the three tables: `sc_req_item`, `wf_context`, `wf_history`.
Define the joins:
-sc_req_item.sys_id = wf_context.context_id
-wf_context.sys_id = wf_history.context
Add a condition on wf_history.state = skipped or check the backend value of state.
Choose the fields you want to show (like RITM number, short description, workflow name, approval activity, etc.).
Save the view and use it as the data source for a report.
Please verify the backend field names and values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
HI Pavani,
Any update from your end please.
