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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tothewine
    Active Community Member
    • Jan 2018
    • 373

    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);
  • tanya
    Senior Member
    • Jun 2014
    • 4308

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

    Comment

    • tothewine
      Active Community Member
      • Jan 2018
      • 373

      #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

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        yes. check it

        Comment

        • Patrick
          Member
          • Sep 2016
          • 46

          #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, 01:45 PM.

          Comment

          Working...