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

Help with Commerce Runtime Extension.

(1) ShareShare
ReportReport
Posted on by
Hello Fellow Forum Members,
 
I am trying to implement a CRT (Commerce Runtime) extension that cancels a outbound transfer is the quantity of that transfer is greater than 50 units. I was wondering if someone could help me out here. I am newer to this platform and C# in general.
 
Here is my code so far:
public async Task OnExecuting(Microsoft.Dynamics.Commerce.Runtime.Messages.Request request) {    if (request is CommitInventoryInboundOutboundDocumentOperationRequest commitInventoryInboundOutboundDocumentOperationRequest) {        String documentId = commitInventoryInboundOutboundDocumentOperationRequest.DocumentId;        var inventDocumentRequest = new GetInventoryInboundOutboundDocumentRequest(documentId, false);        var inventDocumentResponse = (await request.RequestContext.Runtime.ExecuteAsync<EntityDataServiceResponse<InventoryInboundOutboundDocument>>(inventDocumentRequest, request.RequestContext).ConfigureAwait(false));        //Whats next?    }}
Hastebin:
https://www.toptal.com/developers/hastebin (REMOVE THE ENDING / FROM THE URL :D)
 
Thank you all so much have a great one!
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 1,081

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 218 Super User 2026 Season 1

#3
SoumitraforD365 Profile Picture

SoumitraforD365 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans