Prerequisite, you have registered an SAP SuccessFactors system in your Global Account (see here). Creating the sap-successfactors-extensibility service can be done via command line:
1 2 3 4 5 6 | #Created the service instance #An HTTP destination on a subaccount level with the same name as the service instance name is automatically generated cf create-service sap-successfactors-extensibility api-access myInstanceName -c '{"systemName": "SFCPART000000","technicalUser": "sfadmin"}' #Bind the instance to an application cf bind-service myApp-srv myInstanceName |
Find an explanation of the parameters here: https://help.sap.com/docs/btp/sap-business-technology-platform/authentication-type-json-file
This service instance will result in creating:
- a separate OAuth2 client application on SFSF side (can find in SF in Manage OAuth2 Client Applications)
- a separate destination definition on a BTP sub-account level
The technicalUser parameter can be specified only during creation. There is no possibility to provide it afterwards using cf update-service
. It may be possible to manually update the technicalUser in the destination, which got automatically created. But I did not test this yet.
Of course, the same service creation can also be done via mta.yaml.
01 02 03 04 05 06 07 08 09 10 11 12 13 | resources: ##################################################################################################################### # SuccessFactors Extensibility Service ##################################################################################################################### - name : myInstanceName type: org.cloudfoundry.managed-service #type: org.cloudfoundry.existing-service parameters: service: sap-successfactors-extensibility service-plan: api-access config: systemName: SFCPART000000 # <-- Provide your system name technicalUser: sfadmin |
For initial deployment, you need the line type: org.cloudfoundry.managed-service
. For all further deployments, you have to comment that line out and comment in the next line type: org.cloudfoundry.existing-service
. Else you will receive an error. Read more about that behavior here:https://github.com/SAP-samples/successfactors-extension-calculate-employee-seniority/issues/2