web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Commerce MPOS Development issue

(0) ShareShare
ReportReport
Posted on by 117

Hi everyone, 

I want to make a sound alert on the receipts page when entering the barcode and the item is not defined before going to the search screen
I will explain what I did
added the folder SoundExtension
subFolder GetScanResultClientRequest

in GetScanResultClientRequest folder
GetScanResultClientRequest.ts ``
import { GetScanResultClientRequestHandler } from "PosApi/Extend/RequestHandlers/ScanResultsRequestHandlers"
import { GetScanResultClientRequest, GetScanResultClientResponse } from "PosApi/Consume/ScanResults"

export default class GetScanResultClientRequestHandlerExt extends GetScanResultClientRequestHandler {

public executeAsync(request: GetScanResultClientRequest<GetScanResultClientResponse>): Promise<Commerce.
Client.Entities.ICancelableDataResult<GetScanResultClientResponse>> {
let req: GetScanResultClientRequest<GetScanResultClientResponse> =
new GetScanResultClientRequest<GetScanResultClientResponse>(request.scanText);

System.Media.SystemSounds.Beep.Play();
return this.defaultExecuteAsync(req);
// throw new Error("Not implemented");
}
}``


manfest.jeson ``
{
"$schema": "../schemas/manifestSchema.json",
"name": "Pos_Sound_Samples",
"publisher": "Microsoft",
"version": "7.2.0",
"minimumPosVersion": "7.2.1746.0",
"extend": {
"soundalart": [
{

"apiType": "GetScanResultClientRequest",
"modulePath": "GetScanResultClientRequest/GetScanResultClientRequest"

}
]
}
}``

First, how do I know if the item is not found?

Second, how do I stop going to the search screen if there is no category?

Third, how do I make a sound alert?

Tried System.Media.SystemSounds.Beep.Play();
I don't know why he doesn't recognize him even though he is supposed to be working in .net 2.0

scsht.jpg

Unfortunately, there is no explanation on the site
docs.microsoft.com/.../pos-apis

  • huijij Profile Picture
    19,813 on at

    Hi w.sallam1,

    You'd better to insert your code with the Use rich formatting > insert > code.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 105 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 79

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 73 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans