related Entity in Workflow Formula Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Necromos
    Junior Member
    • Apr 2023
    • 3

    #1

    related Entity in Workflow Formula Script

    Hello,
    need some advice :-)

    How to get the account.billingaddress... field values in a formulascript inside a workflow ?
    I have...
    Code:
    $casename = workflow\targetEntity\attributeFetched('name');
    $accountname = workflow\targetEntity\attributeFetched('account.name');
    $accountstrasse= workflow\targetEntity\attributeFetched('account.billingaddressstreet');
    $accountplz=workflow\targetEntity\attributeFetched('account.billingaddresspostalcode');
    $accountort=workflow\targetEntity\attributeFetched('account.billingaddresscity');
    $casename and $accountname are working just fine, but $accountstrasse, $accountplz and $accountort not..
    The result looks like this...
    Code:
    {
        "casename":"Wasser im Keller",
        "Name":"Mustermann",
        "Strasse":"{$$accountstrasse}",
        "PLZ":"{$$accountplz}",
        "Ort":"{$$accountort}"
    }​
    anybody an idea how to get the values ?

    Click image for larger version

Name:	espoWorkflow.png
Views:	0
Size:	49.7 KB
ID:	125190

    Thanks in advance :-)
  • victor
    Active Community Member
    • Aug 2022
    • 1143

    #2
    Incorrect field attributes were entered for three variables:

    account.billingaddressstreet -> account.billingAddressStreet
    account.billingaddresspostalcode -> account.billingAddressPostalCode
    account.billingaddresscity -> account.billingAddressCity
    Last edited by victor; Today, 06:06 PM.

    Comment

    Working...