ACSD-66434: Customer ID missing from company GraphQL queries
The ACSD-66434 patch fixes the issue where Customer ID is missing from company GraphQL queries. This patch is available when the Quality Patches Tool (QPT) 1.1.67 is installed. The patch ID is ACSD-66434. Please note that this issue is scheduled to be fixed in ÃÛ¶¹ÊÓÆµ Commerce 2.4.9.
Affected products and versions
The patch is created for ÃÛ¶¹ÊÓÆµ Commerce version:
- ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.7-p5
Compatible with ÃÛ¶¹ÊÓÆµ Commerce versions:
- ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.6-p10 - 2.4.6-p11, 2.4.7-p3 - 2.4.8-p1
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
The GraphQL company query returns null
for the Customer ID in the company structure.
Steps to reproduce:
- Install ÃÛ¶¹ÊÓÆµ Commerce 2.4-develop with B2B and Inventory modules.
- From the Commerce Admin, enable B2B features and create a test company.
- Generate a bearer token for the company admin using the following GraphQL mutation:
mutation {
generateCustomerToken(email: "admin_email@example.com", password: "admin_password") {
token
}
}
- Use the generated token to retrieve the customer’s company structure with the following GraphQL query:
query {
company {
id
name
legal_name
structure {
items {
entity {
__typename
... on Customer {
firstname
lastname
email
job_title
id
}
}
}
}
}
}
Expected results:
Customer ID should be returned in the company GraphQL query.
Actual results:
Customer ID returns as null
in the company GraphQL query.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- ÃÛ¶¹ÊÓÆµ Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- ÃÛ¶¹ÊÓÆµ Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.