Skip to main content
Question

IFS Cloud Projection query is not returning any data in Postman where as returns data in oracle developer studio

  • October 19, 2022
  • 6 replies
  • 333 views

Forum|alt.badge.img+4

Hi Team,

I am facing some strange issue. We have created some custom projection in IFS Developer Studio with below query, this query is working and returning set of data in Oracle SQL Developer as well as in IFS Developer studio execte command window, where as same is not returning any data through postman call, it always returns empty object array.

To narrow down the problem, we created one more projection in IFS 10 version with same query, it is working fine and able to see the result in Postman.

Any help is much helpful to resolve the issue.

 

SELECT 
DISTINCT NVL(B.CUSTOMER_ID,A.IDENTITY) AS Account_Code, 
B.CUSTOMER_ID,
A.IDENTITY,
IIN.Customer_ID,
NVL(B.NAME,(SELECT NAME FROM CUSTOMER_INFO WHERE CUSTOMER_ID = A.IDENTITY)) AS Account_Name, 
'TEST' AS Account_Code_Type, 
'1' AS Company_ID, 
'1' AS Master_Company, 
0 AS Is_Service_Only, 
NVL(B.CUSTOMER_ID,A.IDENTITY) AS Intrefcode, 
0 AS Is_Private_Label, 
B.ADDRESS_ID AS Address_Id, 
B.ADDRESS_TYPE_CODE AS Address_Type_Code, 
B.ADDRESS1 AS Address1, 
B.ADDRESS2 AS Address2, 
B.ZIP_CODE AS Zip_Code, 
B.CITY AS City, 
'' AS Title, 
A.NAME AS Name, 
A.PHONE AS Phone, 
A.EMAIL AS Email, 
A.MOBILE AS Mobile, 
A.FAX AS Fax, 1 AS Is_Active, 
SYSDATE AS To_Date, 
--IINCFV.CF$_DISTCAT AS DISTCATE, 
A.BARCODECONTACT AS Barcode_Contact 
FROM ((SELECT CIT.CUSTOMER_ID, CIT.NAME , CIAT.ADDRESS_ID, CIAT.ADDRESS1, CIAT.ADDRESS2,  CIAT.ZIP_CODE, CIAT.CITY, CIATT.ADDRESS_TYPE_CODE   FROM CUSTOMER_INFO CIT   LEFT OUTER JOIN CUSTOMER_INFO_ADDRESS CIAT ON CIT.CUSTOMER_ID = CIAT.CUSTOMER_ID LEFT OUTER JOIN CUSTOMER_INFO_ADDRESS_TYPE CIATT ON CIAT.CUSTOMER_ID = CIATT.CUSTOMER_ID  AND CIAT.ADDRESS_ID = CIATT.ADDRESS_ID AND CIATT.DEF_ADDRESS = 'TRUE') B  
FULL OUTER JOIN (SELECT IDENTITY, ADDRESS_ID, NAME, MOBILE, PHONE, EMAIL, FAX, BARCODECONTACT FROM (SELECT CM.IDENTITY, CM.METHOD_ID, CM.NAME, CM.VALUE, CM.ADDRESS_ID, CMC.VALUE AS BARCODECONTACT  FROM COMM_METHOD CM LEFT OUTER JOIN COMM_METHOD CMC ON CMC.OBJKEY = CM.OBJKEY WHERE CM.PARTY_TYPE = 'Customer') SOURCE  PIVOT (MAX(VALUE) FOR method_id IN ('Mobile' AS MOBILE, 'Phone' AS PHONE, 'E-Mail' AS EMAIL, 'Fax' AS FAX))  PVT )A 
ON A.IDENTITY  = B.CUSTOMER_ID 
AND A.ADDRESS_ID = B.ADDRESS_ID   
INNER JOIN  IDENTITY_INVOICE_INFO IIN   
ON NVL(LTRIM(RTRIM(B.CUSTOMER_ID)),LTRIM(RTRIM(A.IDENTITY))) = LTRIM(RTRIM(IIN.Customer_ID)) 
INNER JOIN INVOICE_CUSTOMER_TYPE_GROUP ICTG   
ON ICTG.Group_ID = IIN.Group_ID AND ICTG.COMPANY = IIN.Company  
INNER JOIN CUST_HIERARCHY_STRUCT CHS ON CHS.CUSTOMER_NO = NVL(B.CUSTOMER_ID, A.IDENTITY) 
LEFT OUTER JOIN IDENTITY_INVOICE_INFO IINCFV 
ON NVL(B.CUSTOMER_ID,A.IDENTITY) = IINCFV.IDENTITY
   )
      WHERE B.CUSTOMER_ID = 'FINCUST01';

6 replies

Addomaby
Sidekick (Partner)
Forum|alt.badge.img+3
  • Sidekick (Partner)
  • October 20, 2022

First you need to setup an IAM Client object in the Aurena client to get a secret and use this secret to query for a bearer token.

With a bearer token Authorization, you should be able to communicate via the rest the API.


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • October 20, 2022

Hi Addomaby,

I am calling with Bearer token only the objects which it returns empty. I have already taken care of authorization part.


Forum|alt.badge.img
  • Do Gooder (Partner)
  • April 12, 2023

Did you figure out what was causing this issue? 
I am seeing a similar issue, but it appears to be permission related. 

The projection will return data with IFSAPP, but if I use a user account I’ve set up, my project returns zero data. 
I have set up 7 projections, and only have one presenting this particular issue, so would be interested to understand if you found out what was causing your issue.


Forum|alt.badge.img+2

hi  jmaguire;

did you fix this issue ? 

thankyou  


Forum|alt.badge.img+1
  • Do Gooder (Partner)
  • January 29, 2025

Hi, Did anyone find a solution for this permission issue?

Thanks


  • Do Gooder (Employee)
  • March 3, 2026

Hi,

Depending on the view you are trying to query, there are few causes that will lead to return of no data,

1)  Lack of Company / Site Access

Most of the time it is about the site access, for granting site access you should navigate to User page, then find your IAM Client’s user, then click at “User Companies”, give access to necessary companies that sites are related to, after giving access to company, go back to user details, click on “View User Sites” (Sites per User page), in this page you should be able to give access to sites, and you should be able to query views related to site access.

2)  Lack of HCM Supervisor Access

HCM Supervisor access is related to HR views, since it can lead to access for sensitive information about persons, I think it is good to be cautios, for granting HCM Supervisor Access to a IAM Client you should navigate to Supervisor - Access Setup then find your IAM Client’s Person then click on “Grant HR Application Manager” after doing this, you should be able to query HR related views.

3)  Lack of Project Access

For granting project access to a IAM Client you should navigate to “Project Team” page and create new team if none exists, or add the IAM Client’s user to the project team afterwards you should be able to query views related to project view.
 

For understanding which access my IAM Client lacks, I generally go to definition of view and inside of it, you can understand which SQL filter prevents us to get the data.