Versions Compared

Key

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

Multiexcerpt include macro
macro_uuid785c6088-0e28-4857-9b71-fdd34d840424
nameSoftware Plan - Standard
templateDataeJyLjgUAARUAuQ==
page[Internal] CommCare Public ManagementCommCare Help Site Design Guidance
addpanelfalse

Table of Contents

...

You can save and load properties to and from the user case just like you would with a normal case.  If you have a standard plan you will see an extra tab available on each Form Settings page:

...

You can load and save user case properties in this special tab. Be careful to keep track of which properties belong in the user case and which ones belong in case management. When you start typing a property the auto-populate function will generate a list of available properties.

...

Data associated with the user case can be found in the Case Data Export section. It will be listed as case type commcare-user and will have the same name as a mobile worker's username.

Advanced: Raw User Property References

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 Reference

Raw Reference

#user/first_name

instance('casedb')/casedb/case[@case_type='commcare-user'][hq_user_id=instance('commcaresession')/session/context/userid]/first_name

#user/custom_property

instance('casedb')/casedb/case[@case_type='commcare-user'][hq_user_id=instance('commcaresession')/session/context/userid]/custom_property