Mapping and querying Custom Objects for a Contact with REST Api

Hello All,
We are hoping to get some details on managing DataCard set through REST APIs. Our implementation goal is to create Contacts and add Custom object for each Contact, or to be precise, add a DataCard Set for each Contact.
At the moment, to associate a DataCard Set (or Custom Object) to an existing contact, we are supplying following custom object fields during creation of Custom Object:
new CustomObjectField 
                                                                name = "MappedEntityType",
                                                                dataType = Enum.GetName(typeof(DataType), DataType.numeric),
                                                                type = "CustomObjectField",
                                                                defaultValue = "0"
                                                         new CustomObjectField
                                                                name = "MappedEntityID",
                                                                dataType = Enum.GetName(typeof(DataType), DataType.numeric),
                                                                type = "CustomObjectField",
                                                                defaultValue = "<ContactId>"
Is this the correct approach? This is Based on the information provided here: http://topliners.eloqua.com/community/code_it/blog/2012/05/31/eloqua-api-how-to-mapping-a-data-card-to-an-entity.
Would the REST API allow us to query the CustomObjects using the MappedEntityId value for later updates? If so, any pointers on how we approach that?
Thanks in ad.

Either the MappedEntityID field is not available or I do it wrong, Eloqua is ignoring the field and does not map the custom record with the unique Contact ID
{"type":"CustomObjectData","ContactID":"8829509","fieldValues":[{"id":"195","value":"[email protected]"},{"id":"220","value":"a0KJ000000387QvMAI"},{"id":"191","value":"001J000001OrL77IAF"},{"id":"193","value":"NowTV MPP"},{"id":"194","value":"8829509"},{"id":"196","value":"Andreas"},{"id":"197","value":"Wolf"},{"id":"198","value":"003J00000145lkBIAQ"},{"id":"210","value":"777666555"},{"id":"199","value":"gbp"},{"id":"200","value":"0"},{"id":"215","value":"0"},{"id":"201","value":"999111999"},{"id":"214","value":"111111"},{"id":"202","value":"222222"},{"id":"204","value":"now"},{"id":"203","value":"xmas"},{"id":"205","value":"no description"},{"id":"206","value":"test"},{"id":"218","value":"holidays"},{"id":"219","value":"PPV-0878545"},{"id":"213","value":"N"},{"id":"212","value":"myself"},{"id":"209","value":"now tv"},{"id":"192","value":"1417542120"},{"id":"207","value":"1417542120"},{"id":"216","value":"1417542240"},{"id":"217","value":"1417542240"},{"id":"211","value":"1417542240"}]},"MappedEntityID":"003J00000145lkBIAQ"}
Response
DEBUG|Response------{"type":"CustomObjectData","id":"81720","fieldValues":[{"id":"195","value":"[email protected]"},{"id":"220","value":"a0KJ000000387QvMAI"},{"id":"191","value":"001J000001OrL77IAF"},{"id":"193","value":"NowTV MPP"},{"id":"194","value":"8829509"},{"id":"196","value":"Andreas"},{"id":"197","value":"Wolf"},{"id":"198","value":"003J00000145lkBIAQ"},{"id":"210","value":"777666555"},{"id":"199","value":"gbp"},{"id":"200","value":"0"},{"id":"215","value":"0"},{"id":"201","value":"999111999"},{"id":"214","value":"111111"},{"id":"202","value":"222222"},{"id":"204","value":"now"},{"id":"203","value":"xmas"},{"id":"205","value":"no description"},{"id":"206","value":"test"},{"id":"218","value":"holidays"},{"id":"219","value":"PPV-0878545"},{"id":"213","value":"N"},{"id":"212","value":"myself"},{"id":"209","value":"now tv"},{"id":"192","value":"1417542120"},{"id":"207","value":"1417542120"},{"id":"216","value":"1417542240"},{"id":"217","value":"1417542240"},{"id":"211","value":"1417542240"}]}
Eloqua:
Name: PPV-0878545
Unique Code: a0KJ000000387QvMAI
Status Registered
Created Date 12/22/2014 12:44:49 PM
Mapped NO
Any Idea how to map this to a contact
Entity Type is Contacts
Entity Field is SFDC Contact ID

Similar Messages

  • Error when querying custom object 5 using contact Id

    Hi,
    I have related custom object 5 to contacts in CRM On demand. I am trying to find out the custom object 5 records related to contact based on the contact Id. I'm using the query page function in the wsdl for custom object 5 (web services 2.0) and the SOAP UI tool.
    Here is the SOAP request (I replaced the contact id in the xml below ):
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:crmondemand/ws/ecbs/customobject5/10/2004" xmlns:quer="urn:/crmondemand/xml/CustomObject5/Query">
    <soapenv:Header/>
    <soapenv:Body>
    <ns:CustomObject5QueryPage_Input>
    <quer:ListOfCustomObject5 pagesize="?" startrownum="?" recordcountneeded="?">
    <!--Optional:-->
    <quer:CustomObject5 searchspec="?">
    <!--Optional:-->
    <quer:ContactId sortorder="?" sortsequence="?"><+Id from CRM on demand+></quer:ContactId>
    </quer:CustomObject5>
    </quer:ListOfCustomObject5>
    </ns:CustomObject5QueryPage_Input>
    </soapenv:Body>
    </soapenv:Envelope>
    I get the following response:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring>Field 'Contact Id' in the integration component 'CustomObject5' instance contains invalid query expression: <Contact id that I entered in request>(SBL-EAI-13002)</faultstring>
    <detail>
    <siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault">
    <siebelf:logfilename>siebel.log</siebelf:logfilename>
    <siebelf:errorstack>
    <siebelf:error>
    <siebelf:errorcode>(SBL-EAI-13002)</siebelf:errorcode>
    <siebelf:errorsymbol/>
    <siebelf:errormsg>Field 'Contact Id' in the integration component 'CustomObject5' instance contains invalid query expression: <Contact id that I entered in request>(SBL-EAI-13002)</siebelf:errormsg>
    </siebelf:error>
    <siebelf:error>
    <siebelf:errorcode>(SBL-EAI-13006)</siebelf:errorcode>
    <siebelf:errorsymbol/>
    <siebelf:errormsg>Invalid operator: <Contact id that I entered in request>(SBL-EAI-13006)</siebelf:errormsg>
    </siebelf:error>
    </siebelf:errorstack>
    </siebelf:siebdetail>
    </detail>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Can anyone tell me what could be the problem? or what should be the format of the input parameter in the request? I checked in On demand and there should be 1 custom object 5 row returned in the response.

    Hi,
    Thanks a lot . I will try this method too. However, this is how I resolved the problem. I changed my soap request include a search based on contact id:
    <soapenv:Body>
    <cus:CustomObject5QueryPage_Input>
    <quer:ListOfCustomObject5>
    <!--Optional:-->
    <quer:CustomObject5 searchspec="[ContactId]='CRM On Demand Contact Id'">
    <!--You may enter the following 786 items in any order-->
    <quer:Id/>
    <quer:ContactId/>
    <quer:AccountId/>
    <quer:IndexedPick0 />
    </quer:CustomObject5>
    </quer:ListOfCustomObject5>
    </cus:CustomObject5QueryPage_Input>
    </soapenv:Body>
    What I din't realize was that the column names I specified in the quer: tag would be fetched from CRM and returned in the response.
    Regards,

  • Custom Ringtone for your Contacts on Nokia N900

    Hey guys,
    Its great to know that We got Nokia N900 in India now.
    Many of people searching for custom ringtone for their contacts. I have installed app for it and worked great, here is the screen of how to do it.
    1-goto app manager and download Ringtino app ( name specified in attached screen )
    2-goto contact and click on title not edit contact, u will get " custom Ringtone " as like my screen.
    Let me know if anything needed.
    my other post
    /t5/Maemo-Devices/Nokia-N900-works-in-India/m-p/658528#M7963
    Rasu
    Pallipalayam
    Attachments:
    Screenshot-20100719-110252.png ‏50 KB
    Screenshot-20100719-111207.png ‏79 KB
    Screenshot-20100719-111256.png ‏56 KB

    works great now.  you should be fine.
    @elie
    nice new avatar... 

  • Customizing Object for table TB019?

    Hello all,
    Can you please tell me the Customizing Object for table TB019? The only object I could find was DNL_CUST_CUST3 but this includes TB020 and not TB019.
    Rgds
    Priyanka

    Hi!
    I think you already found the object. It is the TB020 that triggers the override. It is very often so that the language dependent tables are the ones being transferred.
    A genereal methodology to figure out which load object is involved for a specific R/3-table is to go to transactionse16 in CRM and check the SMOFTABLES-table.
    The field R3TABNAME is where you put in your R/3-table. It also allows generic searches such as TB0*.
    BR
    /fredric

  • Level 00 object and level 01 object for character

    Hello Gurus,
           for universe based on sap bi query,  what is level 00 object and level 01 object for character? and how to use them, will yo please give a simple example?
    Many thanks.

    Hi,
    To complete the previous answer, L00 is the level that contains "All" members for a given characteristic.
    Whe nit is a hierarchy or a structure the L00 level contains members.
    So to summarize L00 is not very useful to be used in a query when you are using a characteristic but you may have to use it when it is a hierarchy or a structure: it depends of the query selection of course.
    Didier

  • N96 - GPS local maps and voice guided navi for 3 m...

    I see on the box of the N96 :
    "Including local maps and voice-guided navigation for three months"
    So after 3 months there is no local maps and voice ?
    Why that ?
    Even a cheap GPS at 100 euros has maps and voice forever
    I dont understand. I have paid the phone and his features or not ?

    I have to disagree with you there.
    The system is designed to suit all users, not just those that use the phone for navigation in the car. Plus many people won't use the phone for navigation but will use it as an interactive map book.
    Also with all the new and upcoming location based services that nokia now offers it is very important to have up-to-date maps.
    If we had to pay for map updates then many of the location based services wouldn't be accurate or worth using.
    So for a phone based navigation program it makes much more sense to get free maps. Obviously they have to recoup the map costs from somewhere so they have to charge for the navigation feature.
    For dedicated in car sat-nav systems such as tom toms then it makes sense for them to give you the navigation for free. They make their money by charging you for new maps and maps for other countries.
    So in some ways nokia's system is better because you have maps of most of the world totally free. It's also the only system that could suit the majority.
    At the end of the day no one is forcing you to use nokia maps either. If you don't like it then install a program like garmin XT. This program is like in car sat-navs where navigation is free but you pay for maps. A very expensive option if you travel to many countries.
    Message Edited by psychomania on 07-Oct-2008 08:45 AM

  • When i want buy gold for my game , i have a message " for assisance contact with support/iTunes/ww

    When i want charge my game , i have a message " for assisance contact with support/iTunes/ww
    Yestrday i charge 2 times after that this message come when i want charge my acount in game

    You will need to do what it says, contact iTunes Support. These are user-to-user support forums, if you thought you were contacting Apple by posting here. Go here:
    http://www.apple.com/emea/support/itunes/contact.html
    to contact the iTunes Store.
    Regards.

  • Can anyone recommend a Multi-function black and white laser printer for that works with Mountain Lion? The MFP can be either 3-in-1  or 4-in-1 i.e with fax

    can anyone recommend a Multi-function black and white laser printer for that works with Mountain Lion?
    The MFP can be either 3-in-1  or 4-in-1 i.e with fax

    I bought an epson xp650 a couple of months ago and cannot fault it. It does everything I require and it is the wifi model so I can print directly from my ipad/iphone. Not sure if you are asking about the colour of the unit or just to be able to print black and white, Obviously all printers will print black and white but just to give you a little more info the printer I bought is the white version and it looks really nice sat next to my imac 27''
    Hope this helps.

  • How to config a shared cache for multiple environments with C API

    How to config a shared cache for multiple environments with C API?  Just like Java edition. Chapter 2. Database Environments
    I want to open large number of databases, at least 10,000. But as the counts of databases opened increase, the db->open operation become very slow. It almost cost 2 hours to 10,000 databases.
    So I try to distribute these databases to multiple environments ( for example, 5 envs ). And in order to improve the efficient of memory use, I want to share cache between envs.

    Hi,
    It is not clear what you meaning about multiple environments. Do you mean these environments are in different directories or  in the same directory ? If you mean environments in different dirs share the same cache, it is interesting why you need that.
    If you do not use DB_PRIVATE to open the environment, the created cache will be on disk, in the environment directory, so it can be shared by multiple processes and multiple threads. Currently, the cache file is in the environment directory, and we do not support specifying a separate directory for cache only.
    Regards,
    Oracle Berkeley DB.

  • Different alerts for email and sms messages for a contact with custom ring tone

    Hello,
    I have a Curve 8530 with OS 5.0.0.395.
    I have my default sound profile set up to play one type of alert sound when I receive and email message and another when I receive an SMS message (so I know the difference without looking at my phone). That works fine except for contacts that I also have a custom ring tone set up for. It seems that under the Custom Ring Tones/Alerts section of the contact there is only one entry for Messages and it applies to both email and SMS. If I have the contact's message alerts set to the alert I have for email, then their SMS messages play the same alert and I might think it's an email. Or if I have the messages alerts set to the SMS alert sound then their emails sound like SMS messages. Is there a way to have a custom ring tone set up for a contact but still allow their emails and SMS messgaes to follow the current sound profile's settings?
    Thanks.

    Hello,
    Have you had any luck resolving this issue. I had a 8230 and this was possible. But like you I can get the 8530 to work. If you found the solution, please let me know.

  • Horizontal mapping and query limitation

    Hi guys,
    Suppose that we have the following inheritance structure:
    Class: LegalEntity
    Field: LegalEntity relatedTo
    Field: String name
    Class: Person extends LegalEntity
    Field: String ssn
    Class: Corporation extends LegalEntity
    Field: String location
    Class: CollegeStudent extends Person
    Field: String school
    Class: Employee extends Person
    Field: Corporation company
    If a flat mapping is used throughout, then we end up with one table
    (LEGALENTITY) with the columns: relatedTo, name, ssn, location, school,
    and company, plus the Kodo created jdo columns.
    If we wanted to create several tables, we could map LegalEntity and
    Person horizontally, making the base tables COLLEGESTUDENT, EMPLOYEE,
    and CORPORATION.
    If I understand section 7.6.4.3 correctly, the value stored in the
    relatedto column will be a stringified object identity, and Kodo does
    does not support queries across this relation. Thus, the query find all
    CollegeStudent objects that satisfies the filter "relatedTo.name ==
    \"Sally\"" is not supported.
    Did I understand that correctly?
    If so, why does this limitation exist?
    David

    David-
    Did I understand that correctly?You are correct.
    If so, why does this limitation exist?It is because a proper relation cannot exist in the database if the
    target table is unknown (which it is for horizontally mapped classes),
    and joins would become tremendously complex or, in some cases, simply
    impossible to accomplish with a single SQL statement.
    We are considering adding some support for querying across horizontal
    relations that are using non-composite primary keys, but it is currently
    not possible.
    In article <d3eig3$ssb$[email protected]>, David Ezzio wrote:
    Hi guys,
    Suppose that we have the following inheritance structure:
    Class: LegalEntity
    Field: LegalEntity relatedTo
    Field: String name
    Class: Person extends LegalEntity
    Field: String ssn
    Class: Corporation extends LegalEntity
    Field: String location
    Class: CollegeStudent extends Person
    Field: String school
    Class: Employee extends Person
    Field: Corporation company
    If a flat mapping is used throughout, then we end up with one table
    (LEGALENTITY) with the columns: relatedTo, name, ssn, location, school,
    and company, plus the Kodo created jdo columns.
    If we wanted to create several tables, we could map LegalEntity and
    Person horizontally, making the base tables COLLEGESTUDENT, EMPLOYEE,
    and CORPORATION.
    If I understand section 7.6.4.3 correctly, the value stored in the
    relatedto column will be a stringified object identity, and Kodo does
    does not support queries across this relation. Thus, the query find all
    CollegeStudent objects that satisfies the filter "relatedTo.name ==
    \"Sally\"" is not supported.
    Did I understand that correctly?
    If so, why does this limitation exist?
    David
    Marc Prud'hommeaux
    SolarMetric Inc.

  • How do we create a custom format for printed contact information?

    We are trying to create a custom family directory for genealogical purposes.  Family members are individually saved as Outlook 2010 contacts with a special number field that (when parsed) designates their generation, birth order,
    and relationship to parents.  The directory listing is by family and needs to indent names, addresses, emails, and other information by generation. In other words, children's names follow parent names and are indented.  Likewise, grandchildren are
    listed under their parents, but also indented from parents.
    Do we need to create a custom display form, some type of custom print template, or do we need to program a merge of some sort?  Any help would be appreciated.

    Hi,
    From the description, you want to print the contacts in Outlook using a custom display form, so that you can use it to create a custom family directory, correct?
    If this is the case, I'm afraid there is no direct way to print forms as they appear on the custom display form. Outlook can only print forms with the options that are available in the Print window. While you can customize the Print Style settings using
    the various options Outlook provides in its user interface, you cannot alter the basic way that Outlook prints by using custom Print Styles.
    To work around this limitation, you can either use another program to print Outlook information, or you can download a ActiveX control or Outlook extension to create a custom form printing solution.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Outlook 2013 (how to share Custom "Views" for shared Contacts/Journals)

    Environment:  Office 2013 Client (Office 365 E3)
    I have shared Contacts and Journals with other users.
    I have a custom View for each, how do I share the "View"?

    Hi,
    Custom view won't be shared when you share your Contacts or Journals. You'll need to copy the views you want to share to a pst-file and then share the pst file to others.
    To do this, please refer to the following link and look at the "Method 3: Copy views to a Views_backup.pst" section:
    http://www.outlook-tips.net/how-to/copy-outlook-custom-views/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without
    notice. Microsoft does not guarantee the accuracy of this information.
    You can also refer to the video tutorial at the end of the article for detailed steps.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Drag and Drop custom objects

    Hi guys.
    I just finished reading the Java tutorial on Drag and Drop at http://download.oracle.com/javase/tutorial/uiswing/dnd/index.html.
    Unfortunately, there is no note about how to drag and drop a custon object. There is something said on DataFlavor, but not enough to help me.
    So I would appreciate it if anyone could tell me the steps to follow when dragging and droping a custom object.
    Best regards.
    Edmond

    I think we can help you, but please post some example/code of what you are trying to achieve.
    I made D&D with custom objects, custom icons, etc. and is not so hard ... like I said, post some code ...
    RGV

  • Alternate access mapping and binding in IIS for NLB nodes(2)

    Hello All,
    We have configured NLB for 2 nodes( 1 is App and WFE1 and 2 is WFE2).
    here, we have given NLB host name to the users to browse. but, do we need to configure any thing in alternate access mapping and in IIS bindings, if yes, Please elaborate step by step please.
    Thanks in advance
    NLB host name and IP: abc.ap.company.com /10.11.12.95
    Node1 server: abc.appri.company.com / 10.11.12.93
    Node2 server: abc.appsec.company.com / 10.11.12.94
    how to do this.
    NARLA

    Assuming you configured the web application to use the URL http://abc.ap.company.com there is no additional IIS configuration needed on the servers.
    If you're interested in accessing a specific server you can create a hostfile entry on your client machine that abc.ap.company.com to one of the two servers.
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

Maybe you are looking for