-
Notifications
You must be signed in to change notification settings - Fork 75
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
[FEATURE REQUEST] - Apply different filters on Source vs Target environments #935
Comments
Hello, @nktnet1 Thank you for reaching out. Cheers |
Hello, Thank you for reaching out to me. Regards. |
Thanks @hknokh - I think it could be considered a "Bug/Issue" in a sense (or at least not clear/easy to debug), since the Following the linked support policy, I've re-titled the issue to be a Feature Request, with the goal being the ability to apply filters differently on the Target vs Source environment. Is this okay? |
OK, got it. Thanks for the suggestion. Basically for this moment I do not plan to add any new features to the SFDMU. Regards. |
I've made a pull request - #936, if you don't mind taking a look. |
Thank you for the PR. |
Hey |
Hi @hknokh, Yes, I've tested it with complex nested I'm actively using it in my organisation's production and sandbox environments. I left some sample unit tests in this repository here: |
Thank you for the update. I will document this new feature soon. |
I want to
UPSERT
a subset of my Event objects fromProduction
toSandbox
.The query I'm using is:
However, the type of
Start_Date1__c
isRoll-Up Summary (MIN Block)
.For context, a parent Event can have many children Blocks, and the Block with the minimum start date becomes the
Start_Date1__c
for the Event.I am not migrating the Block object to Sandbox.
This causes an issue with
UPSERT
, as theWHERE
filter condition will only find Events inProduction
, but notSandbox
(i.e. the External ID ofSandbox
Events are not tracked), thus Events unique by theirexternalId
will be inserted multiple times (instead ofUPSERT
, where anUPDATE
is expected).I've looked into the targetRecordsFilter option, and I believe what I need might be the inverse of that, e.g.
sourceRecordsFilter
.Alternatively, perhaps the ability to specify the
sourceQuery
andtargetQuery
separately.Is there currently a workaround for this? Otherwise, I'll convert this question to a feature request.
Thanks ~
The text was updated successfully, but these errors were encountered: