Create CounterParty with hierarchy validation
Developer ToolAPI IntegrationMarketingRecipe Tools
What it does
When someone sends a new entry via webhook, this automation validates that counterparty name, regions, countries, functions, and services are present. If all fields exist, it retrieves counterparty records and refreshes the OAuth token if it expires soon.
Who it's for
Procurement teams who need to validate and create counterparty records with complete hierarchy data.
How teams use this
Validate counterparty hierarchy on intake
Ensure every new counterparty entry has name, regions, countries, functions, and services before the record is created. This prevents incomplete records from entering the system.
Send validated counterparty to external system
Route validated counterparty records to an external procurement platform by adding a Rest step that sends the data after token refresh completes.
Log counterparty creation requests
Include a logging step to record each incoming counterparty entry and validation result for compliance tracking and audit purposes.
How it works
- Receive new counterparty entry. A new entry arrives via webhook in real-time with counterparty name, regions, countries, functions, and services data.
- Validate all required fields. Check that counterparty name, regions, countries, functions, and services are all present in the incoming data before proceeding.
- Retrieve counterparty records. Fetch all entries from the adp.sirioninc.net OAuth lookup table in batch mode to access existing counterparty data.
- Refresh OAuth token if expired. Check if the OAuth token expires within five minutes and call the Sirion OAuth Token Generator to refresh it when needed.