Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Feature Request: Unflatten Function for CSV parsing #20

Open
MacMcIrish opened this issue Jan 24, 2018 · 1 comment
Open

Feature Request: Unflatten Function for CSV parsing #20

MacMcIrish opened this issue Jan 24, 2018 · 1 comment

Comments

@MacMcIrish
Copy link
Contributor

Issue:

Manually formatting data before sending to intercom is clunky and prone to errors. Data in the CSV can be ignored when sending if not explicitly included in the cmd line argument.

Solution:

Do the formatting in the input CSV so that nested data headers are of the format parent.child.

Example:

A CSV formatted such as:

company_id,custom_attributes.enabled
0,true

Requirements

Unflatten function to parse the CSV headers into parent/child objects appropriately.

@simlu
Copy link
Collaborator

simlu commented Jan 24, 2018

The following are not generic. They should be and only depend on input csv. Eventually we can change behaviour by changing csv and not code.

https://github.com/GetintheLoop/intercom-cli/blob/master/lib/cmds/user-cmds/update.js
https://github.com/GetintheLoop/intercom-cli/blob/master/lib/cmds/company-cmds/update.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants