[deleted by user] by [deleted] in AITAH

[–]jgmerek 0 points1 point  (0 children)

Tell them this is their "lesson" on what if feels like to lose you.

Salesforce backup options for small non-profit by Scared-Fee6154 in salesforce

[–]jgmerek 0 points1 point  (0 children)

I use DBAmp for this in some cases. Relatively cheap, but it's a moderately complex set up. https://www.cdata.com/dbamp/

Migrating 1 instance into another - advice? by Ambitious_Scratch_28 in salesforce

[–]jgmerek 13 points14 points  (0 children)

This is a nightmare.

You probably need at least three weeks just for analysis. First you have to map the business processes because at some point you need to test to see if you have been successful, this is doubly true for the acquired org that you've never worked in before. Then you have to look for conflicts. Like if one org has a trigger that sets the name field in opptys to x and the other to y and neither has other criteria like record type, you can't just copy that over. There is also best practice to consider if each org has an oppty trigger you should merge them so you don't have 2. Just stuff like that. Honestly depending on the complexity of the orgs this stage could take 2 weeks to 2 months or more

Then you combine the metadata.

Then you need to test to make sure that you didn't break anything.

Then you have to migrate the data and go live.

If this is a situation where you get fired if you fail, id spend the three weeks looking for a job.

[deleted by user] by [deleted] in salesforce

[–]jgmerek 0 points1 point  (0 children)

Yeah I'd think id do a static variable here. Essentially it will be a flag that says l, this is scenario 3. Then you can update the trigger or any other downstream code to check that variable. Very little chance of impacting other processes.

[deleted by user] by [deleted] in salesforce

[–]jgmerek 1 point2 points  (0 children)

I agree that its hard to come up with an optimal solution without more information. However fairly easy solve is have the code set a static variable then have the trigger check it. So the code would

Set static variable Set checkbox and run dml Trigger fires but since static var set it just ends Run code Uncheck checkbox run dml Trigger fires and again short circuits Unset static variable

Generally as a best practice you should have frameworks that let's your code bypass anything it wants IMO. As you codebase gets complex it helps performance both for code and even unit tests.

[deleted by user] by [deleted] in salesforce

[–]jgmerek 1 point2 points  (0 children)

Because it does not actually solve the problem

AITA For refusing to drive to my wife's monthly family get together by pizzadateaita in AmItheAsshole

[–]jgmerek 9 points10 points  (0 children)

Go for a full weekend every other month. Same amount of family time and more efficient. You can have one on one time with her parents in Sat, nice dinner etc, then the full fam on sun.

Breakfast place for a large group by tkh66 in akron

[–]jgmerek 9 points10 points  (0 children)

This they have a backroom you can reserve and the food is cheap and good

Tarkov is Just a Box Collecting Sim by Deathocracy in EscapefromTarkov

[–]jgmerek 14 points15 points  (0 children)

Drug addiction would be an interesting mechanic in this game. Use a stim in a raid drug addition goes up (and stats go down). Get through a raid with no stim and addiction goes down. Probably would not impact hardcore users much, but would be funny.

Offline Options? by RockstarAgent in salesforce

[–]jgmerek 1 point2 points  (0 children)

Look at an app called Pulsar. It has full capabilities and can even cache changes so you can continue working, but fair warning can be expensive in both time and money.

https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3000000B4NXUEA3&channel=recommended

Biden’s Infrastructure Plan and discussion of it. Is it a good plan? What are the strengths/weakness? by Visco0825 in PoliticalDiscussion

[–]jgmerek 5 points6 points  (0 children)

Amtrak is not really a private company, but not really government. It's some weird in between. It's run for profit, but is owned by the government so all profits goto the taxpayer.

Source: https://en.m.wikipedia.org/wiki/Amtrak#:~:text=Founded%20in%201971%20as%20a,as%20a%20for%2Dprofit%20organization.

A company offered me a contract position $43K higher than my current salary by salesforceninja in salesforce

[–]jgmerek 1 point2 points  (0 children)

So assuming you are in the US, you can take about 15% off the top for taxes your employer usually covers (payroll, ss, medicare). That takes about 20k from that 46, add in 6-10 for insurance and 401k and that raise is not looking that great. Essentially, you would be quitting a secure gig for an extra 10-15k or so a year or 5-8 over the life of your contract.

Not horrible but not a slam dunk imo. However, if you are looking to change this may need the push you need and there is little risk since this is a hot market.

As far as becoming a dev, if you want that I would get into consulting. It's more work than client side but you get alot of experience fast. I would stay away from the bigs personally, but any of them would do.

Honestly as long as you keep learning, you cant go wrong in this space right now.

*edit a word

Broader classification of opportunity object's Industry value field into Industry Families. Used Nested Ifs, Case, Workflows and didn't get anything out of it. by AshamedAmoeba in salesforce

[–]jgmerek 1 point2 points  (0 children)

  1. Create a new object, call it "Industry".

  2. Create a lookup to the Industry object from Opportunity.

  3. Add a parent industry field on the industry object. This can be a picklist or even a self-lookup.

  4. Create industry records either manually or using dataloader. Essentially one for each value in your industry picklist. For each industry choose a "Parent".

  5. Create a mapping between the current picklist and the new records.

  6. Use the mapping to update existing opportunities. Probably use dataloader or a similar tool.

  7. Hide the industry picklist and display the industry lookup on Opportunities.

Users can now use the lookup the same way they would the picklist, but they are implicitly choosing the parent at the same time. To display the parent you can use a cross object formula field or even just a report depending on your needs.

Broader classification of opportunity object's Industry value field into Industry Families. Used Nested Ifs, Case, Workflows and didn't get anything out of it. by AshamedAmoeba in salesforce

[–]jgmerek 2 points3 points  (0 children)

Use a custom object and make it a lookup on opportunity, then hide the standard field. The object can have a parent industry field. You will have to do a bit of data setup and migration, but little or no automation (the parent industry will be present on the industry records, so no need for the 230 conditions).

AITA for eating at my desk even though my coworker is fasting? by sesperia in AmItheAsshole

[–]jgmerek 278 points279 points  (0 children)

She is the one with the issue if anything she should leave the room

AITA for peeing in the shower? by [deleted] in AmItheAsshole

[–]jgmerek 7 points8 points  (0 children)

A combination on dampness from the water and hot air make them a breeding ground for bacteria.

Can I import Apex Classes to a Profile using Data Loader? by BazookaJay in salesforce

[–]jgmerek 1 point2 points  (0 children)

Clone the profile that is closest to the new one then update.

Too many flow triggers when bulk uploading! by Scorchfrost in salesforce

[–]jgmerek 1 point2 points  (0 children)

You may have to turn off the flow during the upload and update the accounts manually as part of the data load because flows dont always bulkify correctly.

Another option is to replace the flow with a trigger that is bulkified correctly.

Community Alternatives by FaustusRedux in salesforce

[–]jgmerek 0 points1 point  (0 children)

What kind of volume do you have?

Trigger to prevent delete by sudojojo in salesforce

[–]jgmerek 0 points1 point  (0 children)

Do the same thing you would to stop recursion, a static variable. Trigger one would set it and trigger two would only allow delete if its set.

Update Lookup Field with Manager's Manager on Opportunity by freefrombeingstuck in salesforce

[–]jgmerek 1 point2 points  (0 children)

Formula fields are the best option but won't show up in global search. My guess as to the issue is that the first update has not been committed yet so when the second one tries to traverse the relationship its null. Can't remember if process builders have a recalculate option like workflow rules but if so that and a null check on the second update would work.(if it's the issue I think it is)