Establishing a Connection
The objects available within our connector are accessible from the "cdata.sapfieldglass" module. To use the module's objects directly:
- Import the module as follows:
import cdata.sapfieldglass as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("EnvironmentURL='https://myinstance.com';OAuthClientId=clientId;OAuthClientSecret=clientSecret;APIKey=xxxxxxxx-xxxx-xxxx-xxxx;")
Obtaining Your Credentials
Please contact your SAP Fieldglass representative to obtain an OAuthClientId, OAuthClientSecret, and EnvironmentURL.
Connecting to SAP Fieldglass
To authenticate to production environments, specify the following:
- APIKey: Your SAP Fieldglass API Key. This is optional, but if you encounter an error from SAP Fieldglass indicating that an API Key is required, you can request one from SAP Fieldglass administration or log in to the SAP Fieldglass Integration Tools and click Create API Application.
- OAuthClientId: The OAuth Client Id that you obtained from your SAP Fieldglass representative.
- OAuthClientSecret: OAuth Client Secret that you obtained from your SAP Fieldglass representative.
- EnvironmentURL: The SAP Fieldglass Environment URL that you obtained from your SAP Fieldglass representative.