k-capehart / go-salesforce

Salesforce REST API client written in Go
https://pkg.go.dev/github.com/k-capehart/go-salesforce/v2
MIT License
24 stars 4 forks source link

`Id` shall be returned when an Insert is made #42

Closed 0cv closed 3 weeks ago

0cv commented 1 month ago

As the title says, we shall return the Id provided in the response from Salesforce so that this can be used in other operations, etc.

k-capehart commented 1 month ago

Hey @0cv , I love this suggestion. Were you thinking that this should be implemented for all Insert methods? i.e. InsertOne, InsertCollection, InsertComposite, InsertBulk?

Also, did you have any plans to submit a PR for this or should I take a look?

0cv commented 1 month ago

@k-capehart yes a good PR would be to implement all these methods which could take a bit of time .. For now, I'm just evaluating various Go framework so feel free to implement that feature

k-capehart commented 3 weeks ago

@0cv This is merged in now. I'll create a release shortly.