Sale Order : workflow to add a new item w/o loosing existing data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Marc
    Junior Member
    • Nov 2019
    • 8

    Sale Order : workflow to add a new item w/o loosing existing data

    Hi there,

    I try to update an item list order by a WF w/o loosing existing data ; I understand I have to use a formula like 'entity\addLinkMultipleId(LINK, ID)'...

    - is entity\addLinkMultipleId('itemList', ...) a good start ?
    - ...if so, where can I find my Item ID ?

    Thanks by advance,


    == update ==

    ...of course I have to use a 'Service Action' and I can find my item into the url of the product...

    *You can close this ticket*

    FYI, i found a typing error into the service action 'add sale order item ' example


    { "itemList": [ { "quantity": 1, "procuctId": "productId", "name": "Product Name", "listPrice": 100, "unitPrice": 100 } ] }
    ..."productId" and not "procuctId"


    MA

    Last edited by Marc; 11-11-2019, 12:40 PM.
  • yuri
    Member
    • Mar 2014
    • 8624

    #2
    Hi,

    You can try to use 'Run Service Action' > Add Item.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • Marc
      Junior Member
      • Nov 2019
      • 8

      #3
      Done. Thanks !

      Comment

      Working...