ACP2E-4552: GraphQL response does not return company status
The ACP2E-4552 patch fixes the issue where the company status is not returned in the GraphQL response. This patch is available when the Quality Patches Tool (QPT) 1.1.80 is installed. The patch ID is ACP2E-4552. Please note that this issue is scheduled to be fixed in Adobe Commerce B2B 1.5.2-p3.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) B2B 1.5.2-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) B2B >=1.5.0 <1.5.3
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 response does not return the company status.
Prerequisites:
B2B is installed.
Steps to reproduce:
-
In the Admin, go to Stores > Settings > Configuration > General > B2B Features, and set Enable Company to
Yes. -
Log in to the Commerce Admin as an administrator.
-
Create three companies with these statuses: Active, Rejected, and Pending Approval.
-
In the Admin, go to Customers > All Customers. Open a customer account, and from the Associate to Company list, assign the customer to each of the created companies.
-
Send the following GraphQL request:
code language-none { customer { firstname lastname email status companies { items { id legal_name name status } } } }
Expected results:
The GraphQL response returns the correct status values (such as Active, Pending Approval, Rejected, and Blocked) for all companies associated with the customer. The response can also be filtered or sorted by company status.
Actual results:
The GraphQL response does not include the company status values for companies associated with the customer.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe 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.