Expand my Community achievements bar.

SOLVED

Save Document of Record in SharePoint List on form submission

Avatar

Level 1

Hello,

I'm using AEM aa CS. I have an adaptive form that needs to submit the document of record to a SharePoint list. The submission of form data only works as expected. However, when I try to save the DoR it doesn't submit. What configurations do I need to do?

Screenshot 2024-11-22 at 16.30.38.png

What type of column needs to be set in the SharePoint list in order to save the dor? Also, how do I bind the DoR to the model?

Any documentation, or examples, would be greatly appreciated.

 

Thank you,

Ana

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

Confirmed with engineering, this use case is not supported.

As of now only attachments can be saved in share point list.

please log  a feature request to get this capability in the product .

View solution in original post

5 Replies

Avatar

Employee

We can do a web session 

send a DM via email

Avatar

Employee

Let’s do the teams call at 11:30 PST today

please send me the link via DM

thanks

Avatar

Employee

This is possible. Once the SP list FDM is configured.
In adaptive form submit action select submit to fdm, select document of record checkbox and map the bind ref to attachment field. This should suffice.

let me know if this doesn’t work, we can have a teams call

so looks like you can only save either  attachments or DoR in the attachments column

Avatar

Level 1

Hi Girish,

I tried the above and I received the following error message when I tried to save the binding ref to the attachment field:

ana_iensemble_0-1732716301298.png

 

I tried the below combinations as a fix but with no success: $.simple_submission.Attachments, /Attachments, $.Attachments

 

Please DM me with some time slots when you would be available.

Many thanks for looking into this.

 

In preparation for our call, I'm listing some errors that I can see in the logs:

  1. *ERROR* [...] POST /content/forms/af/.../guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.servlet.GuideSubmitServlet Could not complete Submit Action due to java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.beanutils.BeanMap
    org.apache.sling.api.scripting.ScriptEvaluationException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.beanutils.BeanMap
    at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.wrapException(JspServletWrapper.java:607) [org.apache.sling.scripting.jsp:2.6.3.T20240918101441-6fe463b]
    1. Caused by: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.beanutils.BeanMap
      at org.apache.sling.scripting.jsp.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:902)
    2. Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: org/apache/commons/collections/Transformer [in thread "... POST /content/forms/af/.../guideContainer.af.submit.jsp HTTP/1.1"]
      at java.base/java.lang.ClassLoader.defineClass1(Native Method)

errors when selecting a custom XDP template for DoR

  1. *ERROR* [...] POST /libs/fd/fm/content/basemanage.json HTTP/1.1] com.adobe.aem.formsndocuments.service.impl.DoRTemplateServiceImpl Error in getting LMT
    com.adobe.aemforms.fm.exception.FormsMgrException: com.adobe.aemforms.fm.exception.FormsMgrException: com.adobe.aemforms.fm.exception.FormsMgrException: Invalid XFA Adaptive Form at path:/content/forms/af/.../myform. xdpRef property was not found.
    at com.adobe.aem.formsndocuments.service.impl.FormsRelationServiceImpl.getRelatedChildAssets(FormsRelationServiceImpl.java:151) 
    1. Caused by: com.adobe.aemforms.fm.exception.FormsMgrException: com.adobe.aemforms.fm.exception.FormsMgrException: Invalid XFA Adaptive Form at path:/content/forms/af/.../myform. xdpRef property was not found.
      at com.adobe.aem.formsndocuments.service.impl.FormsRelationServiceImpl.getRelatedChildFMAssets(FormsRelationServiceImpl.java:218) 
    2. Caused by: com.adobe.aemforms.fm.exception.FormsMgrException: Invalid XFA Adaptive Form at path:/content/forms/af/.../myform. xdpRef property was not found.
      at com.adobe.aem.formsndocuments.util.FMUtils.getDORRefPath(FMUtils.java:588)

Guessing they are coming from this config:

ana_iensemble_1-1732716925585.png

Thank you!

Avatar

Correct answer by
Employee

Confirmed with engineering, this use case is not supported.

As of now only attachments can be saved in share point list.

please log  a feature request to get this capability in the product .