26
Views
4
Comments
Solved
Few fields are Getting Empty in the API Call response.
Question

Hello All


I am calling an api in CS module  and that API action i have used in one public server action. And this server action i have consumed in UI module. Now when i am debugging application i am getting all the values for all response fields in CS Module.

Whereas i am getting few fields empty in UI Module.

So in Following screen shot i am getting  data after API Call for all Attributes in CS Module.

 But in UI Module I'm getting Empty fields for Country Region and VAT_NUMBER.

Can anyone please help me in this?

Thanks.

2021-09-06 15-09-53
Dorine Boudry
 
MVP
Solution

If you are not actually doing anything in your UI with those fields, it is perfectly normal they are empty on client side.

2025-04-30 07-30-15
Sanjay Bankar

Hello @Dorine Boudry 

Thanks your suggestion helped me.


Thanks

Sanjay

2020-01-15 22-42-23
Lucas Vilela

Hello Aaryan

Check if your references are updated, if you struct has the attribute "name in json" field filled in correctly and double check your output struct to your UI Module, check if the mappings are correct.




Also, double check the struct field types, they must match correctly

Best regards,

Lucas

2023-04-16 15-25-31
Krishnanand Pathak

Hi Aaryan,

Check the below points:

Using same structure in CS & UI module.
Any mapping missing while assignment.
Are you reassigning the Country Region and VAT_NUMBER value any where.


Regards
Krishnanand Pathak

2021-09-06 15-09-53
Dorine Boudry
 
MVP
Solution

If you are not actually doing anything in your UI with those fields, it is perfectly normal they are empty on client side.

2025-04-30 07-30-15
Sanjay Bankar

Hello @Dorine Boudry 

Thanks your suggestion helped me.


Thanks

Sanjay

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.