Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In some contexts in HQ where easy references aren't supported, you may need to write the reference for the "User Case" or Custom User Property from scratch, similar to Location data.


Translations for these references are provided below. The Easy Reference is how the property would be referenced from within a supported form, and the 'raw reference' can be used in other contexts to refer to the same property.


Easy ReferenceRaw Reference
#user/first_nameinstance('casedb')/casedb/case[@case_type='commcare-user'][hq_user_id=instance('commcaresession')/session/context/userid]/first_name
#user/custom_propertyinstance('casedb')/casedb/case[@case_type='commcare-user'][hq_user_id=instance('commcaresession')/session/context/userid]/custom_property

...