{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":21213,"path":"integrate-applications/integration-hub/fieldglass-setup.md","title":"Set up the SAP Fieldglass spoke","bundle":null,"doc_type":null,"release":"australia","body":"\n# Set up the SAP Fieldglass spoke\n\nIntegrate the ServiceNow instance and SAP Fieldglass account using API keys to authenticate ServiceNow requests.\n\n## Before you begin\n\n-   Request an Integration Hub subscription.\n-   Activate SAP Fieldglass spoke.\n-   Role required: admin\n\n## Procedure\n\n1.  Configure the connection and credential alias record for the SAP Fieldglass buyer instance.\n\n    1.  Navigate to **Connections &amp; Credentials** &gt; **Connections &amp; Credentials Aliases**.\n\n    2.  Open the record, **SAPFieldGlassBuyer**.\n\n    3.  Click the Create New Connection &amp; Credential related link.\n\n    4.  On the form, fill these values.\n\n        |Field|Description|\n        |-----|-----------|\n        |Please Enter the Connection Information|\n        |Name|Name to identify the connection record. For example, `SAP Fieldglass Buyer Connection`.|\n        |Connection URL|URL of the SAP Fieldglass buyer instance.|\n        |Please Enter the Credential Information|\n        |Name|Name to identify the credential record. For example, `SAP Fieldglass Buyer Credential`.|\n        |User name|User name to log in to your SAP Fieldglass buyer instance.|\n        |Password|Password to log in to your SAP Fieldglass buyer instance.|\n        |APIKey|API key of your SAP Fieldglass buyer instance.|\n\n    5.  Click **Create**.\n\n2.  Configure the connection and credential alias record for the SAP Fieldglass supplier instance.\n\n    1.  Navigate to **Connections &amp; Credentials** &gt; **Connections &amp; Credentials Aliases**.\n\n    2.  Open the record, **SAPFieldGlassSupplier**.\n\n    3.  Click the Create New Connection &amp; Credential related link.\n\n    4.  On the form, fill these values.\n\n        |Field|Description|\n        |-----|-----------|\n        |Please Enter the Connection Information|\n        |Name|Name to identify the connection record. For example, `SAP Fieldglass Supplier Connection`.|\n        |Connection URL|URL of the SAP Fieldglass supplier instance.|\n        |Please Enter the Credential Information|\n        |Name|Name to identify the credential record. For example, `SAP Fieldglass Supplier Credential`.|\n        |User name|User name to log in to your SAP Fieldglass supplier instance.|\n        |Password|Password to log in to your SAP Fieldglass supplier instance.|\n        |APIKey|API key of your SAP Fieldglass supplier instance.|\n\n    5.  Click **Create**.\n\n3.  Create flow to generate buyer token.\n\n    1.  Navigate to **Flow Designer** &gt; **Designer**.\n\n    2.  Create a flow and include the Get Buyer Token spoke action.\n\n        For more information about creating flows, see [Building flows](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/build-workflows/flows.md).\n\n    3.  Select the buyer credential record for **Credentials \\[SAP Fieldglass Buyer Credentials\\]**.\n\n        \\[Omitted image \"fieldglass-buyer-token.png\"\\] Alt text: Generate buyer token\n\n    4.  Test the flow.\n\n        After successful execution, these fields are auto-populated in the SAP Fieldglass Buyer credential record:\n\n        -   **Access Token**: Access token is generated.\n        -   **Token Status**: Status is set to **Active**.\n        -   **Expiry**: Expiry date and time of the access token is displayed.\n4.  Create flow to generate supplier token.\n\n    1.  Navigate to **Flow Designer** &gt; **Designer**.\n\n    2.  Create a flow and include the Get Supplier Token spoke action.\n\n        For more information about creating flows, see [Building flows](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/build-workflows/flows.md).\n\n    3.  Select the supplier credential record for **Credentials \\[SAP Fieldglass Supplier Credentials\\]**.\n\n    4.  Test the flow.\n\n        After successful execution, these fields are auto-populated in the SAP Fieldglass Supplier credential record:\n\n        -   **Access Token**: Access token is generated.\n        -   **Token Status**: Status is set to **Active**.\n        -   **Expiry**: Expiry date and time of the access token is displayed.\n\n"}}