BC Idea Link
https://experience.dynamics.com/ideas/idea/?ideaid=bc659582-2687-f011-8151-7c1e52bd09f7
Description
I need to be able to call the internal functions MarckAsPaid and CancelOrder from the codeunit “Shpfy Orders API.”
I need a codeunit to be created that calls the internal functions of the codeunit.
codeunit 30234 "ShpfyOrders"
{
procedure MarkAsPaid(OrderId: BigInteger; ShopCode: Code[20]): Boolean
var
ShpfyOrdersAPI: Codeunit "Shpfy Orders API";
begin
ShpfyOrdersAPI.MarkAsPaid(OrderId, ShopCode);
end;
procedure CancelOrder(OrderId: BigInteger; ShopCode: Code[20]; NotifyCustomer: Boolean; CancelReason: Enum "Shpfy Cancel Reason"; Refund: Boolean; Restock: Boolean): Boolean
var
ShpfyOrdersAPI: Codeunit "Shpfy Orders API";
begin
ShpfyOrdersAPI.CancelOrder(OrderId, ShopCode, NotifyCustomer, CancelReason, Refund, Restock);
end;
}
I will provide the implementation for this BC Idea
BC Idea Link
https://experience.dynamics.com/ideas/idea/?ideaid=bc659582-2687-f011-8151-7c1e52bd09f7
Description
I need to be able to call the internal functions MarckAsPaid and CancelOrder from the codeunit “Shpfy Orders API.”
I need a codeunit to be created that calls the internal functions of the codeunit.
codeunit 30234 "ShpfyOrders"
{
procedure MarkAsPaid(OrderId: BigInteger; ShopCode: Code[20]): Boolean
var
ShpfyOrdersAPI: Codeunit "Shpfy Orders API";
begin
ShpfyOrdersAPI.MarkAsPaid(OrderId, ShopCode);
end;
}
I will provide the implementation for this BC Idea