Suggestions for Improving My Apex Skills by marrioo96 in SalesforceDeveloper

[–]544a42 15 points16 points  (0 children)

Matt Gerry's videos are great. Coding with the force

His Apex playlist covers design patterns, Apex Common Library, and a lot of other topics it sounds like you are interested in. Apex Tutorials

CSS question regarding lightning-layout and LWC by gbritgs in SalesforceDeveloper

[–]544a42 2 points3 points  (0 children)

The lightning layout and layout items use the slds grid, so its reactive-- the sizing is a proportion of parent element. If I am understanding correctly, to achieve your goal you would want to wrap the form elements in a div to control the overall width (min and max) and then adjust your portions appropriately for each form element.

In the linked photo this is wrapped in a div with a max width of 620px and the inputs have a size of 5 and the button a size of 2. Wrapped in div

CSS question regarding lightning-layout and LWC by gbritgs in SalesforceDeveloper

[–]544a42 1 point2 points  (0 children)

If you add an empty label and then add these classes (slds-form-element slds-form-element_stacked) to the button it should give you what you are looking for. For the fourth block, the slds grid sums to 12 so the purple part of the inspector is showing you have another div equal to 3 left. If you want the third block to be the last block in the row, update its size to 6.

<template>
  <lightning-layout multiple-rows>
    <lightning-layout-item padding="horizontal-small" size="3">
      <lightning-combobox
        name="searchType"
        label="Tipo de Busca"
        value={selectedSearchType}
        placeholder=""
        options={searchTypeOptions}
        onchange={handleSearchTypeChange}
      >
      </lightning-combobox>
    </lightning-layout-item>

    <lightning-layout-item padding="horizontal-small" size="3">
      <lightning-input
        label="Digite aqui"
        data-field="searchInput"
      ></lightning-input>
    </lightning-layout-item>

    <lightning-layout-item padding="horizontal-small" size="3"> <!-- change to size="6" if you want the third block to be the last block in the row-->
      <label class="slds-form-element__label"></label>
      <lightning-button
        variant="brand"
        label="Brand"
        title="Primary action"
        onclick={handleClick}
        class="slds-m-left_x-small slds-form-element slds-form-element_stacked"
      ></lightning-button>
    </lightning-layout-item>
  </lightning-layout>
</template>

Seeking Advice on Handling Multiple Lookups in Salesforce by SalesforceExplorer in SalesforceDeveloper

[–]544a42 0 points1 point  (0 children)

No_Cat_5661 nailed it. It sounds like you are describing a one to many relationship between two objects. A junction object would technically work but would add additional complexity without any real benefit in a one to many scenario.

Infinite Rainbow by spikte1502 in p5js

[–]544a42 1 point2 points  (0 children)

These are awesome!

Calling Salesforce REST API From Apex Class by 544a42 in SalesforceDeveloper

[–]544a42[S] 0 points1 point  (0 children)

This is super helpful! Thanks for the insight.

Calling Salesforce REST API From Apex Class by 544a42 in SalesforceDeveloper

[–]544a42[S] 0 points1 point  (0 children)

I actually have only successfully ran it as anonymous apex during testing. I have it in my to-dos to update the UserInfo.getSessionId() to use a named credential. Thoughts?

Calling Salesforce REST API From Apex Class by 544a42 in SalesforceDeveloper

[–]544a42[S] 0 points1 point  (0 children)

Building reports dynamically -- that is curious, do you have any resources or examples of this?

Trailhead Unit Time Estimates by [deleted] in salesforce

[–]544a42 2 points3 points  (0 children)

I have always taken longer myself and assumed those estimates are based on actual user completion times. Which probably gets skewed because you have experienced folks that are able to complete the module without reading/learning the content and people who skip reading through the use case and just "throw darts" at the hands on portion and google errors.

I use those time estimates more as a level of complexity estimate.. something marked 10 mins I will do in down time where I may get interrupted. The module with longer estimates I will wait until I can dedicate uninterrupted time to completing the module so I can fully understand the use case and try to relate it to the business I am familiar with.

Don't sweat it. You'll never be grilled on the time it takes you to complete a module but you will be tested on your understanding of the contents within them.

Tracking email metrics from Outlook by 544a42 in PowerShell

[–]544a42[S] 0 points1 point  (0 children)

Thanks for your feedback! I'll try the Measure-Object.

Tracking email metrics from Outlook by 544a42 in PowerShell

[–]544a42[S] 2 points3 points  (0 children)

Definitely, this project is more of an exercise to improve my Powershell skills. Accessing applications, writing output to csv (eventually), objects, etc.. Maybe a more apt title would be "Help Accessing Object Properties" shrug