Skip to content

Commit

Permalink
rename codeunit
Browse files Browse the repository at this point in the history
  • Loading branch information
petemchlk committed Oct 30, 2024
1 parent 4f0ff2e commit cfa6b3b
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
namespace Microsoft.Integration.Shopify;

/// <summary>
/// Codeunit Shpfy Skip Record (ID 30313).
/// </summary>
codeunit 30313 "Shpfy Skipped Record"

Check failure on line 6 in Apps/W1/Shopify/app/src/Logs/Codeunits/ShpfySkippedRecord.Codeunit.al

View workflow job for this annotation

GitHub Actions / Build 1st Party Apps (W1) (Translated) / 1st Party Apps (W1) (Translated)

AL0197 An application object of type 'Codeunit' with name 'Shpfy Skipped Record' is already declared by the extension 'Shopify Connector by Microsoft (26.0.2147483647.0)'

Check failure on line 6 in Apps/W1/Shopify/app/src/Logs/Codeunits/ShpfySkippedRecord.Codeunit.al

View workflow job for this annotation

GitHub Actions / Build 1st Party Apps (W1) (Translated) / 1st Party Apps (W1) (Translated)

AL0264 An application object of type 'Codeunit' with ID '30313' is already declared by the extension 'Shopify Connector by Microsoft (26.0.2147483647.0)'
{
Access = Internal;
Permissions = tabledata "Shpfy Skipped Record" = rimd;

/// <summary>
/// Creates log entry for skipped record.
/// </summary>
/// <param name="ShopifyId">Related Shopify Id of the record.</param>
/// <param name="TableId">Table Id of the record.</param>
/// <param name="RecordId">Record Id of the record.</param>
/// <param name="SkippedReason">Reason for skipping the record.</param>
/// <param name="Shop">Shop record.</param>
internal procedure LogSkippedRecord(ShopifyId: BigInteger; RecordId: RecordID; SkippedReason: Text[250]; Shop: Record "Shpfy Shop")
var
SkippedRecord: Record "Shpfy Skipped Record";
begin
if Shop."Logging Mode" = Enum::"Shpfy Logging Mode"::Disabled then
exit;
SkippedRecord.Init();
SkippedRecord.Validate("Shopify Id", ShopifyId);
SkippedRecord.Validate("Table ID", RecordId.TableNo());
SkippedRecord.Validate("Record ID", RecordId);
SkippedRecord.Validate("Skipped Reason", SkippedReason);
SkippedRecord.Insert(true);
end;

/// <summary>
/// Creates log entry for skipped recordwith empty Shopify Id.
/// </summary>
/// <param name="RecordId">Record Id of the record.</param>
/// <param name="SkippedReason">Reason for skipping the record.</param>
/// <param name="Shop">Shop record.</param>
internal procedure LogSkippedRecord(RecordId: RecordID; SkippedReason: Text[250]; Shop: Record "Shpfy Shop")
begin
LogSkippedRecord(0, RecordId, SkippedReason, Shop);
end;

}

0 comments on commit cfa6b3b

Please sign in to comment.