# Automation command not working properly if it is executed by Menu Edit Product Property

**URL:** <https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541>\
**Category:** V4 Issue\
**Created:** [September 12, 2014, 5:19am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541 "2014-09-12T05:19:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [September 12, 2014, 5:19am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/1 "2014-09-12T05:19:04Z")

</div>

Hi @emre,  
I have issue with automation command. I have automation command to update Portion Name by Ask Question action.  
The automation command works properly if it map it to order line and click it.  
But if I execute it from Menu-\>Edit Product Property and put automation command name in there, Order screen will not update until new order added or other command executed.

Sorry for duplication, I thought it was portion not update things. I don’t think it was that problem now.

Thank you,  
Sukasem

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 5:21am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/2 "2014-09-12T05:21:05Z")

</div>

Can you give example of your usage? and show your rules etc? I just mapped an ask question automation command and the question popped up just fine. So it is firing the automation commands from the menu item. Something else is causing it not to update based on your answer to the question.

If you can share your rule I might be able to help you figure it out.

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [September 12, 2014, 5:33am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/3 "2014-09-12T05:33:52Z")

</div>

Hi @Jesse  
I use this to force user to select portion.  
I create:  
Automation command: Select Portion (Ask)  
Automation command: Select Portion (Apply)

Action: Select Portion (Ask) Type: Ask Question and have Button=1pc,2pcs,3pcs… and Automation command name = Select Portion (Apply)  
Action: Select Portion (Apply) Type: Update Order and Portion Name = [:Portion Name]

Rule: Select Protion (Ask) Event: Automation Command Executed and Matches Automation command Select Portion (Ask) and Actions: Select Portion (Ask)  
Rule: Select Protion (Apply) Event: Automation Command Executed and Matches Automation command Select Portion (Apply) and Actions: Select Portion (Apply)

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 5:35am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/4 "2014-09-12T05:35:14Z")

</div>

It works fine if you do not use ask question. So let me look into why ask question will not apply it

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [September 12, 2014, 5:36am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/5 "2014-09-12T05:36:43Z")

</div>

It does apply I can see from order tags screen (right portion) but order screen (left portion) is not update

This is only when the automation command (same one) executed by Edit Product Property. It works if I press the actual button.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 5:41am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/6 "2014-09-12T05:41:10Z")

</div>

It is because you have to press Close or select another item. Let me see if i can find value for Close.

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [September 12, 2014, 5:44am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/7 "2014-09-12T05:44:12Z")

</div>

Yesh, it just weird if it execute automatically, it seem like it just wait for “Enter Key” things like that.

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [September 12, 2014, 5:49am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/8 "2014-09-12T05:49:12Z")

</div>

![](https://forum.sambapos.com/uploads/default/original/3X/4/5/45a98c2db87292945ab32c2d85d27e40d6d322c3.png)

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 5:49am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/9 "2014-09-12T05:49:35Z")

</div>

I have reproduced it… I know why it is doing it. I am trying to see if we can find a solution/workaround.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 5:51am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/10 "2014-09-12T05:51:37Z")

</div>

Wait something else is wrong then. I thought you meant something else. Mine is updating instantly.

I press hamburger and I get my question:

 ![](https://forum.sambapos.com/uploads/default/original/3X/7/5/75a5c765fb1c79b073a2b9c11ce5f1e19bca82b0.png) 

I pressed Double and it sets it as double:

 ![](https://forum.sambapos.com/uploads/default/original/3X/a/9/a9c637878077ff131e9e2715b05e5d7622f3cf7d.png)

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 5:53am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/11 "2014-09-12T05:53:55Z")

</div>

Can you show me a screenshot of your action and your rules? Something must not be configured right.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 6:00am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/12 "2014-09-12T06:00:21Z")

</div>

> [@sukasem](#):
>
> Rule: Select Protion (Apply) Event: Automation Command Executed and Matches Automation command Select Portion (Apply) and Actions: Select Portion (Apply)

You are missing Value… you should have a separate Select portion Apply event for each portion… and it should have a command value based on what portion you pressed during the question.

For your example you should have 8 Portion Apply rules… Each rule would be named Portion Apply (1pc), POrtion Apply(2pc) and so on…

Inside each rule you should have the standard Automation Command Executed Equals Your automation apply command  
AND also Command Value Equals PORTION NAME then add the action to update order and fill in the Portion .

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [September 12, 2014, 6:02am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/13 "2014-09-12T06:02:33Z")

</div>

![](https://forum.sambapos.com/uploads/default/original/3X/b/1/b111aee32c9f0a9662be8ba3d944dd5a2eb76be4.png) ![](https://forum.sambapos.com/uploads/default/original/3X/8/1/8157088444ff9ce4a90ddefa5d0142026f8b9dd8.png) ![](https://forum.sambapos.com/uploads/default/original/3X/5/1/51fc516f2f299a1d69cb0b8cd2ae85c64f8093bd.png) ![](https://forum.sambapos.com/uploads/default/original/3X/c/6/c643c3f307bc154b1ed460537ba3b367c7ff2a88.png)

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 6:03am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/14 "2014-09-12T06:03:04Z")

</div>

You are not telling it which portion to apply basically

You would need separate rules for each portion something along the lines of:  
You can take out refresh ticket it does nothing.

 ![](https://forum.sambapos.com/uploads/default/original/3X/d/2/d2257dae1f44b4f829bdae8c6e54377cb4492d52.png)

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [September 12, 2014, 6:07am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/15 "2014-09-12T06:07:16Z")

</div>

![](https://forum.sambapos.com/uploads/default/original/3X/4/b/4b38fcb578dcf7342c0181da7817c74dcfd3c6a4.png)

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 6:07am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/16 "2014-09-12T06:07:53Z")

</div>

If you want to use command value then you need to set a command value… YOu do not have one defined,.

In your question action it should be 1pc=1pc,2pc=2pc and so on

 ![](https://forum.sambapos.com/uploads/default/original/3X/4/7/47d5e03f603d181ecd4c6d071e9c4e438fb1ec8a.png)

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [September 12, 2014, 6:12am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/17 "2014-09-12T06:12:25Z")

</div>

Hmm, I did add 1pc=1pc,2pcs=2pcs …  
But mine still wont update.

Did you execute it by goto Menu -\> Select Catagory and Edit Product Property?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 6:13am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/18 "2014-09-12T06:13:13Z")

</div>

Yes you still have something set wrong.

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [September 12, 2014, 6:13am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/19 "2014-09-12T06:13:50Z")

</div>

I don’t know what wrong but if I PRESS on the automation command button, it working properly

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 12, 2014, 6:13am UTC](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541/20 "2014-09-12T06:13:58Z")

</div>

NOTE command value needs to match portion name exact.

[Next page](https://forum.sambapos.com/t/automation-command-not-working-properly-if-it-is-executed-by-menu-edit-product-property/2541.md?page=2)
