Fetch Goals approval status from fusion transaction tables — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Fetch Goals approval status from fusion transaction tables

edited Apr 1, 2021 8:35AM in Performance Management 4 comments

Content

We are trying to fetch the goal and goal plan details which is submitted for approval (Pending approval, Draft) from transaction tables.

We are able to fetch only one goal and plan details from below sample query

SELECT
,XMLTYPE(txndata.data_cache).EXTRACT('TRANSACTION[1]/BUSINESSDATA[1]/AM[1]/TXN[1]/EO[1]/GoalEORow[1]/PersonId[1]/DATA/text()').getStringVal() AS  person_id
,XMLTYPE(txndata.data_cache).EXTRACT('TRANSACTION[1]/BUSINESSDATA[1]/AM[1]/TXN[1]/EO[1]/GoalEORow[1]/GoalName[1]/DATA/text()').getStringVal() AS goal_name
,nvl(EXTRACTVALUE(xmltype('' || txndata.data_cache || ''), 'TRANSACTION/BUSINESSDATA/AM/TXN/EO/GoalPlanGoalEORow/GoalPlanId/DATA'),'') AS goal_plan_id
,XMLTYPE(txndata.data_cache).EXTRACT('TRANSACTION[1]/BUSINESSDATA[1]/AM[1]/TXN[1]/EO[1]/GoalPlanGoalEORow[1]/Weighting[1]/DATA/text()').getStringVal() AS  weighting

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!