cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Field Service Management - API call issue

aelsiar
Explorer
0 Kudos

Hello Experts

I am trying to consume the SAP Field Service Management API from the postman/cURL. But it is resulting in the HTML page (FSM shell page). Please find the attached screenshot.

Can you please suggest me if we need to perform any step(s) to enable the API at SAP FSM cloud side.

Followed the below steps

  1. Query The Directory Service For FSM Account Details

. curl -L -X GET https://ds.coresystems.net/ds/api/directory/v1/accounts/API-Quick-Start

https://help.sap.com/docs/SAP_FIELD_SERVICE_MANAGEMENT/fsm_api_quick_start_guide/api-example-directo...fsm-apicall-error.jpg

Accepted Solutions (1)

Accepted Solutions (1)

r_barabas
Advisor
Advisor
0 Kudos

Hi Anselm

Same thing here, the base URL for your DATA API requests needs to be de.coresuite.com instead of de.coresystems.net.

I noticed our documentation for DATA API has this all wrong and asked to documentation team to fix it. Sorry for that!

Best regards

Raphael Barabas

aelsiar
Explorer
0 Kudos

Hello Raphael

It works now. Thanks for your inputs.

Answers (1)

Answers (1)

r_barabas
Advisor
Advisor
0 Kudos

Hi Anselm

As of 2023 the base URL

  • for main cloud services is coresuite.com
  • for web apps and microservices is coresystems.net

So this URL will work for your query:

https://ds.coresuite.com/ds/api/directory/v1/accounts/API-Quick-Start

Best regards

Raphael Barabas

aelsiar
Explorer
0 Kudos

Hello Raphael

Thanks for your response. Yes, it works for directory service. But it does not work if I tried to make a SAP FSM Data API call. But it is resulting in the HTML page (FSM shell page).

For example, if I tried to access the URL https://de.coresystems.net/api/data/v4/Equipment?dtos=Equipment.23 and returning shell page.

Note : I have generated the token and also added following parameters in the header section in the postman API request

  1. X-Account-ID
  2. X-Account-Name
  3. X-Client-ID
  4. X-Client-Version
  5. X-Company-ID

Please suggest me if I am missing something here.