Hi
I get an error using the SubmitToSharepointList command.
qRules version: 5.2
For test I have made a simple testform, that submits to a standard SP Announcement list (Title, Body, Expires)
The form is Infopath 2010, Admin deployed.
Beside QdabraRules I got my ShPSubmit webservice ( _vti_bin/list.asmx/UpdateListItems) and one mapping file. Value for the 'Send'-rule: SubmitToSharePointList /submit=ShPSubmit /mapping=Udd1
Send Button properties/browserforms is set to 'Always'.
I have added the useWebServices, useBrowserAPI and Extende Error Message. Error message is the same whether the useWebService is enabled or not.
The form is not published to SP yet. The error message is from preview mode.
Error message:
Action: SubmitToSharePointList. Arguments: submit: ShPSubmit mapping: Udd1 . Details: Object reference not set to an instance of an object.. Stack: at Qdabra.Tools.RulesLibrary.Commands.PerformSubmitToSharePointList() at Qdabra.Tools.RulesLibrary.Commands.RunCommand(String commandName) at Qdabra.Tools.RulesLibrary.Commands.ExecuteCommand()
My mapping (Udd1):
<?xml version="1.0" encoding="utf-16"?>
<myFields schemaVersion="5.2">
<Mappings mappingName="Info fra uddannelsen">
<ListCollection useName="false" ListName="Info fra uddannelsen">{4DC37FA3-D4C1-4F9D-86E0-4DA67D142981}</ListCollection>
<IsRepeating>false</IsRepeating>
<RepeatingGroup />
<Relationships>
<RelatedList />
<RelatedListId />
</Relationships>
<Mapping>
<FormField IsRichText="false" IsId="false" IsAttachment="false" IsDate="false">my:mineFelter/my:Titel</FormField>
<SharePointColumn>Title</SharePointColumn>
</Mapping>
<Mapping>
<FormField IsRichText="true" IsId="false" IsAttachment="false" IsDate="false">my:mineFelter/my:Brødtekst</FormField>
<SharePointColumn>Body</SharePointColumn>
</Mapping>
<Mapping>
<FormField IsRichText="false" IsId="false" IsAttachment="false" IsDate="true">my:mineFelter/my:Udløbsdato</FormField>
<SharePointColumn>Expires</SharePointColumn>
</Mapping>
<Batch OnError="Continue">
<Method ID="1" Cmd="New">
<Field Name="Title" />
<Field Name="Body" />
<Field Name="Expires" />
</Method>
</Batch>
</Mappings>
<SharePointListURL>https://studienet.via.dk/sites/uddannelse/ak/Horsens</SharePointListURL>
</myFields>
I do have other forms with the SubmitToSharepointList running, so this error puzzles me.
Thanks in advance
/Michael