Skip to content

[BC Idea]: Add requested procedures in facade codeunit to match BC behavior. #7867

@arvindbinarystream

Description

@arvindbinarystream

BC Idea Link

NA

Description

We need additional procedures to be exposed in the Shopify Product facade codeunit. This codeunit was originally added at our request so that we could replicate standard Shopify behavior while extending it for our product. At the time, we reviewed the implementation and requested the procedures we needed.

However, it appears that in version 28 Microsoft introduced a new procedure, CheckItemAttributesCompatibleForProductOptions(), which is now invoked by the Add to Shopify action on the Item Card page. Since our goal is to match native Shopify behavior, we want to call this procedure as well. Unfortunately, both the procedure and the codeunit where it resides are marked as internal, which prevents us from accessing them.

We would greatly appreciate having this change included in an upcoming minor build (v28.x.x.x). This would allow us to ship our product with the latest Shopify functionality while maintaining our required customizations.

Requested Change:

Codeunit 30234 "Shpfy Product"

procedure GetProductUrl(Item: Record Item; ShopCode: Code[20]): Text
var
begin
    exit(SyncProducts.GetProductUrl(Item, ShopCode));
end;

procedure CheckItemAttributesCompatibleForProductOptions(Item: Record Item; ShopifyShop: Record "Shpfy Shop"): Boolean
var
    ProductExport: Codeunit "Shpfy Product Export";
begin
    ProductExport.SetShop(ShopifyShop);
    exit(ProductExport.CheckItemAttributesCompatibleForProductOptions(Item));
end;

page 30144 "Shpfy Add Item Confirm"

Please remove the access restrictions from these procedures. Since this page is only used to display a confirmation, I believe this would be a relatively minor change

procedure SetIsActive(Active: Boolean)
begin
    IsActive := Active;
end;

procedure SetItemDescription(Description: Text[100])
begin
    ItemDescription := Description;
end;

procedure SetShopCode(Code: Code[20])
begin
    ShopCode := Code;
end;

I will provide the implementation for this BC Idea

  • I will provide the implementation for this BC Idea

Metadata

Metadata

Assignees

No one assigned

    Labels

    BCIdeaIssue related to a BCIdeaIntegrationGitHub request for Integration area

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions