Question

Photo of Dillan Cagnetta

0

setting an attribute to Connection Status in a Workflow

i am using SET ATTRIBUTE VALUE action

with LAVA of {{ Person.ConnectionStatus }} in text value but i get an error 

HttpException in

Message
Request timed out.

Stack Trace

  • Photo of David Leigh

    1

    Hi Dillan,

    I had a similar issue with the "Set Attribute From Entity" workflow action.
    I got the desired result using the "ConnectionStatusValue" property instead.
    This property represents a DefinedValue object, so d
    epending on your requirements you can try accessing one of its nested properties.

    For example, "{{ Person.ConnectionStatusValue.Value }}" or "{{ Person.ConnectionStatusValue.Description }}".

    Hope this helps.

    • Dillan Cagnetta

      Hi David, i know its been a while but i just needed this again! I used the "Set Attribute From Entity" action and my custom lava is
      {{ Entity.Person.ConnectionStatusValue.Value }}
      im trying set the value of Text attribute called connection status


      however when i send this in a form its blank?


      any help is appreciated

    • David Leigh

      Dillan, where are you using this Lava? If the Entity is a Person, try just using "{{ Person.ConnectionStatusValue.Value }}. If "Person" is an Attribute of a Workflow, remember that the value of the Attribute is not a Person object, but a GUID. In that case, you would need to use the PersonByGuid Lava filter to create a Person object first. There is a good example of how to do this in the Lava documentation.

    • Dillan Cagnetta

      David, in "Set Attribute From Entity" .. "Lava Template" area ..., I inserted "{{ Person.ConnectionStatusValue.Value }}"
      which is assigned to a "Text" workflow attribute


      but it still shows blank in the form I used to view it next

    • David Leigh

      If "Person" is the name of the Workflow Attribute, then you need to use something like in your Lava:
      {% assign personGuid = Workflow | Attribute:'Person' %}{% assign thePerson = personGuid | PersonByGuid %}{{ thePerson.ConnectionStatusValue.Value }}