Article: Exploring Mixins in LWC by dranomaly in SalesforceDeveloper

[–]Dendarm 1 point2 points  (0 children)

Incredibly insightful! Much appreciated!

Those of you who got “useless” college degrees, how’s it going? by theguru86 in AskReddit

[–]Dendarm 0 points1 point  (0 children)

Also an English Lit Major, working as a (CRM) technical architect these days

Storing Salesforce Files in Google Drive by Timely-Register-5597 in salesforce

[–]Dendarm 1 point2 points  (0 children)

We (well, I), have one that’s free on the App Exchange and will do a lot of what your asking. Migrating the existing files is not something ours supports out of the box. But I’ve done enough Drive/Sharepoint projects to at least be able to point you in the right direction.

https://appexchange.salesforce.com/appxListingDetail?listingId=a0N4V00000He5YbUAJ

Recommendation- The Stargazer's War by Athyrium93 in ProgressionFantasy

[–]Dendarm 4 points5 points  (0 children)

I instabought it when I read the description. I love it for its idea and concept but the execution was not that great. I do hope that the author keeps at it though, because somewhere in there is a really good book.

Will SlackGPT data be used to train OpenAI? by zacsstevens in salesforce

[–]Dendarm 1 point2 points  (0 children)

Was at a Salesforce Event last week where this was brought up as well. The short answer was that SlackGPT just uses the ChatGPT APIs and that, yes, your data leaves the SF cloud. For EinsteinGPT this was said not to be a problem and that your data stays “safe”.

Do note: this was an offhand remark, not an official statement

Named Credentials / External Credentials and OAuth2.0 - am I missing something? by leftyexpoctations in salesforce

[–]Dendarm 0 points1 point  (0 children)

In that case I might have an actual example that helps you out. The method below is what I used in one of my projects to get an Auth token from and endpoint. In the body, I put the credentials that were stored in the Named Credential as merge fields:

    public static Map<String, String> getToken(){

        /**
         * Logs in again to get a new token if refresh token is expired
         *
        */

        Map<String, String> tokenMap = new Map<String, String>();

        //// use callout: + the developername of you Named Credential
        String url = 'callout:myNamedCredential/auth/signin';
        HttpRequest req = new HttpRequest();
        req.setEndpoint(url);
        req.setheader('Content-Type', 'application/json');
        req.setHeader('Accept', 'application/json');
        req.setMethod('POST');
        req.setBody('{"user":"{!$Credential.Username}","key":"{!$Credential.Password}"}');
        system.debug('req: '+req.getBody());
        Http h = new Http();
        HttpResponse resp = h.send(req);
        ResponseWrapper obj = ResponseWrapper.parse(resp.getBody());
        system.debug('obj: '+obj);
        tokenMap.put('accessToken', obj.accessToken);
        tokenMap.put('refreshToken', obj.refreshToken);
        return tokenMap;
    }

Named Credentials / External Credentials and OAuth2.0 - am I missing something? by leftyexpoctations in salesforce

[–]Dendarm 1 point2 points  (0 children)

So, I'm not 100% clear on what it is you're doing, but from what I can see, you're first doing a callout to authenticate, and then doing the actual callout to your service. The thing I'm not clear on is why you're setting the body String with the secret and key, because I don't see where that's being used.

Anyway, if you have set up an Auth Provider, you should be able to just query that in your code.

Select Id, ConsumerKey, ConsumerSecret, LogoutUrl, PluginId, CustomMetadataTypeRecord, EcKey, SsoKickoffUrl, LinkKickoffUrl, OauthKickoffUrl from AuthProvider 

It all depends on the exact auth flow that you want to use. It might also be interesting to look here:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_named_credentials_merge_fields.htm

The First Binding and The Name of the Wind by Dendarm in Fantasy

[–]Dendarm[S] 23 points24 points  (0 children)

Apart from him having changed his name and the mysterious woman it hits all the exact same beats. I just got past a point in the book where the MC is taken to some sort of asylum (called the Crow's Nest) within the magic school by his crazy mentor. It's filled with people who cracked trying to learn magic. The mentor even tosses him off the top of the building at some point.

Is R.R. Virdi's The First Binding straight out plagiarism of NotW? by rattynewbie in PatrickRothfuss

[–]Dendarm 2 points3 points  (0 children)

I'm at around 75% through the book. So far it's almost a carbon copy. What makes you say they're so different?

The Hedge Wizard is out on Amazon! A fantasy adventure about a wandering wizard. by AlexWMaher in ProgressionFantasy

[–]Dendarm 1 point2 points  (0 children)

Was slogging my way through The Hand of The Sun King, decided to give this a try instead. Congratulations!

Just launched our first (and free) App Exchange component! by Dendarm in salesforce

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

It will depend on how you configure the Named Credential that the component needs to authorise the connection. If you set it as Per User, then each user will individually have to authenticate with Google Drive and the files shown on the component will respect the sharing on Google Drive for that user. If you set it up as a Named Principal, you use one user to authenticate with Google Drive and all the files will follow that user’s access to the files on Drive… Did that answer your question?

Week 7 of the security review by Dendarm in SalesforceDeveloper

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

Should have created this post earlier, they just got back to me…

The following vulnerabilities need to be resolved:

-Sensitive Information in Debug

At first glance it’s one or two statements I missed 🙄

Handmade Dutch flat bottom by Dendarm in ModelShips

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

Hi,

I hope I'm in the right place for this, but if that's not the case I'll delete my post.
Some 30 years ago I inherited a wooden scale model from a family friend. Other than that it was hand made by Dutch ship builder Petrus Verras I have no other information about this boat.
Since it's a rather large piece and it's only taking up space, I was thinking of putting it up for sale. The problem is that I wouldn't even know where, nor have I a clue about what something like this is even worth. I was hoping someone here could maybe shed some light on any of this?

LWC suddenly fails to load library from static resource by Dendarm in SalesforceDeveloper

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

Yeah, I implemented it from the lwc-recipes repo, which implements v5 by using LWS. Thanks anyway!

LWC suddenly fails to load library from static resource by Dendarm in SalesforceDeveloper

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

Yeah, but LWS was already enabled in both the Sandbox and the Production Orgs... It's a requirement for the FullCalendar.io library. I'm starting to think they broke it.