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

Not able to insert users through this tool. #9

Open
AwanishWilley opened this issue Apr 29, 2020 · 2 comments
Open

Not able to insert users through this tool. #9

AwanishWilley opened this issue Apr 29, 2020 · 2 comments

Comments

@AwanishWilley
Copy link

I am trying to insert few users in my sandbox but i am getting this error : Error Required fields are missing: [ProfileId] Status Code REQUIRED_FIELD_MISSING Fields ProfileId.

The profile is already there in sandbox.

@codeulike
Copy link
Owner

Hi Awanish

You know that users will have been copied over from the live sandbox during creation, right? But not users created since, which might be what you're trying to transfer.

This sounds a bit similar to this other issue: #6

I'll have a think ...

@codeulike
Copy link
Owner

OK here's two ideas.

If you dont want to change any code you could use SbbFieldOption with ReplaceText in the Insturctions File to hard code the ProfileId for your users to one value. Bit of a hack and it means all the users get transferred with one profile but it might work.

Or if you want to re-build from code, try editing SalesforceTasks.cs method GetObjectRelationships() so that it skips Profile object references in the same way that it skips RecordType object references (about line 103)

Hope that helps.

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

No branches or pull requests

2 participants