• LinThaw
  • SMARTIE
  • 699 Points
  • Member since 2016
  • Developer

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 1
    Likes Given
  • 68
    Questions
  • 255
    Replies
Hi all,
is it possible to run the password encryption tool and save the result to a file?
Currently I use:
cd C:\SFDC\CHECK\Dataloader\bin 

encrypt.bat -e <password> "C:\SFDC\CHECK\Dataloader\key.txt" >..\encryptedPassword.txt
The resulting file contains
2016-03-24 12:51:22,701 INFO [main] security.EncryptionUtil main (EncryptionUtil.java:365) - <encrypted password>

Is it possible to only save the <encrypted password>?

Thanks in advance!
Hi there,

I got following error on this Maintenance Cert Badge.

Challenge not yet complete... here's what's wrong:
Couldn’t find 'Find Contacts' with the correct information. Please double check the instructions.


Did you pass it?
What's wrong with my flow.
User-added image

Thanks in advance
Regards,
LinThaw
Hi there,
Every times, after submit answer on my posts,
I always get following error. How to fix it please?
User-added image
but not get this error after submit answer on other's post.
Regards,
LinThaw
Hi there,

Could you please share License Management Application install link from AppExchange.
It is free and good rating.

I want to use it to convert unmanaged package to managed package.

Thanks in advance
Regards,
LinThaw
 
Hi there,

How to use "name" Attribute of apex:page?
And what is the purpose of using?

User-added image


As describe in here,
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_page.htm

"The unique name that is used to reference the page in the API."

but we can create other page with same name attribute.

User-added image

Is there will be error when reference from api?

Thanks in advance.

Regards,
LinThaw
Hi,

What does mean "1 day data retention" in,
https://trailhead.salesforce.com/en/modules/event_monitoring/units/event_monitoring_intro

By using dataloader, in EventLogFile object, I see records more than one day.

Regards,
LinThaw
Hi,

Is there overview documentation about the ...
How many cloud (sales, service etc) and what are the special functions for what kind of companies and customers or partners.

Thanks in advance for sharing...

Regards,
LinThaw
Hi,

Why this error getting?

Ensure that you have moved Cases and Accounts to the correct columns

User-added image

User-added image

Regards,
LinThaw
 
Hi,

How to show 5 rows with lightning:textarea?

Thanks in advance.
Regards,
LinThaw.
Hi,

How to get user currency in formula field?
Is there anyway to get it, please let me share.
Thank in advance.

Regards,
LinThaw
Hi,

I got following error on step 3.

Challenge Not yet complete... here's what's wrong: 
Couldn’t find Agency records from the Account object.

Can anyone pass this step?
Thanks in advance.

Regards,
LinThaw
Hi there,

After enabled 'Advanced currency management',
Visualforce <apex:inputField> displaying currency fields.

ACM is enabled.
User-added image

My Visualforce page is as follow.
User-added image

What is that mean? please.
https://help.salesforce.com/articleView?err=1&id=administration_about_advanced_currency_management.htm&type=5
User-added image
https://trailhead.salesforce.com/en/modules/company_wide_org_settings/units/org_settings_currency
User-added image


Thanks & Regards,
LinThaw
Hi,

When I am trying to deploy custom object and queue,
I got the following error.

This View Unique Name already exists or has been previously used. Please choose a different name.

When I remove list view from xml file, the error was clear.

If there is another way to solve this error please let me share.
Because I want to retrieve and deploy by automation.

Thank in advance
Regards,
LinThaw
hi there,

I am trying to get more than 50000 records with groupby query.
Can we get this by using sforce.connection.query (with ajax in VF page)?

Thanks & Regards
LinThaw
Hi there,

I got these error messages.

The 'Users with Volunteer Shift Worker Records' Custom Report Type does not have the correct objects assigned.

The 'Accounts with Vol Activities with Vol Jobs' Custom Report Type does not have the correct objects.

What is wrong is my settings as follow.

User-added image
User-added image
User-added image
Thanks & Regards
LinThaw
Hi there,

I got the following error and stunk on step 8.

Ensure that you have at least 12 products created and that OrderExtension is still working as specified in the earlier challenge.

What is wrong is for?

Thanks in advance.
LinThaw
Hi there, 

I got following error on step 3.

A Volunteer Shift Worker record created for another user is not in their approval queue, or it does not have the correct status automatically assigned.

Anyone passed this step?

Thanks
LinThaw
Hi there,

I got following error.

Each article record type must contain the Question, Answer, and Record Type fields. Knowledge users must have the ability to select a record type when creating or editing articles.

What is wrong with following settings.
User-added image
Thanks & Regards,
LinThaw
Hi there,

We need to get one of event record fields including(Id, AccountId, customField1, StartDateTime) for each Account, which startDateTime is max.

Is possible to get as following result?

User-added image
User-added image
Thanks & Regards,
LinThaw
Hi there,

I set related list field in Account's Mini Layout (@figure 1),
but it is not shown in hover view (@figure 2).

In what case, related list field will be show?

figure1:
User-added image

figure2:
User-added image

Thanks and Regards,
LinThaw
Hi there,

How can we use Custom Buttons in Lightning Experience?

Regards,
LinThaw
Hi,

I got following error on step 3.

Challenge Not yet complete... here's what's wrong: 
Couldn’t find Agency records from the Account object.

Can anyone pass this step?
Thanks in advance.

Regards,
LinThaw
Hi there,

I got following error on this Maintenance Cert Badge.

Challenge not yet complete... here's what's wrong:
Couldn’t find 'Find Contacts' with the correct information. Please double check the instructions.


Did you pass it?
What's wrong with my flow.
User-added image

Thanks in advance
Regards,
LinThaw
Hi there,
Every times, after submit answer on my posts,
I always get following error. How to fix it please?
User-added image
but not get this error after submit answer on other's post.
Regards,
LinThaw
I am trying to write a workflow rule that will send an email when an opportunity team member is added to an opportunity. I have a rule working that will send the email based on criteria. But now there is a request that it does not be sent of the opportnity record type is ABC type. How would i update the rule? This is what i have currently.
User-added image
I'm not 100% sure where to post this but here goes:
I'm trying to make the New Contract page automatically populate the Account from the related Opportunity.

To clarify:
My users are creating a Contract from the Opportunity page. When they do so, it automatically populates the Opportunity name, and leaves the Account name blank. I have been unable to create a lookup filter based on a formula field that is set to the text value of the related Account, which I created on the Contract page in hopes to compare names against. I know this sounds like a really simple problem but I am hitting a brick wall. Any help would be appreciated.
Greeting,

I am looking for a flow which can auto delete Account team member record. When the member is no longer present in any of the account records.

Appreciate your help.
  • July 03, 2018
  • Like
  • 0
Hi all,
i need to measure how long it takes to respond to a case and if it has been done within 24 hours. The requirements were adjusted in the Chatter thread. 


i want to create a formula that measures if a case has been handled within 24 hours.  

Assumption: we need to exempts nights, weekends, and holidays from response time calculations. 
Hi,

I got following error on step 3.

Challenge Not yet complete... here's what's wrong: 
Couldn’t find Agency records from the Account object.

Can anyone pass this step?
Thanks in advance.

Regards,
LinThaw
Hi there, 

I got following error on step 3.

A Volunteer Shift Worker record created for another user is not in their approval queue, or it does not have the correct status automatically assigned.

Anyone passed this step?

Thanks
LinThaw
Hi there,

I got following error when I press column header to sort.
I got error when my data records are between 10 and 19 records.
but when i have less than 10 or more than 19 records, there is no error occur.

I pressed Name column 2 times and Reporting Date column 1 time.

Error:
--------
Sorry to interrupt
This page has an error. You might just need to refresh it.
rerender threw an error in 'aura:iteration' [Failed to execute 'insertBefore' on 'Node': The new child element contains the parent.]
Failing descriptor: {aura:iteration}
--------

Source
-------
public class PagingSortingController2 {
	@AuraEnabled
    public static List<DailyReport__c> getDailyReports() {

        String usrId = '0057F000002T3GuQAK';
        String strDate = '2018-2-6';
        Date dt = Date.valueOf(strDate);
        
        List<DailyReport__c> dReports = [SELECT Id, Name, ReportingDate__c FROM DailyReport__c Where ReportingDate__c =: dt AND Applicant__c =: usrId];
       
        return dReports;
    }
}

pagingSorting2.app
<aura:application extends="force:slds" controller="PagingSortingController2">
    <aura:attribute type="DailyReport__c[]"    name="allAccounts" />
    <aura:attribute type="DailyReport__c[]"    name="currentList" />
    <aura:attribute type="Integer"      name="pageNumber"		default="1" />
    <aura:attribute type="Integer"      name="maxPage"			default="1" />
    <aura:attribute type="String"       name="sortField" />
    <aura:attribute type="Boolean"		name="sortAsc" />
    <aura:handler name="init"			value="{!this}"			action="{!c.doInit}" />
    <aura:handler name="change"			value="{!v.pageNumber}"	action="{!c.renderPage}" />
    
    <table class="slds-table slds-table--bordered slds-table--cell-buffer">
        <thead>
            <tr class="slds-text-title--caps">
                <th scope="col">
                    <div onclick="{!c.sortByName}"
                         class="slds-truncate"
                         title="Report Name">
                        Report Name
                        <aura:if isTrue="{!v.sortField=='Name'}">
                            <span>
                                <aura:if isTrue="{!v.sortAsc}">
                                    &#8593;
                                    <aura:set attribute="else">
                                        &#8595;
                                    </aura:set>
                                </aura:if>
                            </span>
                        </aura:if>
                    </div>
                </th>
                <th scope="col">
                    <div onclick="{!c.sortByReportingDate}"
                         class="slds-truncate"
                         title="Reporting Date">
                        Reporting Date
                        <aura:if isTrue="{!v.sortField=='ReportingDate__c'}">
                            <span>
                                <aura:if isTrue="{!v.sortAsc}">
                                    &#8593;
                                    <aura:set attribute="else">
                                        &#8595;
                                    </aura:set>
                                </aura:if>
                            </span>
                        </aura:if>
                    </div>
                </th>
            </tr>
        </thead>
        <tbody>
            <aura:iteration items="{!v.currentList}"
                            var="record">
                <tr>
                    <th data-label="Report Name">
                        <div class="slds-truncate" title="{!record.Name}">
                            {!record.Name}
                        </div>
                    </th>
                    <th data-label="Reporting Date">
                        <div class="slds-truncate" title="{!record.ReportingDate__c}">
                            {!record.ReportingDate__c}
                        </div>
                    </th>
                </tr>
            </aura:iteration>
        </tbody>
    </table>
    
    <c:pagination2 currentPageNumber="{!v.pageNumber}" 
                  maxPageNumber="{!v.maxPage}" />
</aura:application>

pagingSorting2Controller.js
({
	doInit: function(component, event, helper) {
        var action = component.get("c.getDailyReports");
        action.setCallback(this, function(result) {
            var records = result.getReturnValue();
            component.set("v.allAccounts", records);
            component.set("v.maxPage", Math.floor((records.length+9)/10));
            helper.sortBy(component, "Name");
        });
        $A.enqueueAction(action);
	},
    sortByName: function(component, event, helper) {
        helper.sortBy(component, "Name");
    },
    sortByReportingDate: function(component, event, helper) {
        helper.sortBy(component, "ReportingDate__c");
    },
    renderPage: function(component, event, helper) {
        helper.renderPage(component);
    },
})

pagingSorting2Helper.js

({
    sortBy: function(component, field) {
        var sortAsc = component.get("v.sortAsc"),
            sortField = component.get("v.sortField"),
            records = component.get("v.allAccounts");
        sortAsc = sortField != field || !sortAsc;
        records.sort(function(a,b){
            var t1 = a[field] == b[field],
                t2 = (!a[field] && b[field]) || (a[field] < b[field]);
            return t1? 0: (sortAsc?-1:1)*(t2?1:-1);
        });
        component.set("v.sortAsc", sortAsc);
        component.set("v.sortField", field);
        component.set("v.allAccounts", records);
        this.renderPage(component);
    },
	renderPage: function(component) {
		var records = component.get("v.allAccounts"),
            pageNumber = component.get("v.pageNumber"),
            pageRecords = records.slice((pageNumber-1)*10, pageNumber*10);
        component.set("v.currentList", pageRecords);
	}
})

pagination2.cmp
<aura:component >
    <aura:attribute name="currentPageNumber" type="Integer" required="true" />
    <aura:attribute name="maxPageNumber" type="Integer" required="true" />

    <div class="slds-button-group" role="group">
        <button onclick="{!c.firstPage}" class="slds-button slds-button--neutral">
            First
        </button>
        <button onclick="{!c.prevPage}" class="slds-button slds-button--neutral">
            Prev
        </button>
        <button class="slds-button slds-button--neutral">
            {!v.currentPageNumber} / {!v.maxPageNumber}
        </button>
        <button onclick="{!c.nextPage}" class="slds-button slds-button--neutral">
            Next
        </button>
        <button onclick="{!c.lastPage}" class="slds-button slds-button--neutral">
            Last
        </button>
    </div>
</aura:component>

pagination2Controller.js
({
    firstPage: function(component, event, helper) {
        component.set("v.currentPageNumber", 1);
    },
    prevPage: function(component, event, helper) {
        component.set("v.currentPageNumber", Math.max(component.get("v.currentPageNumber")-1, 1));
    },
    nextPage: function(component, event, helper) {
        component.set("v.currentPageNumber", Math.min(component.get("v.currentPageNumber")+1, component.get("v.maxPageNumber")));
    },
    lastPage: function(component, event, helper) {
        component.set("v.currentPageNumber", component.get("v.maxPageNumber"));
    }
})


-------
Thanks,
Regards,
LinThaw
 
Hi,
According to the requirement of Project  I have created Lense named worldwide_sales_with_flags. But still I am getting the error:User-added imageUser-added image
Hi,
According to the requirement of Project  I have created Lense named worldwide_sales_with_flags. But still I am getting the error:User-added imageUser-added image