0% found this document useful (0 votes)
20 views1 page

Positio Id With Position Update

This document is an SQL statement that updates a table called tgfdm1_position by setting the fusion_position_id column to a value from a subquery that calls a REST API and selects the position_id from the JSON response where the PositionCode matches the fusion_position_code column.

Uploaded by

sankalpthakur123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

Positio Id With Position Update

This document is an SQL statement that updates a table called tgfdm1_position by setting the fusion_position_id column to a value from a subquery that calls a REST API and selects the position_id from the JSON response where the PositionCode matches the fusion_position_code column.

Uploaded by

sankalpthakur123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

update tgfdm1_position t1

set t1.fusion_position_id=(select jt.position_id


from (json_table ((xxtgf_rest_get_call ('https://fa-enmo-dev2-
saasfaprod1.fa.ocs.oraclecloud.com/hcmRestApi/resources/11.13.18.05/positions?
q=PositionCode='||t1.fusion_position_code))
,'$.items[*]'
COLUMNS (PositionCode varchar2(240) path '$.PositionCode',
position_id varchar2(240) path '$.PositionId'
)
)) jt
where 1=1);

You might also like