- edited description
Can't subscribe to OrderItem(Order Product) workflows
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)
-
reporter -
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: -
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. -
reporter - changed title to Can't subscribe to OrderItem(Order Product) workflows
-
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?
-
reporter @Scott Wells everything is right, except try to do the same with Order Product(OrderItem) object.
-
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
Retrieval
Retrieved Metadata File
Can you open the subscription editor and click the Refresh toolbar button so that it shows the latest-and-greatest metadata from the org?
-
reporter @Scott Wells ou, yes, after I push refresh button, it is here now. My bad Thank you.
-
reporter - changed status to resolved
Don't forget to push refresh button in Subscription menu if you added new object.
-
repo owner Not a problem. Glad it was something simple in the end!
- Log in to comment