ashhad
Occasional Member - Level 1

Not getting field "firstname" and "lastname" in look up comment API

Checked the response body of Look Up Comment API (under expense report service apis) - we are not getting First Name and Last Name values. On going through the API version history, we found that these are now removed from the response body. 

Just need to check is there any other API / workaround available to get the First Name and Last Name values of Approver's with comments of Expense report. Request you to kindly share the updates.

 

 API end point we are using : /expensereports/v4/users/{userId}/context/{contextType}/reports/{reportId}/expenses/{expenseId}/comments

API change log : Overview | Expense Report Service | SAP Business Accelerator Hub

2 REPLIES 2
KevinD
Community Manager
Community Manager

@ashhad sending this to my API guy to see if he can provide some insight.


Thank you,
Kevin
SAP Concur Community Manager
Did this response answer your question? Be sure to select “Accept as Solution” so your fellow community members can be helped by it as well.
TChapman
SAP Concur Employee
SAP Concur Employee

Apparently I am the API guy 🙂

Yes you can get the information, but you need to make a second call.  In the response JSON , you will get the comment and an "author" section.   In that section will be an employeeUuid.  Use that to call Identity v4 to get the information on the author.  In your instance, the name, but you could also get email, empid, etc  See more information at: https://developer.concur.com/api-reference/expense/expense-report/v4.comments.html