Can't subscribe to OrderItem(Order Product) workflows

Issue #1675 resolved
Artem Bezu created an issue

Hello @Scott Wells Thank you for all your hard work 🙂

I created workflow for OrderItem, but I couldn’t retrieve or deploy it through IC plugin.

Probably because IC plugin ignores this metadata.

I think it is tricky object, because even in SF UI they show this workflow in Order Section.

Comments (10)

  1. Scott Wells repo owner

    Hi, Artem. I apologize for what may be a dumb question, but how did you create a workflow for OrderItem? I don't see that listed as an option when creating a workflow rule:


  2. Artem Bezu reporter

    @Scott Wells Hello, yes, haha it is strange object. I think internally it uses OrderItem name(for SOQL, metadata file) and Order Product in UI.

    I hope I don’t give you any wrong info, not very familiar with salesforce.

    So you can see it your screenshot → Order Product

    If you create it and retrieve meta data with sfdx command line tool it creates OrderItem.workflow-meta.xml file.

    It will appear in Order workflow section.

  3. Scott Wells repo owner

    Artem, I just created a workflow rule and a workflow field update action for the Order object in the Setup UI, then went into the subscription editor and clicked the Refresh toolbar button so that it shows this new workflow metadata:


    I then clicked on Retrieve Metadata and the metadata is available for retrieval:


    After retrieval I have the correct metadata file:


    Can you explain how the process I describe above is different from the one you're following, if at all?

  4. Artem Bezu reporter

    @Scott Wells everything is right, except try to do the same with Order Product(OrderItem) object.

  5. Scott Wells repo owner

    Ah, okay. Silly mistake on my part. I wasn't correlating "Order Product" with OrderItem. I'm still able to do the same thing for workflows for that object, though:

    Subscription Issue_1675_OrderItem_Subscription.png

    Retrieval Issue_1675_OrderItem_Retrieve.png

    Retrieved Metadata File Issue_1675_OrderItem_File.png

    Can you open the subscription editor and click the Refresh toolbar button so that it shows the latest-and-greatest metadata from the org?

  6. Log in to comment