Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

[BUG] #119

Open
1 task
ifmason2 opened this issue Jun 18, 2020 · 0 comments
Open
1 task

[BUG] #119

ifmason2 opened this issue Jun 18, 2020 · 0 comments
Labels

Comments

@ifmason2
Copy link

Issue
ETDataExtension.retrieveRows() does not retrieve the Id of the columns

To Reproduce
Given the following method
private ETDataExtension getDataExtension(ETClient client, String dataExtensionName) throws ETSdkException { ETDataExtension de = null; ETResponse<ETDataExtension> retrieveResponse = client.retrieve(ETDataExtension.class, "name=" + dataExtensionName); if( retrieveResponse.getResponseCode().equals("OK")) { ETResult<ETDataExtension> result = retrieveResponse.getResult(); de = result.getObject(); de.retrieveColumns(); List<String> columnNames = de.getColumnNames(); System.out.println(columnNames); for( String columnName : columnNames ) { ETDataExtensionColumn column = de.getColumn(columnName); System.out.println(column); System.out.println(column.getId()); } } return de; }
Expected behavior
Expected output:
com.exacttarget.fuelsdk.ETDataExtensionColumn[ id = <insert_uuid_here> key = [FD0F8D76-920A-4C9D-B662-EBFFE0785A95].[LastName] name = lastname createdDate = Sun Feb 23 18:39:00 AEDT 2020 modifiedDate = Sun Feb 23 18:39:00 AEDT 2020 type = TEXT defaultValue = isPrimaryKey = false isRequired = true length = 50 ] <same_uuid>
Actual output:
com.exacttarget.fuelsdk.ETDataExtensionColumn[ key = [FD0F8D76-920A-4C9D-B662-EBFFE0785A95].[LastName] name = lastname createdDate = Sun Feb 23 18:39:00 AEDT 2020 modifiedDate = Sun Feb 23 18:39:00 AEDT 2020 type = TEXT defaultValue = isPrimaryKey = false isRequired = true length = 50 ] null

Environment

  • SDK Version [e.g. 1.5.0]
  • Java/ JDK version JDK 1.8.0 171-b11

The bug has the severity

  • Major: The defect affects major functionality or major data. It has a workaround but is not obvious and is difficult.

Additional Context
Using this functionality to dynamically create Dynamic Content Blocks.
Dynamic Content Blocks can be opened, and the rules can be listed, but they cannot be edited, presumably because it cannot locate the right column because the schema columns are being emitted with id = null.

@ifmason2 ifmason2 added the bug label Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant