Giter VIP home page Giter VIP logo

Comments (2)

imurdock avatar imurdock commented on August 24, 2024

Hi,

Try this:

    try {
        ETClient client = new ETClient(new ETConfiguration());

        ETDataExtension productDE = client.retrieveObject(ETDataExtension.class,
                                                          "Name = eMessages_product");

        ETDataExtensionRow row = new ETDataExtensionRow();
        row.setColumn("feedbackId", "12345678");
        row.setColumn("product-handle", "MSCS");
        row.setColumn("product-name", "MSCS");
        row.setColumn("product-quantity", "1");

        ETResponse<ETDataExtensionRow> response = productDE.insert(row);
        for (ETResult<ETDataExtensionRow> result : response.getResults()) {
            // ...
        }
    } catch(ETSdkException e) {
        e.printStackTrace();
    }

-ian

from fuelsdk-java.

OhioJoe1962 avatar OhioJoe1962 commented on August 24, 2024

I've been trying to use the suggested code in an upgrade project and have run into another issue. I've posted the details here:

http://salesforce.stackexchange.com/questions/93347/annotation-error-from-with-fuelsdk

Any help you can provide would be appreciated.

Joe Nelson
Mettler Toledo
e-Business Developer
1900 Polaris Parkway, Columbus OH 43240
email: [email protected]:[email protected]
direct: +1.614.841.5197
visit us at www.mt.comhttp://www.mt.com

From: Ian Murdock [mailto:[email protected]]
Sent: Sunday, September 13, 2015 10:09 PM
To: salesforcefuel/FuelSDK-Java
Cc: Nelson Joe MTI-CF
Subject: Re: [FuelSDK-Java] Inserting a row in DataExtension via Java FuelSDk not working (#10)

Hi,

Try this:

try {

    ETClient client = new ETClient(new ETConfiguration());



    ETDataExtension productDE = client.retrieveObject(ETDataExtension.class,

                                                      "Name = eMessages_product");



    ETDataExtensionRow row = new ETDataExtensionRow();

    row.setColumn("feedbackId", "12345678");

    row.setColumn("product-handle", "MSCS");

    row.setColumn("product-name", "MSCS");

    row.setColumn("product-quantity", "1");



    ETResponse<ETDataExtensionRow> response = productDE.insert(row);

    for (ETResult<ETDataExtensionRow> result : response.getResults()) {

        // ...

    }

} catch(ETSdkException e) {

    e.printStackTrace();

}

-ian


Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-139940451.

from fuelsdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.