-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Shopify] Customer/Company Metafields #27542
[Shopify] Customer/Company Metafields #27542
Conversation
…tomer metafields in shopify
PromotedCategory = Process; | ||
PromotedIsBig = true; | ||
PromotedOnly = true; | ||
ToolTip = 'Add metafields to a product. This can be used for adding custom data fields to products in Shopify.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ToolTip = 'Add metafields to a product. This can be used for adding custom data fields to products in Shopify.'; | |
ToolTip = 'Add metafields to a company. This can be used for adding custom data fields to products in Shopify.'; |
PromotedCategory = Category4; | ||
PromotedIsBig = true; | ||
PromotedOnly = true; | ||
ToolTip = 'Add metafields to a product. This can be used for adding custom data fields to products in Shopify.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ToolTip = 'Add metafields to a product. This can be used for adding custom data fields to products in Shopify.'; | |
ToolTip = 'Add metafields to a company. This can be used for adding custom data fields to products in Shopify.'; |
PromotedCategory = Category4; | ||
PromotedIsBig = true; | ||
PromotedOnly = true; | ||
ToolTip = 'Add metafields to a product. This can be used for adding custom data fields to products in Shopify.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ToolTip = 'Add metafields to a product. This can be used for adding custom data fields to products in Shopify.'; | |
ToolTip = 'Add metafields to a customer. This can be used for adding custom data fields to products in Shopify.'; |
PromotedCategory = Process; | ||
PromotedIsBig = true; | ||
PromotedOnly = true; | ||
ToolTip = 'Add metafields to a product. This can be used for adding custom data fields to products in Shopify.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ToolTip = 'Add metafields to a product. This can be used for adding custom data fields to products in Shopify.'; | |
ToolTip = 'Add metafields to a customer. This can be used for adding custom data fields to products in Shopify.'; |
Had to fix ID clashes: |
@tinestaric, could you update the objects IDs as stated above? You will also need to update the app.json of the test app, by adding the following range: When done, I'll merge this PR. |
Added additional requirements to edit Metafields. In case of import AllCompanies and AllCustomers metafields would be overwritten with values from Shopify before it would be exported. |
@petemchlk, I've already processed this PR internally. Your most recent changes won't be part of this PR 😟 Could you maybe create a new PR for that, once this one is merged? But for this to become merged, I need you to update the ID as instructed above. |
@JesperSchulz updated IDs, should I remove these additional changes? |
No, I'll merge them in. Looks like it's a rather limited change 😊 |
@petemchlk, you may see that your last changes shortly disappear from this repo again, as we're force syncing the repo code with a version, which doesn't yet contains your last changes. But don't worry, they will be back in a later sync 😊 |
@JesperSchulz thanks! so no need to create additional PR? |
Nope, all done 😊 |
This pull request does not have a related issue as it's part of delivery for development agreed directly with @AndreiPanko
Fixes #26819
Existing metafield engine applied to integrate Customer and Company metafields
Changes done to apply the engine:
ShpfyGQLCompany.Codeunit.al
andShpfyGQLCustomer.Codeunit.al
GQL query to get metafields with required properties in response. Removed the namespace from query to retreive all metafields.Shpfy GQL CustomerMetafieldIds
andShpfy GQL CompanyMetafieldIds
to makeRetrieveMetafieldsFromShopify
function work with Company and Customer.GetOwnerType
procedure inShpfy Metafield
tableCollectMetafieldIds
local procedure inShpfy Metafield API
codeunit to support all Ownet types in functionFixes AB#556298