This page has moved to Adobe Experience League and will be redirected soon.
MDVA-44147: GraphQL request doesn't return Requisition Lists
MDVA-44147: GraphQL request doesn't return Requisition Lists
The MDVA-44147 patch fixes the issue where GraphQL request doesn't return Requisition Lists. This patch is available when the Quality Patches Tool (QPT) 1.1.14 is installed. The patch ID is MDVA-44147. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.5.
Affected products and versions
The patch is created for Adobe Commerce version:
Adobe Commerce (all deployment methods) 2.4.3-p1
Compatible with Adobe Commerce versions:
Adobe Commerce (all deployment methods) 2.4.2 - 2.4.4
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches
package to the latest version and check the compatibility on the [!DNL Quality Patches Tool]: Search for patches page . Use the patch ID as a search keyword to locate the patch.
Issue
GraphQL request doesn't return Requisition Lists.
Steps to reproduce :
Go to Store > Settings > Configuration > General > B2B Features and enable Requisition List.
Log in as a customer and add a product to the Requisition List .
Create a Customer Token .
mutation {
generateCustomerToken(
email: "test@gmail.com"
password: "xxxxxxxx"
) {
token
}
}
Use the following query to retrieve all the Requisition Lists from the customer. Use the Authorization header with the value Bearer <customer_token>
. Refer to the Customer Query article in our developer documentation for more information.
Request:
query {
customer {
requisition_lists(
pageSize: 20
) {
items {
uid
name
description
items(pageSize: 20) {
items {
uid
product {
uid
name
sku
__typename
}
quantity
}
total_pages
}
}
total_count
}
}
}
Response:
{
"data": {
"customer": {
"requisition_lists": {
"items": [
{
"uid": "MQ==",
"name": "Name",
"description": "Description",
"items": {
"items": [
{
"uid": "MQ==",
"product": {
"uid": "MQ==",
"name": "Simple 01",
"sku": "s00001",
"__typename": "SimpleProduct"
},
"quantity": 1
}
],
"total_pages": 1
}
}
],
"total_count": 1
}
}
}
}
Copy the UID of any item from the list returned (MQ==) and use the following query to get the list filtered by the UID.
query {
customer {
requisition_lists(
pageSize: 20,
filter: {
uids: {
eq: "MQ=="
}
}
) {
items {
uid
name
description
items(pageSize: 20) {
items {
uid
product {
uid
name
sku
__typename
}
quantity
}
total_pages
}
}
total_count
}
}
}
Expected results :
One result is returned.
Actual results :
Zero results are returned.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
To learn more about Quality Patches Tool, refer to:
For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.
Was this article helpful?
Yes
No
0 out of 0 found this helpful