3
2
1

I am trying to get the value of a field called 'Name' by sfc.getRawValue({Name}); 

but I am getting back null value always(although value is there), what am I doing wrong?

 

btw: I am doing this in 'Business Rule' field. The script is under Rules-> Business -> Business Rule. so from here I want to read the value of 'Name' field (Name is text field).

    CommentAdd your comment...

    3 answers

    1.  
      7
      6
      5

      If you got to the business rule, check the script editor and check the dependencies. As Glenn mentioned, you can check and update the name type to be 'Node'.

       

      1. Touqeer Ahsan

        thanks, this has done the trick.

      CommentAdd your comment...
    2.  
      2
      1
      0

       

      Thanks Glenn, I dont get your point. Just see below images if they can answer what you asked.

       

      in the last image above, singleNamePopup is 'Business Rule' field and in its script editor I want to read the value of Name field. whatever user has typed in name field.

        CommentAdd your comment...
      1.  
        2
        1
        0

        Does the {Name} dependency have a type of node or UID? These are the types that are needed to be passed to sfc.getRawValue(noderef). If it using a dependency type of string then it is already getting the field value as part of the preparation to run this script.

          CommentAdd your comment...