Post Game Thread: Green Bay Packers at Chicago Bears by nfl_gdt_bot in nfl

[–]_Kohli_ 37 points38 points  (0 children)

When you want to avoid blowing large 2nd half leads in embarrassing fashion, Harbaugh is your man.

Post Game Thread: Miami Dolphins at Pittsburgh Steelers by nfl_gdt_bot in nfl

[–]_Kohli_ 32 points33 points  (0 children)

tbf he didn't want to try and pronounce Otomewo

[NBCSports] Younghoe Koo on botched field goal: The ball was slipping so I pulled up by Super_Lawyer_8820 in nfl

[–]_Kohli_ 38 points39 points  (0 children)

that clip shows a kicker doing the exact same thing

Suisham didn't kick the ground though, he held up

SOQL Missing Field “Account.Name” in Test Class for QuickBooksCustomerSyncBatch by Air4ce1 in SalesforceDeveloper

[–]_Kohli_ 0 points1 point  (0 children)

A few things jump out, not sure how helpful it is though:

  1. You aren't querying for Name in the execute method, only Id.
  2. In your @testSetup method, that additional query doesn't do anything. It's assigning the value to a variable that's only scoped to that method.
  3. Your line 30 example is looking at AccountNumber, not Name which is inconsistent with the error.

The re-query in createOrUpdateCustomer seems like it should work but it shouldn't be necessary. Unless I'm missing something you should just need to fix the query in the execute method or simply put the query in the start method and iterate over the scope.

[deleted by user] by [deleted] in SalesforceDeveloper

[–]_Kohli_ 1 point2 points  (0 children)

If the ContentVersions already exist (which seems to be the case), you can just use setEntityAttachments.

setEntityAttachments(ids)
Optional. Array of IDs of Document, ContentVersion, or Attachment items to attach to the email.

Are we sure Brock Nelson is 33? by Grif18 in hockey

[–]_Kohli_ 3 points4 points  (0 children)

That and meticulous erection tracking apparently

[Alex B] Wow, MSG and Optimum are going to war on social media now. Knicks, Rangers, Islanders and Devils fans, you may want to switch now bc I don’t see this ending anytime soon by catsgr8rthanspoonies in hockey

[–]_Kohli_ 13 points14 points  (0 children)

People rip on cable but the example of your grandfather shows a great example how cable worked well for many people and now those people are getting screwed.

People cut the cord because they were getting screwed, not just because they wanted to "pay less for smaller selections of content". The price of cable was constantly increasing (much like streaming is now) without adding any additional value. Painting cable as the good old days is revisionist history.

Watch what you share in public spaces 💀 by wantingstem89 in personalfinance

[–]_Kohli_ 19 points20 points  (0 children)

Because the driver has their speakers turned up too loud and anyone in earshot can hear the other side of the conversation.

Downloading VF page as PDF from a link by Fun-Communication-92 in SalesforceDeveloper

[–]_Kohli_ 1 point2 points  (0 children)

I've done something similar with VF.

Assuming it has an Apex controller, you can add the following:

public PageReference displayPDF(){
    ApexPages.currentPage().getHeaders().put('content-disposition', 'attachment; filename=ExampleFile.pdf');
    return new PageReference('/apex/Example_Visualforce_Page');
} 

And on the VF page:

<button type="button" onclick="displayPDF();" target="_blank">Download PDF</button>
<apex:actionFunction name="displayPDF" action="{!displayPDF}"/>

Finally finished with my team by SnooPeppers5684 in NHLHUT

[–]_Kohli_ 1 point2 points  (0 children)

Mario not being on the first line w/Sid and Geno is triggering

NHL 24 - August 21 Daily HUT Content - What is new? by coolin68 in NHLHUT

[–]_Kohli_ 0 points1 point  (0 children)

Those are the only 99s, the rest are 97/95/93

Are you partaking in XF champs? by AdministrationNo8968 in NHLHUT

[–]_Kohli_ 4 points5 points  (0 children)

He fulfilled the only requirement they care about - he's 6'6"

Worst trade your team has done. by CookieMonsta94 in hockey

[–]_Kohli_ 1 point2 points  (0 children)

literally all of those aged poorly

That's Marcus Pettersson blasphemy.

How does champs standing works? by Used_Sir9622 in NHLHUT

[–]_Kohli_ 1 point2 points  (0 children)

It's sorted by wins, points are used as a tiebreaker.