Party - Id From HZ - Parties SQL Query
Party - Id From HZ - Parties SQL Query
Hi there,
does any one has sql query which can pull party id from hz_parties for an account number? This party id from hz_parties should match customer_id in
fnd_user table.
Thanks in advance.
(0 ratings)
When Opening The Approval Notication After A Supplier Change - The Error ORA-6512 Apps.Wf_notication Line 5371 ORA-1403 Occurs [ID
435266.1]
Why Does 'Customer' Field in User -> Dene Form gets Populated Automatically when an Application User is created using Employee
Registration Process Link on Login Page .? [ID 847970.1]
Thanks,
Hussein
>
does any one has sql query which can pull party id from hz_parties for an account number?
>
Sandeep Gandhi
https://community.oracle.com/message/9564189#9564189 1/5
8/19/2017 party_id from hz_parties |Oracle Community
Actions Like (0)
the value returned by below sql does not match what is returned from RequestCtx.getPartyId().
Did you run the query under "Cause" section in the rst doc referenced above?
Thanks,
Hussein
847970.1
Thanks,
Hussein
The problem is: I dont have the user name in my case. its only account number I have.
https://community.oracle.com/message/9564189#9564189 2/5
8/19/2017 party_id from hz_parties |Oracle Community
Any suggestion?
You mentioned that the query provided by Sandeep did not return the value you were expecting .. so could you please run the following to
verify?
Thanks,
Hussein
I know that I can get the party id from hz_cust_accounts using account number.
select party_id from hz_cust_accounts where account_number = 123456- this query returns party id as 402664.
SELECT fu.user_name,hp.party_name, hp.party_id FROM fnd_user fu,hz_parties hp WHERE hp.party_id = fu.customer_id and fu.user_id =
'19379' - this query returns party id as 474835.
why they both are not matching and how can I resolve this issue?
thanks
Thanks,
Hussein
https://community.oracle.com/message/9564189#9564189 3/5
8/19/2017 party_id from hz_parties |Oracle Community
that sql does not return any rows. I suspect there is something wrong with data.
Thanks.
Thanks,
Hussein
Before going to database tables, rst check the things on the Users screen from System Admin Responsibility.
https://community.oracle.com/message/9564189#9564189 4/5
8/19/2017 party_id from hz_parties |Oracle Community
the requestCtx was returning wrong value because of cookies were missing.
Issue is resolved.
Powered by
https://community.oracle.com/message/9564189#9564189 5/5