Announcement

Collapse
No announcement yet.

How to get fields of target entity during workflow or process?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get fields of target entity during workflow or process?

    How do I get a field/attribute of target entity during BPM Task flow or Workflow when creating new entity?

    For example I create a task after a call is created and I want to add the original call's ID to the task's description.

    Code:
    $call_id = ?; description = string\concatenate('Trigger: Creation of entity #', $call_id);

  • #2
    Hello,
    here you can find the information https://www.espocrm.com/documentatio...ula-in-actions
    Job Offers and Requests

    Find Developer
    Find Customer

    Comment


    • #3

      Ok so this is the updated code, right?
      Code:
      $call_id = targetEntity\attribute('id'); description = string\concatenate('Trigger: Creation of entity #', $call_id);

      Comment


      • #4
        yes. check it
        Job Offers and Requests

        Find Developer
        Find Customer

        Comment


        • #5
          tanya
          Thank you for your discussion. I have another question, where to get the list of attributes? I only know a few: which might not be correct though.

          e.g.
          entity\attribute("id");
          targetEntiry\attribute("id1");
          relatedEntity\attributed("id2");

          where to get a comprehensive list of

          entity targetEntity relatedEntity anything else?
          id, name, anything else?
          Last edited by Patrick; 02-25-2019, 12:45 PM.

          Comment

          Working...
          X