shareRequisitionListByEmail mutation
This mutation is part of the B2B Storefront Compatibility Package and is only available on Adobe Commerce as a Cloud Service.
The shareRequisitionListByEmail mutation enables B2B customers to share a requisition list with colleagues within the same company in an email. The mutation requires requisitionListUid and an array of customerUids as input parameters. This mutation returns a sent_count which shows the count of emails the list has been shared to, and user_errors, if any.
Syntax
Copied to your clipboard{shareRequisitionListByEmail(input: ShareRequisitionListByEmailInput!): ShareRequisitionListByEmailOutput}
Example usage
The following example shares a requisition list to the specified customer UIDs.
Request:
Copied to your clipboardmutation ShareRequisitionListByEmail {shareRequisitionListByEmail(input: { customerUids: ["MQ==", "Mg=="], requisitionListUid: "OTc5" }) {sent_countuser_errors {codemessage}}}
Response:
Copied to your clipboard{"data": {"shareRequisitionListByEmail": {"sent_count": 2,"user_errors": []}}}
