tggagne
  • Member for 9 years, 1 month
  • Last seen this week
Is there a shortcut way to remove null records from List?
Accepted answer
6 votes

Do you really need a list, or can you use a set? // create a list for testing list<string> aStringList = new list<string> { 'one', 'two', null, 'two', '', 'three' }; system.debug(...

View answer
How to retrieve action overrides?
1 votes

I maintain two repositories; one for the specific things we need from standard objects (like listviews, recordtypes, customfields) and another repo where we grab the entire object but remove the tags ...

View answer
How to export debug logs?
1 votes

I'm going to post this to one other question. But here's a quick script that downloads all logs to a "log" subdirectory. #!/bin/bash # script for export ALL debug logs to a subdirectory # named "...

View answer
Why don't email sent from case include a reply-to back to the case?
1 votes

When composing an email inside a case, from "From" field is a pick-list that includes your own email AND the email-to-case address (along with any other configured org-wide addresses). When the ...

View answer
Learn Parsing JSON
0 votes

I can't post the code (yet), but I've found using untyped deserializing to be too-easy. But instead of just paring it into a map, we wrap a class around the map that has all the usual map methods and:...

View answer
Querying all the SandboxInfo via REST API
0 votes

If I have the ID, shouldn't I be able to query sandbox records to get the sandboxname? When I try /services/data/v40.0/tooling/sobjects/SandboxInfo/00D29000000E8vZ I get a 404 and GET /services/...

View answer
How to parse a hal+JSON response that has a invalid node name
0 votes

Mitch has the right answer, and I've taken it one more step. I created a class that wraps the dictionary in some fun protocol to make the map even more useful. At work this class is called ...

View answer
Force cli query returns random column sequence
0 votes

There are some limits piping "force query" output to "q" (like relative column names), but if you avoid the it can be handy. I whipped together the following script which pipes "force query" through "...

View answer
Can not create Force.com site via Ant tool
0 votes

Using ant to get retrieve a site's metadata is useful even if you can't turn-around and use it for anything else. It doesn't seem it can be used for creating a new site in a target org, and it doesn'...

View answer
AngularJS with Salesforce
0 votes

I'm looking for something even simpler. Is it possible to just get the W3Schools first page to work in VF? I've tried the page below, and what I see is Hello {{name}}. When I try it just using my ...

View answer
Visualforce: cannot get forcetk.js to work: 401 Error
0 votes

According to the github documentation, access /services/data doesn't require a proxy server, but /services/apexrest does require a proxy. Your code shows an apexrest endpoint. Have you set-up a ...

View answer
How do I make the checkbox checked when loading data from .csv file
0 votes

In the case of uploading users, I use the value "FALSE" for IsActive, which is a checkbox.

View answer
soql for total license used in SFDC
0 votes

force query select id, name, isactive, profile.userlicense.name from user Will give you the users and their license type.

View answer
How to sort tabs in Visualforce
0 votes

I think your answer is described in http://www.salesforce.com/docs/developer/pages/Content/pages_dynamic_vf_components_implementation.htm, in the section on childnodes. With childnodes, you can ...

View answer
Is it possible to create an api for community users to connect to our salesforce org
0 votes

It is possible using jwt. We just did this for one of our clients. It is the only way we found to bring community users into the org without a browser intermediating authorization. http://...

View answer
How to roll your own authentication for an external Salesforce App?
0 votes

Use JWT Bearer Token Flow to authenticate the remote host into Salesforce as a community user. http://doingpoorly.blogspot.com/2014/11/jwt-bearer-token-flow-can-be-used-for.html

View answer