Adobe Campaign - Data Orientated API
Hi All,
I know the Adobe Campaign Data Model well, but I just getting started making use of the API.
I've been trying to build some simple examples based on the documentation: Data oriented APIs
I'm particularly interested in being able to add/update a Recipient Schema enitity and an entity to a linked schema with a 1-n relationship.
I took the very simple example from the documentation, trying to add a recipient and assocaite them with a list:
<recipient xtkschema="nms:recipient" _operation="insertOrUpdate" _key="@email" email="davidh@profusion.com"
firstName="David" lastName="Hoye" salutation="Mr" folder-id="877512">
<rcpGrpRel _key="[rcpGroup/@name]">
<rcpGroup name="LST1"/>
</rcpGrpRel>
</recipient>
However the above, returns the following message:
Error while executing the method 'Write' of service 'xtk:persist'.
Element '' unknown (see definition of schema 'Recipient list contents (nms:rcpGrpRel)').
Unable to find key values for element 'Lists' (document with schema 'recipient')
Unable to save document of type 'Recipients (nms:recipient)'.
The List "LST1" certainly exists.
Can anyone suggest what I might be doing wrong? I'm sure there's a simple explanation.
I'm using v6.1 of Adobe Campaign
Thanks
David
