21 August 2023
B2BAudit LogCustomersQuotesOrdersGraphQL
We have extended the capabilities of Audit Log to identify changes made by Associates in the context of a Business Unit.
To help you filter Records, we've added the
associateId query parameter to the Query Records endpoint. This allows you to filter Records by key for the following resource types: business-units, orders, quote-requests, and quotes.Changes:
- [API] Added query parameter
associateIdto the Query Records endpoint. - [API] Added
associatefield to themodifiedByproperty of Record. - [API] Updated enum
typefield ofmodifiedByproperty of Record to includeassociateoption. - [GraphQL API] Changed the Query type:
- Added the
associateIdproperty to the following fields:businessUnits,businessUnit,orders,order,quotes,quote,quoteRequests,quoteRequest.
- Added the
- [GraphQL API] Changed the
ChangeHistorytype:- Added
associatefield tomodifiedByproperty ofChangeHistory.
- Added
- [GraphQL API] Changed the
ModifiedByTypeenum:- Added
associateoption.
- Added
The following change was introduced in terms of GraphQL SDL:
enum ModifiedByType {
user
externalUser
associate
}
type Initiator {
isPlatformClient: Boolean!
id: String
type: ModifiedByType!
customer: Reference
anonymousId: String
clientId: String
associate: Reference
}
extend type Query {
businessUnits(
associateId: String
): ChangeHistoryQueryResults!
businessUnit(
associateId: String
): ChangeHistoryQueryResults!
orders(
associateId: String
): ChangeHistoryQueryResults!
order(
associateId: String
): ChangeHistoryQueryResults!
quotes(
associateId: String
): ChangeHistoryQueryResults!
quote(
associateId: String
): ChangeHistoryQueryResults!
quoteRequests(
associateId: String
): ChangeHistoryQueryResults!
quoteRequest(
associateId: String
): ChangeHistoryQueryResults!
}