InternalType function is not working on API calls

Ap_1
Tera Contributor

I have created a script include which is used for an integration, running on change_request table. There I have added one condition -

 

if(gr.getElement(fieldName).getED().getInternalType()=="glide_date_time")
value = gr.getDisplayValue(fieldName);
else
value = gr.getValue(fieldName);

 

Now when I am trying to fetch the details of the fields via Postman, with Basic Auth, it is not giving any result (as below)

 

{
    "result": []
}
 
But if I am giving the user admin role, the result is coming properly.
 
So can anyone tell me is there is any specific role required to check the internaltype of a field.
0 REPLIES 0