• vijay kumar k
  • NEWBIE
  • 155 Points
  • Member since 2018

  • Chatter
    Feed
  • 3
    Best Answers
  • 0
    Likes Received
  • 2
    Likes Given
  • 42
    Questions
  • 51
    Replies
I have a 2 component.  I want to send the attribute value from the parent to child.  The attribute value is update after a record is created(I am pulling the record id back to the component).  But the attribute value shows undefined when use the second componen so that tells me that the attribute value is not getting updated.
I am referencing the second compont like this
<c:childcmp pcmpId="{!v.parentid}"/>

The child comp needs the parent id so whatever is the best way to get the parent id to the child component please advise.  I have tried events and have been not been succesful.
Thanks,
P

Hi team , 

Today my client asked me to generate a report to show case number with daily status. The follwing screen shot is the format of the report. I have tried my end but I'm not able to acheive.In screenshot shows header is dates of month and 1st column case numbers and remaing is case status values as per date .

please help me guys.
Thanks in advanceSee this Screen shot
Hi developers
I developed the entitlement process with milestones based on case status criteria. Means every status one milestone is there as per requirement. So that case staus is reached to milestone criteria milestone getting started.
Here I did not notice one thing i.e when I changed the case status it will pick milestone right but no running milestone information is stored of before changing case status milestone because that milestone does not update to milestone complete that's why no milestone data is not stored anywhere.

Now I resolved this issue using trigger I'm updating running milestone as completed (once the milestone has completed, this milestone data as stored at casemilestone so no problem for me).

Finally, my question is previously milestone data is not stored right.how do I retrieve previous milestones data of existing case (New milestone completion is trigger will take care of that)?

So I have one idea based case history planning to insert casemilestone records but system not allowing me to insert because only milestone start date and completion time only writable fields remaining all read-only.
What should I do, I want to show to a client this user taking this many hours to complete all milestones like that.
 
Hi 
I have created vf page with the help of slds documentation. i found below code at Lightning Design System Website. i just add apex tags.
Here table columns are not movable (i mean not resizable). I don't know why, i miss any thing or any require data add this table to work column resizable


Following is my vf code:

<apex:page >
    <meta>
    <apex:slds />
</meta>
<div class="slds-scope">
<table aria-multiselectable="true" class="slds-table slds-table_bordered slds-table_fixed-layout slds-table_resizable-cols" role="grid">
<thead>
<tr class="slds-line-height_reset">
<th class="slds-text-align_right" scope="col" style="width: 3.25rem;">
<span id="column-group-header" class="slds-assistive-text">Choose a row</span>
<div class="slds-th__action slds-th__action_form">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-9" tabindex="0" aria-labelledby="check-select-all-label column-group-header" value="checkbox-9" />
<label class="slds-checkbox__label" for="checkbox-9" id="check-select-all-label">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select All</span>
</label>
</div>
</div>
</th>
<th aria-label="Name" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col" style="width: 300px;">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Name">Name</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Name column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-15" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Account Name" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Account Name">Account Name</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Account Name column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-16" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Close Date" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Close Date">Close Date</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Close Date column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-17" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Stage" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Stage">Stage</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Stage column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-18" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Confidence" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Confidence">Confidence</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Confidence column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-19" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Amount" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Amount">Amount</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Amount column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-20" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Contact" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Contact">Contact</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Contact column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-21" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th class="" scope="col" style="width: 3.25rem;">
<div class="slds-truncate slds-assistive-text" title="Actions">Actions</div>
</th>
</tr>
</thead>
<tbody>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-01" tabindex="0" aria-labelledby="check-button-label-01 column-group-header" value="checkbox-01" />
<label class="slds-checkbox__label" for="checkbox-01" id="check-button-label-01">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 1</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="Acme - 1,200 Widgets"><a href="javascript:void(0);" tabindex="0">Acme - 1,200 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="Acme">Acme</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="4/10/15">4/10/15</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Value Proposition">Value Proposition</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="30%">30%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$25,000,000">$25,000,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="jrogers@acme.com"><a href="javascript:void(0);" tabindex="0">jrogers@acme.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 1,200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for Acme - 1,200 Widgets</span>
</button>
</td>
</tr>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-02" tabindex="0" aria-labelledby="check-button-label-02 column-group-header" value="checkbox-02" />
<label class="slds-checkbox__label" for="checkbox-02" id="check-button-label-02">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 2</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="Acme - 200 Widgets"><a href="javascript:void(0);" tabindex="0">Acme - 200 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="Acme">Acme</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="1/31/15">1/31/15</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Prospecting">Prospecting</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="60%">60%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$5,000,000">$5,000,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="bob@acme.com"><a href="javascript:void(0);" tabindex="0">bob@acme.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for Acme - 200 Widgets</span>
</button>
</td>
</tr>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-03" tabindex="0" aria-labelledby="check-button-label-03 column-group-header" value="checkbox-03" />
<label class="slds-checkbox__label" for="checkbox-03" id="check-button-label-03">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 3</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="salesforce.com - 1,000 Widgets"><a href="javascript:void(0);" tabindex="0">salesforce.com - 1,000 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="salesforce.com">salesforce.com</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="1/31/15 3:45PM">1/31/15 3:45PM</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Id. Decision Makers">Id. Decision Makers</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="70%">70%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$25,000">$25,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="nathan@salesforce.com"><a href="javascript:void(0);" tabindex="0">nathan@salesforce.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for salesforce.com - 1,000 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for salesforce.com - 1,000 Widgets</span>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</apex:page>
Hi 
I created vf page with table using slds and i all table sample code from LDS documentation.It is not working in case of resizing the columns.

Following is my vf code:

<apex:page >
    <meta>
    <apex:slds />
</meta>
<div class="slds-scope">
<table aria-multiselectable="true" class="slds-table slds-table_bordered slds-table_fixed-layout slds-table_resizable-cols" role="grid">
<thead>
<tr class="slds-line-height_reset">
<th class="slds-text-align_right" scope="col" style="width: 3.25rem;">
<span id="column-group-header" class="slds-assistive-text">Choose a row</span>
<div class="slds-th__action slds-th__action_form">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-9" tabindex="0" aria-labelledby="check-select-all-label column-group-header" value="checkbox-9" />
<label class="slds-checkbox__label" for="checkbox-9" id="check-select-all-label">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select All</span>
</label>
</div>
</div>
</th>
<th aria-label="Name" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col" style="width: 300px;">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Name">Name</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Name column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-15" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Account Name" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Account Name">Account Name</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Account Name column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-16" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Close Date" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Close Date">Close Date</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Close Date column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-17" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Stage" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Stage">Stage</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Stage column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-18" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Confidence" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Confidence">Confidence</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Confidence column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-19" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Amount" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Amount">Amount</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Amount column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-20" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Contact" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Contact">Contact</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Contact column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-21" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th class="" scope="col" style="width: 3.25rem;">
<div class="slds-truncate slds-assistive-text" title="Actions">Actions</div>
</th>
</tr>
</thead>
<tbody>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-01" tabindex="0" aria-labelledby="check-button-label-01 column-group-header" value="checkbox-01" />
<label class="slds-checkbox__label" for="checkbox-01" id="check-button-label-01">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 1</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="Acme - 1,200 Widgets"><a href="javascript:void(0);" tabindex="0">Acme - 1,200 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="Acme">Acme</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="4/10/15">4/10/15</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Value Proposition">Value Proposition</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="30%">30%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$25,000,000">$25,000,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="jrogers@acme.com"><a href="javascript:void(0);" tabindex="0">jrogers@acme.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 1,200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for Acme - 1,200 Widgets</span>
</button>
</td>
</tr>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-02" tabindex="0" aria-labelledby="check-button-label-02 column-group-header" value="checkbox-02" />
<label class="slds-checkbox__label" for="checkbox-02" id="check-button-label-02">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 2</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="Acme - 200 Widgets"><a href="javascript:void(0);" tabindex="0">Acme - 200 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="Acme">Acme</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="1/31/15">1/31/15</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Prospecting">Prospecting</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="60%">60%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$5,000,000">$5,000,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="bob@acme.com"><a href="javascript:void(0);" tabindex="0">bob@acme.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for Acme - 200 Widgets</span>
</button>
</td>
</tr>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-03" tabindex="0" aria-labelledby="check-button-label-03 column-group-header" value="checkbox-03" />
<label class="slds-checkbox__label" for="checkbox-03" id="check-button-label-03">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 3</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="salesforce.com - 1,000 Widgets"><a href="javascript:void(0);" tabindex="0">salesforce.com - 1,000 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="salesforce.com">salesforce.com</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="1/31/15 3:45PM">1/31/15 3:45PM</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Id. Decision Makers">Id. Decision Makers</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="70%">70%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$25,000">$25,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="nathan@salesforce.com"><a href="javascript:void(0);" tabindex="0">nathan@salesforce.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for salesforce.com - 1,000 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for salesforce.com - 1,000 Widgets</span>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</apex:page>
I want to  know how exactly Automated User Provisioning works and let's consider  i proveded single sign on authentication for third party, in this case if user login to their web it will redirect to salesforce based user credentials(if that user not in salesforce in this case user will be created and redirect to salesforce) similarly group filter where in a group of users can authenticated their web and automatically user need to created in Salesforce, and suppose if an user is removed from the group the corresponding user has to be deactivated in Salesforce.   
I have 4 public groups and i have one report folder with 4 report subfolders. Here i'm unable to give access to different levels with different groups. I mean out of 4 groups access only one of the subfolder. In lightning, share shows  access all subfolders at a time .How could i give them to this type of permissions
ERROR: Make sure you moved the correct fields from the Information section to the Candidate Rating section.

In the trailhead  (Improve Data Quality for a Recruiting App -unit3)  i create all fields correctly and add in page layout correctly i do not know why showing error message while checking the challenge.
 can anyone tell me if this required any extra changes?

Thanks in advance  
In the trailhead  (Improve Data Quality for a Recruiting App -unit3)  i create all fields correctly and add in page layout correctly i do not know why showing error message while checking the challenge.
 can anyone tell me is this required any extra changes.

Thanks in advance  
Let's take example: Lightning component page have one picklist with values of all account names.I want information about that selected value like Name,age,phone,email and address etc. in below of picklist. 
How could i write code for this. Please post your code for future reference

Thankyou

When to use Communities and When to use Sites in Salesforce?
Insert creditcard records using visualforce page.In page use java script to validate fields like Cardnumber must 16digits ,pin number must 4digits and insert only checkbox(active__c) is true.Below i mention object details. 

Custom object:Credit_Card__c
Fields:
Name=Credit_Card_Number
Lookup=Contact_name__c
Number=Pin__c
Checkbox=Active__c

as per my knowledge i build this vf page but from that apex method is not calling .Is there any mistake i return there .
Here i post my code ,please check and replay the best
Thankyou

VF Page:
<apex:page standardController="Creadit_Card__c" extensions="CreditCard_Creation">
    <apex:includeScript value="{!URLFOR($Resource.jquery)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jqueryui)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jqueryuimin)}"/>
    <script>
    j$=jquery.noConflict();
    if(j$){
        alert('Jquery loaded successfull....');    
    }
    function checkallfields()
    {
        
        var card=j$('[id$=cardnumber1]').val();
        var pin=j$('[id$=pin1]').val();
        var clength=card.length;
        var n = pin.toString();
        var n1=n.length;
        if(clength==16 && n1==4){
            ready();
        }
        else{
            alert('Check Card Number or Pin Number are correct values')
        }
        
    }
    </script>
    <apex:form id="f1">
        <apex:pageBlock title="Creadit Card" id="pb1">
            <apex:pageBlockSection id="pbs1">
                <apex:inputField id="Contactname1" value="{!Creadit_Card__c.Contact_Name__c}" required="true"/>
                <apex:inputField id="cardnumber1" value="{!Creadit_Card__c.Name}"/>
                <apex:inputField id="pin1" value="{!Creadit_Card__c.PIN__c}"/>
                <apex:inputCheckbox id="checkbox1" value="{!Creadit_Card__c.Active__c}" required="true"/>
            </apex:pageBlockSection>
            <apex:commandButton value="save" onclick="checkallfields()" />
            <apex:actionFunction name="ready" action="{!saverecord}"/>
            <apex:pageMessages ></apex:pageMessages>
        </apex:pageBlock>
    </apex:form>
</apex:page>

Apex Class:
public class CreditCard_Creation {
    public Creadit_Card__c chkcardValues{set;get;}
    public CreditCard_Creation(ApexPages.StandardController controller) {
        chkcardValues=(Creadit_Card__c)controller.getRecord();
    }
  
  
    public pagereference  saverecord(){
        list<Creadit_Card__c> cardslist=[select name from Creadit_Card__c where name=:chkcardValues.Name];
        if(chkcardValues.Active__c==true){
            if(cardslist.size()==0){
            insert chkcardValues;
            }else{
                ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error,'This card number is already existed'));
            }
        }else{
            ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error,'please select active'));
        }
             pagereference redirect=new pagereference ('/'+chkcardValues.id);
        if(chkcardValues.id!=null){
             return redirect;
        }
        return null;
    }
}
Insert creditcard records using visualforce page.In page use java script to validate fields like Cardnumber must 16digits ,pin number must 4digits and insert only checkbox(active__c) is true.Below i mention object details. 

Custom object:Credit_Card__c
Fields:
Name=Credit_Card_Number
Lookup=Contact_name__c
Number=Pin__c
Checkbox=Active__c
Hi
here i have Registration(parent) and Faculty(child).I want to show Faculty names under same registration on parent field(Faculty_Names__c).
I already wrote code but it doesen't work delete event that too parent field shows only deleted name when i was test it.
please correct me where i was wrong or send me correct/related code.
 ThankYou

trigger Display_Faculty_Names on Faculty__c (after insert,after update,after delete,after undelete) {
    set<id> regiids=new set<id>();
    List<Registration__c> RegiList=new List<Registration__c>();
    Map<id,Registration__c> regiMap=new map<id,Registration__c>();
    if(trigger.isinsert || trigger.isupdate || trigger.isundelete){
        for(Faculty__c f1:trigger.new){
            if(f1.RegistrationId__c!=null){
                regiids.add(f1.RegistrationId__c);
                if(trigger.isupdate){
                    if(trigger.oldmap.get(f1.id).RegistrationId__c!=f1.RegistrationId__c){
                        regiids.add(trigger.oldmap.get(f1.id).RegistrationId__c);
                        regiids.add(f1.RegistrationId__c);
                    }
                }
            }
        }
    }
    if(trigger.isdelete){
        for(Faculty__c f1:trigger.old){
            regiids.add(f1.RegistrationId__c);
            system.debug('trigger.old'+trigger.old.size());
        }
    }
    RegiList=[select id,name,Faculty_Names__c from Registration__c where id=:regiids];
    for(Registration__c a:RegiList){
        regiMap.put(a.id,a);
    }
    if(trigger.isinsert || trigger.isundelete){
        for(Faculty__c f:trigger.new){
            if(regiMap.containsKey(f.RegistrationId__c)){
                Registration__c r=regiMap.get(f.RegistrationId__c);
                if(r.Faculty_Names__c==null){
                    r.Faculty_Names__c=f.Name;
                }else if(!r.Faculty_Names__c.containsIgnoreCase(f.Name)){
                    r.Faculty_Names__c+=','+f.Name;
                }
                regiMap.put(f.RegistrationId__c,r);
            }
            
        }
        if(regiMap.values().size()>0)
            update regiMap.values();
    }
    List<AggregateResult> aggresult=[Select count(id) countid,RegistrationId__c,Name from Faculty__c Group By RegistrationId__c,Name];
    if(trigger.isupdate){
        for(AggregateResult agg:aggresult){
            string rid=String.valueOf(agg.get('RegistrationId__c'));
            string fname=String.valueOf(agg.get('Name'));
            if((trigger.oldmap.get(agg.id).RegistrationId__c != agg.get('RegistrationId__c')) || trigger.oldmap.get(agg.id).Name != agg.get('Name')){
                if(regiMap.containsKey(rid)){
                    Registration__c r=regiMap.get(rid);
                    if(r.Faculty_Names__c==null){
                        r.Faculty_Names__c=fname;
                    }else if(!r.Faculty_Names__c.containsIgnoreCase(fname)){
                        r.Faculty_Names__c+=','+fname;
                    }
                    regiMap.put(rid,r);
                }
                if(regiMap.containsKey(trigger.oldmap.get(agg.id).RegistrationId__c)){
                    integer facid=integer.valueof(agg.get('countid'));
                    Registration__c a=regiMap.get(trigger.oldmap.get(agg.id).RegistrationId__c );
                    if(facid == 1){
                        if(a.Faculty_Names__c.contains(fname+',')){
                            a.Faculty_Names__c=a.Faculty_Names__c.remove(fname+',');
                        }else{
                            a.Faculty_Names__c=a.Faculty_Names__c.remove(','+fname);
                        }
                    }
                    regiMap.put(trigger.oldmap.get(agg.id).RegistrationId__c,a);
                }
            }
        }
        if(regiMap.values().size()>0)
            update regiMap.values();
    }
    if(trigger.isdelete){
        for(AggregateResult agg:aggresult){
            string rid=String.valueOf(agg.get('RegistrationId__c'));
            string fname=String.valueOf(agg.get('Name'));
            integer facid=integer.valueof(agg.get('countid'));
            if(regiMap.containsKey(rid)){
                Registration__c a=regiMap.get(rid);
                if(facid == 1){
                    system.debug('testfacultyname'+a.Faculty_Names__c);
                    if(a.Faculty_Names__c.contains(fname+',')){
                        system.debug('test2'+a.Faculty_Names__c);
                        a.Faculty_Names__c=a.Faculty_Names__c.remove(fname+',');
                    }else{
                        a.Faculty_Names__c=a.Faculty_Names__c.remove(','+fname);
                    }
                }
                regiMap.put(rid,a);
            }       
        }
        if(regiMap.values().size()>0)
            update regiMap.values();
    }
write batch class to update field(noofcontacts__c) value on account with No of Contacts under that account.
 
why error throws null object and plz help to solve this

vfpage:
<apex:page  controller="showallaccountsinvf">
    <apex:form>
        <apex:pageBlock >
            <apex:pageBlockSection title="accounts">
                <apex:pageBlockTable value="{!contactscount}" var="acon">
                    <apex:column headervalue="Name">
                        <apex:outputtext value="{!acon.acc.Name}"/>
                    </apex:column>
                    <apex:column headervalue="NUmber of Contacts">
                        <apex:outputtext value="{!acon.i}"/>
                    </apex:column>
                </apex:pageBlockTable>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>
controller:
public class showallaccountsinvf {
    public map<id,account> accMap{set;get;}
    public list<wrappercontact> contactscount {set;get;}
    public showallaccountsinvf(){
        List<account> AccountList=[select id,name,contactslist__c from account];
        contactscount=new list<wrappercontact>();
        for(Account a:AccountList){
            accMap.put(a.id,a);
        }
        list<aggregateresult> aggrResults=[select count(id) countids,AccountId from contact where accountid =:accMap.keyset() group by accountid];
        for(aggregateresult agg:aggrResults){
            String acId=String.valueOf(agg.get('AccountId'));
            integer conid=integer.valueof(agg.get('countids'));
            Account a1=accMap.get(acId);
            contactscount.add(new wrappercontact(a1,conid));
            
            system.debug('@@@@@@@@'+acId+conid);
        }
    }
    public class wrappercontact
    {
        public Account acc{get;set;}
        public integer i{get;set;}
        
        Public wrappercontact(Account aa,integer j)
        {
            acc = aa;
            i = j;
        }
    }    
}
parent object: account
   fields : contact country - Picklist values: India, Africa, America
   child object : contact
   field : Contact Area - Picklist values: Karataka, Andhra Pradesh, Kerala, South Africa, Nigeria, Kenya, California, San Fransisco, Texas

   when contact is inserted / updated, based the contact's Contact Area field the parents contact Country should change with respected country. wirte a trigger for insert, Update.
hi 
i'm not understand the below error when click the 'check the challenge' of salesforce mobile app customization in unit of customize campact layout.
Help me overcome this error.

--------There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: EONTWHVZ--------


ThankYou
 
suppose consider account and contact objects.  in creation of contact their shows account lookup field ,press the lookup icon shows the all accounts list in new window.my question is it is possible to edit that list. Like that list shows who doesn't have contacts or who have less than some vale of recors(take 10),these names only display that list.By using this list only select one account and create a contact. 
please help me this.

thanks in advance
suppose consider account and contact objects.  in creation of contact their shows account lookup field ,press the lookup key shows the all accounts list.my question is it is possible to edit that list. Like that list shows who doesn't have contacts or who have less than some vale of recors(take 10),these names only display that list.By this list only select one account and create a contact. 
please help me this.

thanks in advance
it is possible to send an email without writing a trigger.
suppose take contact object,insert one contact(lastname=jon,email=1232mail.com),after insert this record jon receive an email as conform message.
it it is no,please send me code.

thanks in advance
 
I have created a visualforce page to allow our first line support team to escalate to the 2nd line team. 

When a ticket is escalated we require them to record the time spent on the ticket and have a custom field called time spent and it is set as a number. 

Is there a way to add a field onto the visualforce page that isn't a field on the case but when they enter the time spent it increases the value in the field time spent? 

I have had a look and I cannot seem to find a way to do it
I got the "/services/data/v46.0/parameterizedSearch" POST API working for a complex SOSL search I want to perform. I am referring to the Salesforce documentation here: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_search_parameterized.htm

My requirement is, I wish to find an email address by only searching the email fields and have the request json payload tailored to do so
 
POST /services/data/v46.0/parameterizedSearch
{ 
"q":"mytestemail+test@example.com", 
"fields":["Id", "external_id__c"], 
"in": "EMAIL", 
"sobjects": [{"name":"Account"}] 
}

Per my understanding if I use "in": "PHONE" it should not yield any results but it does.
 
POST /services/data/v46.0/parameterizedSearch 
{ 
"q":"mytestemail+test@example.com", 
"fields":["Id", "external_id__c"], 
"in": "PHONE", 
"sobjects": [{"name":"Account"}] 
}

Please let me know if I am missing something here.
I have a 2 component.  I want to send the attribute value from the parent to child.  The attribute value is update after a record is created(I am pulling the record id back to the component).  But the attribute value shows undefined when use the second componen so that tells me that the attribute value is not getting updated.
I am referencing the second compont like this
<c:childcmp pcmpId="{!v.parentid}"/>

The child comp needs the parent id so whatever is the best way to get the parent id to the child component please advise.  I have tried events and have been not been succesful.
Thanks,
P

Hi there! 

I am looking to change the fields displayed on an opportunity based on a picklist value selected. For example, if someone selects 2020, the individual months for Jan - Dec will appear for a number to be entered. 

If someone selects 2021, then the months for Jan - Dec of that year will appear for a numeric value to be entered. Is this possible? Does it require custom code? 

Using the Includetab with multiple controllers, if yes, iam getting the values in the system.debug(); , but unable to display the values in the visualforce page..!
 
<!--Using the Includetab with multiple controllers-->

<apex:page controller="actionfunctiontest1" >
   
   <apex:form >
        <ul>
          <li onclick="passValueToController('Testing'); return false;" style="cursor:pointer;">Click Me</li>
        </ul> 
     
    <apex:actionFunction name="passValueToController" action="{!testing}" reRender="frm" >
        <apex:param name="selectedval" value="selectedval" assignTo="{!selectedval}"></apex:param>
     </apex:actionFunction>
   </apex:form>
       
    <apex:outputPanel id="frm">
           <apex:include pageName="actionfunctiontest2"/>
     </apex:outputPanel>
      
  </apex:page>

<!--apexclass-->
Apex Controller:

public class actionfunctiontest1 {
 public String selectedval{get;set;}
  // public actionfunctiontest2 t1{get;set;}
  public void testing(){
  system.debug('form the selectedval controller1'+selectedval);
  
      actionfunctiontest2  t1= new actionfunctiontest2();
   } 
}
Included page is:
<apex:page controller="actionfunctiontest2">
  <apex:form >
 The value passed is:<apex:inputtext value="{!name}"/>
  </apex:form>
</apex:page>


Apex Controller:-

public class actionfunctiontest2 {
   public string name{get;set;}
   public actionfunctiontest2(){
        name =Apexpages.currentPage().getParameters().get('selectedval');
        system.debug('This is the controller2 form 1 im getting the values here');
        system.debug(' sucess:'+ name);
      }
      
}

//iam gettig the value is the system.debug, but unable to dispaly it in the visualforce page..
//can multiple controllers can be used for the Include tag in salesforce

Thank you
Hi Everyone,

There is an apex code that throws an exception 'System.ListException: List index out of bounds: 0
Class.NewEventsBudget.<init>: line 14, column 1' .

This exception occurs only in the sandbox and is working completely fine in production. I have pasted the code below. Line marked in bold is line 14 of the code. Can some body please help me with this? 


This is the code:
   public class NewEventsBudget {
    public Events_Budget__c eventBudget {get; set;}
    public Order order {get; set;}
    public List<selectOption> suppliers {get; set;}
    
    public string newSectionType {get; set;}
    public boolean isSalesforce {get; set;}
    
    public List<WrapperMainSection> wmainSectionList {get;set;}
    public NewEventsBudget(ApexPages.StandardController stdController){
        this.eventBudget = (Events_Budget__c)stdController.getRecord(); 
        Id proEventId = apexpages.currentpage().getparameters().get('peid');
        
        order = [select Id,Job_Number__c,Project_Name__c,Name from Order where id = :proEventId][0];
        eventBudget.Project_Event_Number__c = order.Id;
        eventBudget.Conversion_Rate__c = 1.0;
        string jobNumber = order.Job_Number__c;
        wmainSectionList = new List <WrapperMainSection>();
        suppliers = new List<selectOption>();
        suppliers.add(new SelectOption('','-'));
        for(Account a : [select name,RecordType.Name, id from Account where RecordType.Name = 'IE Supplier' order by Name]){
            suppliers.add(new selectOption(a.Name, a.Name)); 
        }

Thanks,
Nazneen
 
I am trying to select multiple users from the User object in Salesforce. i could reproduce all the steps in the link except Testapp.app and got an below error.

http://sfdcmonkey.com/2018/02/20/multi-select-lookup-salesforce-lightning/

Failed to save TestApp.app: The attribute "label" was not found on the COMPONENT markup://c:reUsableMultiSelectLookup: Source

Any help would be greatly appreciated!  My code - 

<aura:application extends="force:slds">
  <!-- Create attribute to store lookup value as a sObject--> 
  <aura:attribute name="selectedLookUpRecords" type="sObject[]" default="[]"/>
 
  <c:reUsableMultiSelectLookup objectAPIName="user"
                               IconName="standard:user"
                               lstSelectedRecords="{!v.selectedLookUpRecords}"
                               label="User Name"/>
   <!-- here c: is org. namespace prefix-->
</aura:application>
 
public class junctionRelated {
    private String casid {get; set;}
    public List<Junction_Data__c> vsts{get;set;} 
    public String Name {set;get;}
    public VSTS__C v{get;set;}
    public List<wVSTS> wraplist {get; set;}
    public list<VSTS__c> selected_vsts {get; set;}
    public Boolean check_box {get;set;}
    
    public junctionRelated(ApexPages.StandardController controller){
        casid = ApexPages.CurrentPage().getparameters().get('id');  
        v= new VSTS__C();
        vsts=[Select Id,VSTS__C,Case__c,VSTS__r.Name, VSTS__r.VSTS_Summary__c,VSTS__r.VSTS_Issue_Type__c From Junction_Data__c
              where Case__c=:casid order by LastModifiedDate desc];
    }
    public pagereference  save()
    {
        insert v;
        Junction_Data__c JVS = new Junction_Data__c (Case__c=casid ,VSTS__c=v.id);
        insert JVS;
        PageReference redirectPage = new PageReference('/'+casid);
        redirectPage.setRedirect(false);
        return redirectPage;  
    }
    public PageReference Cancel() {
        PageReference redirectPage = new PageReference('/'+casid); 
        redirectPage.setRedirect(false);
        return redirectPage;
        
    }
    
    public pageReference editVSTS()
    {  
        String VSTSId = Apexpages.currentpage().getParameters().get('VSTSId');  
        pageReference pageRef = new pageReference(URL.getSalesforceBaseUrl().toExternalForm() + '/' + VSTSId + '/e?retURL=' + casid);  
        return pageRef;   
    } 
    public pageReference newVSTS(){   
        pageReference pageRef = new pageReference('/apex/JunctionRelatedPAge?id='+casid);
        return pageRef; 
    } 
    
    public pageReference deleteVSTS()
    {  
       // String VSTSId = Apexpages.currentpage().getParameters().get('VSTSId');  
        VSTS__C  vsts = [SELECT Id FROM VSTS__c WHERE id =:v.Id LIMIT 1]; 
        delete vsts; 
        PageReference redirectPage = new PageReference('/'+casid);
        return redirectPage;
        
    }
    public pagereference gotolink(){
        pageReference pageRef = new pageReference('/apex/Gotolist');
        return pageRef;
    }
    public PageReference Back() {
        PageReference redirectPage = new PageReference('/'+casid); 
        redirectPage.setRedirect(false);
        return redirectPage;
        
    }
    public PageReference Linktocase()
    {
        selected_vsts=new list<VSTS__c>();
        for(wVSTS cc: wraplist)
        {
            if(cc.check_box)
            {
                selected_vsts.add(cc.V);
            }
        }
        list<Junction_Data__c> validate =[Select Case__c,VSTS__c From Junction_Data__c where VSTS__c IN (Select Id From VSTS__C where Id=:selected_vsts)];
        set<Id> added_list = new set<Id>();
        if(!validate.isEmpty())
        {
            for(Junction_Data__c add_vst : validate)
            {
                if(add_vst.Case__c != casid)
                    added_list.add(add_vst.VSTS__c);
            }
        }
        //linking with case by creating a junction record 
        list<Junction_Data__c> junction = new  list<Junction_Data__c>();
        for(VSTS__c vs : [Select Id From VSTS__c Where Id =:added_list])
        {
            Junction_Data__c junc = new Junction_Data__c();
            junc.Case__c=casid;
            junc.VSTS__c=vs.Id;
            junction.add(junc);
        }
        insert junction;
        PageReference redirectPage = new PageReference('/'+casid); 
        return redirectPage;
    }
    
     //Wrapper class
    public class wVSTS
    {
        public VSTS__c V{set;get;}
        public Boolean check_box {get; set;}   
        //constructor
        public wVSTS(VSTS__c V, Boolean check_box) 
        {
            this.V = V;
            this.check_box = check_box;
        }
    }
    }
  • November 21, 2019
  • Like
  • 0
SalesForce Devs,
 
I am simply trying to invocate a GET request call to download a file/document, previously uploaded to Salesforce, from Salesforce. I am able to successfully authenticate, and perform other calls. It appears that the only way to download the file according to the SFDC documentation, listed in link below, is by providing a document/attachment ID. Which, I've tried determine and find without success, and I have searched throughout the system very thoroughly and have not been able to determine what the document/attachment IDs are for the files that I am attemptign to test download with.

Also, what are the differences between documents and attachements? Should I be using the Files API instead?

 
https://developer.salesforce.com/docs/api-explorer/sobject/Attachment
https://developer.salesforce.com/docs/api-explorer/sobject/Document
 
Thank you for any help insight you are able to provide! There's no way I am the first person to attempt this!
 
RF
 
Hi all

Some assistance.

I have a flow that i have copied to be a scheduled flow under the new functionality in Winter 20. When run from a button the original flow works to calculate the values from various work orders and pass this total to the parent service contract. When run from a button this works fine.

So i have copied this flow and added to schedule. See screenshots below as for start config.

User-added imageI pass in all service contracts as the first step in the flow is to look up all work orders with the this service contract id.

User-added image
After various actions the flow writes values back the service contract. This is where it fails, the last step and i get massive spam from SF as it fails for all contracts as far as i can see.

Screenshot of final failure example

User-added image

As you can see it has valid data for each field to update, a valid service contract id (i can run the none scheduled version and get success with identical id and values) but it fails.

Any suggestions? The inability to debug scheduled flows is a real pita as to test i have to run the entire batch everytime....