Skip to content

Extract deeply nested (more than 1 level) plan #60

@mnunezdm

Description

@mnunezdm

Is your feature request related to a problem? Please describe.

Extracting data with the sfdx force:data:tree:export only allows to extract one level of nested elements. I think it would be great to extract deeply nested plans like for example: Account->Case->Task

I managed to manually extract the data in two steps, manually edit the data plan, and insert them using the sfdx force:data:tree:import -p

Describe the solution you'd like

Ability to, for example, retrieve a list of queries and make the plan automatically for example:

$ sfdx force:data:tree:export -p -q "SELECT Id, Name (SELECT Origin FROM Cases) FROM Account"
                                    "SELECT Id, (SELECT Id FROM Tasks), (SELECT Id FROM Events) FROM Case"

Describe alternatives you've considered

NA

Additional context

This is the workaround I did: https://salesforce.stackexchange.com/questions/240042/sfdx-forcedatatreeexport-beyond-1-level-deep/255711#255711

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIssue or pull request for a new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions