volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Can I load form data with just the data ID?

Is it possible to get XForm data with just the form data ID, or do you have to have the form ID too?

This exists:

XFormData.CreateInstance(Guid id)

However, it's marked as deprecated and always returns NULL.  If you pass in the form ID to the overload, it works fine.

If I just have the form data ID (not the form ID), can I load the data?

#52496
Jul 31, 2011 1:49

Hi Deane

What are you trying to achieve? Assuming you are using CMS 6 upwards then you can use the DDS to grab xform data directly (OK but you do need the form id). Linus Ekström put a good post about this together a while back:

http://world.episerver.com/Blogs/Linus-Ekstrom/Dates/2010/7/Using-the-dynamic-data-store-with-XForms/ 

David

#52497
Jul 31, 2011 16:28
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.