List Forms API meta vs metadata

Hi,

I am using the List Forms API to retrieve our app data. I am seeing several fields that are prefixed either with “meta” or “metadata” that look exactly the same to me, such as meta_username and metadata_username. What is the difference between these fields?

Hi Naledi

There are two ‘metadata’ sections in the API response, metadata and form.meta. All the data under ‘form’ is a direct representation of what was sent from the mobile device. It’s a direct conversion of the XML form into JSON format and this includes the meta section of the form XML.

The other section, metadata is essentially the same information but it’s stored separately from the form for easier access by CommCare. There shouldn’t be a difference between the two and you could expect that the data would match.

Thanks a lot for the reply Simon. That makes sense :slightly_smiling_face: