Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Import : format relations as expected on paste #26

Closed
tprouvot opened this issue Dec 21, 2022 · 7 comments · Fixed by #178
Closed

[feat] Import : format relations as expected on paste #26

tprouvot opened this issue Dec 21, 2022 · 7 comments · Fixed by #178
Assignees
Labels
enhancement New feature or request

Comments

@tprouvot
Copy link
Owner

When exporting data from inspector, the format is "MaskSObject__r.APIName__c"
image

But the expected format is : "MaskSObject__r:MaskSObject__c:APIName__c"

Either update the expected format or format the input as expected on the paste

@tprouvot tprouvot added the enhancement New feature or request label Dec 21, 2022
@tprouvot tprouvot self-assigned this Dec 21, 2022
@tprouvot
Copy link
Owner Author

Since the udpate is only on the main object this feature is useless

@dufoli
Copy link
Contributor

dufoli commented Oct 17, 2023

hello, this feature is not useless. If we do an upsert we can use external id to of linked object to create the link.
Example, I have an Account with externalID__c field (externalID checked on setup) then I can Import a contact with:
Contact Name, Account:Account:ExternalID__c
Olivier; MyAccountExternalId

then SF on import will find the link to account based on it and provide AccountId on Contact.

@tprouvot
Copy link
Owner Author

Hi @dufoli ,
OK I re-open this issue 👍

@tprouvot tprouvot reopened this Oct 17, 2023
@dufoli
Copy link
Contributor

dufoli commented Oct 17, 2023

anyway great tool and happy to see it back. I can try to provice a PR for that.

@dufoli
Copy link
Contributor

dufoli commented Oct 17, 2023

@tprouvot I have 2 potentials solutions:

  1. on exportside by setting header with name like needed on import
  2. on import by guessing the the right field

@tprouvot
Copy link
Owner Author

Hi @dufoli,
I would be more than happy to review your PR!
About the approach, I think it would be better to update the expected format on import side since those convention ":" does not exist in Salesforce and we are used to see the "." for separating the related object.

What do you think?

@dufoli
Copy link
Contributor

dufoli commented Oct 17, 2023

'thats whats i have done

tprouvot added a commit that referenced this issue Mar 19, 2024
fix #26

---------

Co-authored-by: Thomas Prouvot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants