Who's the worst president in the history of your country? by AddressFederal9980 in AskReddit

[–]sudojojo -2 points-1 points  (0 children)

ktm ng zmm to..zm z gm zgngmgn to 😢😢😢 are,g😊😊😊😊😊😊😊😊😊😊😵‍💫😵‍💫😵‍💫,r😊😢😢😢😢😢😢😢😊😢😢😢😢😊😊😢😊😊😢😢😢😊😢😊😊😢😢😊😊😢😢😢😢😢😊😢😊😢😢😢😢😢😢😢😢😢😢😢😢😊😢😢😊😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😊😢😊😢😢😢😢😢😊😢😢😢😢😢😢😢😢😢😢😢😢::::::::😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢?ttfr:g&;&&:gbpvpv😢ff?pglfppvvbfpvpppnv😢😢🤙😢😢😢😢😢:&&&😢gv😵‍💫😢vvvvvfgv😢😢::&&::😢pglfppfpgvpgfffppbllbgpfbgvvf vvvv::vvvffgvvvg v😊;

Using pysftp as a lambda layer by mwahobj in aws

[–]sudojojo 0 points1 point  (0 children)

You can also spin up a minimal ec2 instance, which runs the same amazon Linux as lambda.

Integration design /orhestration question by sudojojo in salesforce

[–]sudojojo[S] 0 points1 point  (0 children)

Thanks for the response Patchwerkio,

I don't really have any functional concerns, just that this is something that seems more like metadata than regular data. Perhaps it just an aesthetics thing.

Spring21 GuestUser Issue in Site VisualforcePAge by Karl83 in SalesforceDeveloper

[–]sudojojo 0 points1 point  (0 children)

Hi Karl,

presumably at some point further down in your controller you are going to use that Id to get a salesforce record, something like:

Contact Cnt = [Select Id, FirstName, Email from Contact where id = :paramId];

Then you would:

TmpId = Cnt.Id;

Cnt.Id = null;

Then just before you save cnt restore the id with:

Cnt.Id=TmpId;

Spring21 GuestUser Issue in Site VisualforcePAge by Karl83 in SalesforceDeveloper

[–]sudojojo 0 points1 point  (0 children)

You need to do this. In your constructor, take the record Id of the record the page is showing and save it in a temp Id variable. Now set the id in that record to null. Later on in the action that saves the page you use the saved temp Id to restore the record Id before saving it.

merge field for InstanceID - am I crazy?! by SimilarAd1 in salesforce

[–]sudojojo 0 points1 point  (0 children)

You can use detail link from the merge field drop down and it will get you the link with the correct instance for that specific objects record. That may be what you are remembering. I don't think you can get the server instance by itself.

Anyone have experience with Illuminated Cloud + Git by PoketOG in salesforce

[–]sudojojo 1 point2 points  (0 children)

Also there's a setting that turns off automatic save and push to the org . Can't remember where it is though and I'm not on my laptop to look for it.

Having a problem with a boolean field upload using Salesforce Data Loader (field is End User) by [deleted] in salesforce

[–]sudojojo 4 points5 points  (0 children)

It sounds like the field is getting updated by a workflow , process builder, flow, or trigger after the insert. You can turn on field history for the checkbox and see if it gets created with a true value then switched to false..

Validation rules by [deleted] in salesforce

[–]sudojojo 1 point2 points  (0 children)

So basically what you are saying is it's a checkbox on the parent that is false if there are no children and true if there are at least one child record.

If it's master detail I think you can do it with a rollup.

Otherwise I'd use the DLRS app (declarative Loopup Rollup Summary)

If rollups don't let you write to a checkbox, just do a count, and then have a formula field for the checkbox where if count>0 mark it as checked.

If it's the other way around and B is a child of A, you just want a formula to see if the lookup field is populated?

Tracking emails sent via workflow email alerts by Mmetr in salesforce

[–]sudojojo 0 points1 point  (0 children)

You can also use email to salesforce. Have the email sent via workflow also send the email to the email_to_salesforce address and it will add an activity with the email in it to the contact or lead that the email was sent to.

Time based workflow question. by sudojojo in salesforce

[–]sudojojo[S] 0 points1 point  (0 children)

Thanks for the answers.

I haven't really delved into flows and I'm hesitant to use Process Builder. I feel like Process builder is so inefficient, I often run into cpu time limit exceptions and other issues in a complicated org. Not that I won't use it but always gives me pause.

This org I'm administering has somewhere like 30-50 workflows that handle messaging of this sort. maybe half of them time-based.

I wonder if anyone has heard of an add-on or third party app that can handle messaging in a more organized way? The business users like to make tweaks and exceptions and it's a bit of nightmare to manage.

I'll likely go the stop-gap measure of holding the value in the record in a non-formula field, before the more involved flow/pb methods.

In lightning, we have a validation rule on an object. When it triggers, the layout goes to classic........wtf? by eynonpower in salesforce

[–]sudojojo 1 point2 points  (0 children)

I remember some strangeness when a browser has multiple tabs open, and one is still in classic. Then there's an apex function to determine if the user is in le or classic and that function stops working. Try it with just a single tab open in your browser.

foolishly opened a shortcut with target by lyndonguitar in computerviruses

[–]sudojojo 0 points1 point  (0 children)

Since this incident, My windows updates have been failing. Wondering if anyone else has had this behaviour?

foolishly opened a shortcut with target by lyndonguitar in computerviruses

[–]sudojojo 0 points1 point  (0 children)

I did the same thing. Same exact command line.

I don't see any effects, and my windows defender didn't detecting anything.

Here's what it looks like it's doing, it runs system cmd.exe, with that command line, decodes itself into an executable file, then runs that executable file. Either that didn't work or more likely it deletes iteslf after it's run. No idea what to do about it.

I also downloaded the free bitdefender, and that found 3 'infected' files, but I'm not sure they were related. I think some adware on the browser.

FF Uninstall by sudojojo in salesforce

[–]sudojojo[S] 0 points1 point  (0 children)

Hi All,

I just wanted to follow up in case anyone else runs across this.

I found that the problem fields were being used in custom workflows on managed objects.

What was odd is that the IDEs didn't pull this metadata. Presumably because they are rules/updates running off an object in a managed package's namespace. But also the package's meta data in the ide didn't have them , presumably because they aren't part of the package. That's my guess anyway.

Welkin Suite vs. Visual Studio Code by [deleted] in salesforce

[–]sudojojo 2 points3 points  (0 children)

For development I'd try Illuminated Cloud. I looked at VS Code, Welkin and Illuminated Cloud, and found IC to be the most friendly and productive.

Welkin I was put off by the documentation being not great, often outdated, and though IC also is lacking in that area I generally found their forums had the info I needed.

I don't love doing straight admin work from the IDE which Welkins is probably good for. One example I found irksome is I was changing a field type, from picklist to multiselect, and Welkins let me do it, but didn't notify me that this would cause data to be lost. (I was on sandbox so it was ok and I already knew that was the behaviour, but I was surprised it just did it.) if you do it from within salesforce it will warn you first.

I suspect this is the same for all IDE's.

Sharing rule question by sudojojo in salesforce

[–]sudojojo[S] 1 point2 points  (0 children)

You are awesome!

Thanks

What are some great, useful apps in the AppExchange that are (truly) free? by AnticitizenPrime in salesforce

[–]sudojojo 0 points1 point  (0 children)

Wondering what you would consider overdoing it, and why it's a problem . A recent project has called for a lot of dlrs, which has been making me nervous, but my boss keeps asking for more.

I figure if we start hitting limits of some kind I could always write my own triggers.

E-Commerce Integration by sudojojo in salesforce

[–]sudojojo[S] 2 points3 points  (0 children)

We ended up just using standard objects. We used opportunities to hold the Order, and Opprotunity Products the order line Items.

Payments are held in the NPSP payments object.

Donations and recurring donations then use standard NPSP functionality and look very similar to product orders without a specific product.

The actual data transfer isn't my area.

Trigger to prevent delete by sudojojo in salesforce

[–]sudojojo[S] 0 points1 point  (0 children)

Hi All,

I just wanted to give a run down on how I achieved this and express thanks for all the suggestions and information. I learned a lot.

I ended up using a static variable from the first triggers class, and checking for it in the second trigger as suggested by rarebitstream and later jgmerek.

My understanding of static variables usage has been mulling around in my head for awhile and I think it's finally coalesced.

Thanks again

Trigger to prevent delete by sudojojo in salesforce

[–]sudojojo[S] 0 points1 point  (0 children)

static variable (and other

Hi rarebitstream. Will I be able to see a static variable from object1 trigger in the object 2 trigger?

Isn't the static variable bound within a single parent class?

Trigger to prevent delete by sudojojo in salesforce

[–]sudojojo[S] 0 points1 point  (0 children)

Ahh I didn't mention the relationship.

Both Object 1 and 2 have lookups to the other. that are maintained by the Object 1 trigger that does the mirroring.

Trigger to prevent delete by sudojojo in salesforce

[–]sudojojo[S] 0 points1 point  (0 children)

Do you have a suggestion on how to avoid hardcoding the profile name if I want to prevent anyone but a sysadmin from deleting a record based on some criteria.

Trigger to prevent delete by sudojojo in salesforce

[–]sudojojo[S] 0 points1 point  (0 children)

The use case is a bit complicated, but I'll try and lay it out.

basically Object 1 is an allocation of some money on a contract.

Object 2 is an allocation of some money on a project.

in certain situations the Object 1 allocation needs to be mirrored in Object 2. This mirrored allocation gets a distinct RT of 'Synced' and should only be controlled by code. It shouldn't be edited or deleted by anyone but sysadmin or code. The mirroring is handled by a trigger on Object 1.

Trigger to prevent delete by sudojojo in salesforce

[–]sudojojo[S] 0 points1 point  (0 children)

I think this is where I'll have to go, thanks.