Search 800 + Posts

Jan 24, 2011

Query to get Customer Role in TCA

Below is simple query to get the Customer Role Details in TCA

select a.cust_account_role_id,a.*
hz_cust_account_roles a, hz_role_responsibility b, hz_cust_acct_sites_all c
a.role_type = 'CONTACT'
and a.party_id = p_party_id
and a.cust_account_id = p_cust_account_id
and a.cust_acct_site_id = c.cust_acct_site_id
and a.cust_account_id = c.cust_account_id
and c.party_site_id = p_party_site_id
and a.cust_account_role_id = b.cust_account_role_id
and responsibility_type = p_acct_site_type;

No comments:

Post a Comment