Versions Compared

Key

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

...

TypePathDetails
device idinstance('commcaresession')/session/context/deviceidThe unique ID for the entering device
usernameinstance('commcaresession')/session/context/usernameThe username of the user entering data
user idinstance('commcaresession')/session/context/useridThe GUID of the user entering data
app versioninstance('commcaresession')/session/context/appversionThe identifier for the software application version performing form entry

Note: the userid is not the same as the the commcare-user case id. In order to access the commcare-user case id, use this expression:

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


Session Data-- Referencing the Caseid inside Form Builder

...