• LinThaw
  • SMARTIE
  • 1316 Points
  • Member since 2016
  • Salesforce Developer, Lightning Champion
  • CITS


  • Chatter
    Feed
  • 2
    Best Answers
  • 7
    Likes Received
  • 3
    Likes Given
  • 82
    Questions
  • 400
    Replies
i need guidance regarding DataLoader any one please suggest to complete Challenge 8
 
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,

Can anyone give your suggestion for this.
best way to open Lightning Application From Lightning Component.

following is one of my suggestion.
({
    doInit : function (component, event) {
        var recId = component.get("v.recordId");
        var url = '/c/sampleApp.app?recordId=' + recId;
        window.open(url,'_top');
    }
})
reference link (https://success.salesforce.com/issues_view?id=a1p3A000000BMkkQAG&title=calling-window-open-in-lightning-component-fails-redirection-in-spring-19-following-pop-up-warning)

Thanks
LinThaw
Hi there,

I am trying following test class with api version 46.
my expected result is as follow.
totalUser = 0 and totalAccount = 0
But totalUser is not 0.
Any suggestion for using with @isTest(SeeAllData = false) User Object?
@isTest(SeeAllData = false)
public class TestClassSample {
    
    private static testMethod void test01() {      
        
        Test.startTest();
        
        System.debug('Total User Record = ' + [Select Count(Id) totalUser From User]);
        
        Test.stopTest();  
    }    
    
    private static testMethod void test02() {      
        
        Test.startTest();
        
        System.debug('Total Account Record = ' + [Select Count(Id) totalAccount From Account]);
        
        Test.stopTest();  
    }
}


Thanks
Regards,
LinThaw
Hi,
I am running following soql in developer console.

Select Count(Id) From User Where UserType = 'CSPLitePortal' and isActive = false

I got following error. 
No such column 'UserType' on entity 'User'

and also got same error when trying with other standard fields or custom fields.

this soql is working well in sandbox but error in production org.
running user's profile is standard administrator.

any suggestion or idea?

Thanks & Regards
LinThaw
Hi there,

What permissions are exactly need to delete Scheduled job.
Only [View Setup and Configuration] is not enough?

when I try with [Modify All Data] permission,
It is working. But [Modify All Data] has other dependent permissions.

Thanks in advance.
Regards,
LinThaw
 
Hi there,

In Lightning Flow, I want to open case record detail page after finish my screen Flow.

To solve this, I added Lightning Component to Last Screen of my Flow.
Is it good idea to implement it or not?
Is there other ways to do this, please let me share.
<aura:component implements="lightning:availableForFlowScreens,lightning:availableForFlowActions">
    <aura:attribute name="recordId" type="String" />
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>    
</aura:component>
 
({    
    doInit: function(component, event, helper) {
        // Get the record ID attribute
        var record = component.get("v.recordId");
        
        // Get the Lightning event that opens a record in a new tab
        var redirect = $A.get("e.force:navigateToSObject");
        
        // Pass the record ID to the event
        redirect.setParams({
            "recordId": record
        });
        
        // Open the record
        redirect.fire();
    }
})

Regards,
LinThaw
Hi there,

I am getting this kind of warning when saving Lightning Flow (Spring'19 ver).
Is there any way to clear it?

This screen includes screen components that require Lightning runtime.

User-added image

Regards,
LinThaw
Hi,

I am stuck on step 3 with following error.

Challenge Not yet complete... here's what's wrong: 
We can't find Entitlements on the Case Lightning Page. Ensure Entitlements are visible on Cases in Lightning.


is there any hint on this error?

Thanks
LinThaw
hi there,
@trailhead

After creating new Trailhead playground, 
when I click Launch button, it goes to login page.

TP username format is same, so I can get it.
e.g.
trailhead_username@cunning-badger-999999.com

how to get password?
I try with password forget link.
It needs to fill security question of new TP account....
crazy...

I try with my Trailhead account's security question. but not working.

btw, old TPs are working well.

anyone facing like this?

Regards,
LinThaw

 
Hi there,

In Visualforce Page, XSS Attack can be found.

In Lightning Component,
script tab is not allowed in cmp.
So, the threat of XSS can be found?

Thanks in advance.
Regards,
LinThaw
Hi there,

I got following error on Set Your Org's External Org-Wide Defaults step.

Step not yet complete... here's what's wrong:
Your external org-wide defaults aren't configured correctly. Repeat the steps to make sure they are.

I tried with two new playgrounds.
Is there any other settings except below?

1. From Setup, enter Sharing Settings in the Quick Find box, then select Sharing Settings.
2. Click Enable External Sharing Model.
3. Click Edit in the Organization-Wide Defaults area.
4. For the Opportunity and Account and Contract objects, set the Default Internal Access to Public Read Only and the Default External Access to Private. Click OK if you get any popups or warnings.
5. Click Save.

<Trailhead : Share CRM Data with Your Partners>
https://trailhead.salesforce.com/projects/communities_share_crm_data/steps/set_external_owd

Thanks for any idea.
Regards,
LinThaw
  • September 28, 2018
  • Like
  • 1
hi there,

Can we upload Change Set that created in Winter'19 (sandbox at preview time) to Production which is still Summer'18.

Regards,
LinThaw
  • September 28, 2018
  • Like
  • 0
Hi there,

How to update multiple records with sfdc.canvas.client.ajax?

To update one record I am using following.
function updateAcc()
        {
	        var sr = JSON.parse('<%=signedRequestJson%>');
	        var accId =sr.context.environment.parameters.accountid;
	        var url = sr.context.links.sobjectUrl+"Account/" + accId + "?_HttpMethod=PATCH";
	        var externalId = 'TEST001';
	        var accountInfo = {"Name" : "New Acc Name " + externalId};
		      Sfdc.canvas.client.ajax(url,
		    		{	client : sr.client,
		    			method: 'POST',
		    			contentType: "application/json",
		    			data: JSON.stringify(accountInfo),
		    			success : function(data) {
		    				if (204 === data.status) {
		    					alert("Success");
		    				} else {
		    					alert("Not Success result code : " + data.status);
		    				}
		    			}
		    		});
        }

Thanks in advance.

Regards,
LinThaw​
  • September 05, 2018
  • Like
  • 0
Hi there,

Number of Canvas calls per day per user (24–hour period) is describe here...
https://developer.salesforce.com/docs/atlas.en-us.platform_connect.meta/platform_connect/canvas_framework_limits.htm

Where can I see how many calls had been called?

Thank in advance.

Regards,
LinThaw
Hi there,

How to merge Salesforce Canvas SDK to existing webapp (Dynamic Web Project)?
by using,
http://https://github.com/forcedotcom/SalesforceCanvasFrameworkSDK
or
https://github.com/forcedotcom/SalesforceCanvasJavascriptSDK

Any idea?

Thank in advance.
Regards,
LinThaw
Hi there,

I got following error on Step 5.

The formula for the 'Adjusted Expected Revenue' column doesn't meet the business requirements.

Anyone passed this step?
Please give some advise for this formula.
Thanks in advance.

Regards,
LinThaw
Hi there,

I got the following error on this badge
https://trailhead.salesforce.com/trails/learn-admin-essentials/projects/prioritize-leads-with-einstein-lead-scoring/steps/configure-einstein-lead-scoring

We can't find 'Sales Cloud Einstein Permission Set' assigned to 'Pepper Belle' and 'User Admin'

I have already assign user Pepper Belle and me to permission set.
Any idea to solve it?

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
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 there,

I am getting this kind of warning when saving Lightning Flow (Spring'19 ver).
Is there any way to clear it?

This screen includes screen components that require Lightning runtime.

User-added image

Regards,
LinThaw
Hi there,

I got following error on Set Your Org's External Org-Wide Defaults step.

Step not yet complete... here's what's wrong:
Your external org-wide defaults aren't configured correctly. Repeat the steps to make sure they are.

I tried with two new playgrounds.
Is there any other settings except below?

1. From Setup, enter Sharing Settings in the Quick Find box, then select Sharing Settings.
2. Click Enable External Sharing Model.
3. Click Edit in the Organization-Wide Defaults area.
4. For the Opportunity and Account and Contract objects, set the Default Internal Access to Public Read Only and the Default External Access to Private. Click OK if you get any popups or warnings.
5. Click Save.

<Trailhead : Share CRM Data with Your Partners>
https://trailhead.salesforce.com/projects/communities_share_crm_data/steps/set_external_owd

Thanks for any idea.
Regards,
LinThaw
  • September 28, 2018
  • Like
  • 1
Hi there,

Number of Canvas calls per day per user (24–hour period) is describe here...
https://developer.salesforce.com/docs/atlas.en-us.platform_connect.meta/platform_connect/canvas_framework_limits.htm

Where can I see how many calls had been called?

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,

I am trying following test class with api version 46.
my expected result is as follow.
totalUser = 0 and totalAccount = 0
But totalUser is not 0.
Any suggestion for using with @isTest(SeeAllData = false) User Object?
@isTest(SeeAllData = false)
public class TestClassSample {
    
    private static testMethod void test01() {      
        
        Test.startTest();
        
        System.debug('Total User Record = ' + [Select Count(Id) totalUser From User]);
        
        Test.stopTest();  
    }    
    
    private static testMethod void test02() {      
        
        Test.startTest();
        
        System.debug('Total Account Record = ' + [Select Count(Id) totalAccount From Account]);
        
        Test.stopTest();  
    }
}


Thanks
Regards,
LinThaw
Hi,
I am running following soql in developer console.

Select Count(Id) From User Where UserType = 'CSPLitePortal' and isActive = false

I got following error. 
No such column 'UserType' on entity 'User'

and also got same error when trying with other standard fields or custom fields.

this soql is working well in sandbox but error in production org.
running user's profile is standard administrator.

any suggestion or idea?

Thanks & Regards
LinThaw
I'm stuck on step #2 of Einstein Analytics and Discovery Insights Specialist superbadge.  I'm getting this warning while checking the challenge:
Challenge #2 Not complete
The step "Churn Tenure' is in compact form, so the filter values need to be specifed as a minimum and maximum
The static step that feeds has the following the value:
 
"Tenure_Length": {
                "broadcastFacet": false,
                "label": "Tenure Length",
                "selectMode": "single",
                "type": "staticflex",
                "values": [
                    {
                        "display": "High Risk",
                        "value": "1 to 12 months",
                        "min": 1,
                        "max": 12
                    },
                    ...
                ]
            }


I'm using selection binding for min and max values.  The dashboard is correctly filtering:
User-added image
User-added image
Any ideas? 
I've tried a non-compact form step where I inject a saql fragment into the query, as well as where I inject min/max values using a range filter serialization...All these efforts end in the same challenge failure message.

Any help/suggesitions are welcome!
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

I need to add a small change to the code in production, I know it is not possible via UI, but I read in the documentation that it can be done via either deploy or forceIDE. My thing against deploying is we have lot of tests, and these minor changes come in frequently. So deploying for every minor change takes a lot of time.

 

When doing via forceIDE, can I just modify the code in the IDE's editor and right click the class-> "save to server" ? or do I have "deploy to server" even with forceIDE?

 

Any help with be appreciated.

 

Thanks,

SunnySlp

Hi Devs! I'm starting a SuperBadge in Einstein Analytics (Einstein Analytics and Discovery Insights Specialist), currently doing the first challenge.
We need to do a chart that shows this fómula:
:User-added image

I already got Current Quarter Cancellations, but I can't do this purple square. How can I get previous quarter cancellations and subscribers?
I'm reading about windowing function, but I can't build my code.
 
q = load "Beattie_Subs";
q = filter q by 'Churn' == "Yes";
q = group q by ('Churn','Churn_Date_Year', 'Churn_Date_Quarter');
q = foreach q generate 'Churn' as 'Churn', 'Churn_Date_Year' + "~~~" + 'Churn_Date_Quarter' as 'Activity_Date(Year-Quarter)', count() as 'CurrentQuarterCancellations';
q = order q by ('Churn' asc, 'Activity_Date(Year-Quarter)' asc);

q1 = foreach q generate 'Churn_Date_Year' + "~~~" + 'Churn_Date_Quarter' as 'Activity_Date(Year-Quarter)', count() as CurrentQuarterCancellations;
sum(count(CurrentQuarterCancellations)) over ([-1 .. -1] partition by (Churn_Date_Year, Churn_Date_Quarter) order by 'Churn_Date_Year' + "~~~" + 'Churn_Date_Quarter');

q = limit q 2000;

Thanks <3
Hi
I have latest version of salesforce cli and running sfdx plugins --core returns 
@salesforce/plugin-generator 0.0.10 (core)
@salesforce/sfdx-trust 1.0.8 (core)
builtins 1.0.0 (core)
salesforcedx 43.12.0 (core)

But  when I run  sfdx plugins:install salesforcedx@latest I get errors below:
Installing plugin salesforcedx...
Installing plugin salesforcedx... Checking for digital signature.
Successfully validated digital signature for salesforcedx.
Finished digital signature check. Installing... !
 !    yarn --non-interactive --mutex=file:C:\...\AppData\Local\sfdx\yarn
 !    --cache-folder=C:\Users\...\Local\sfdx\yarn exited with code 1
 !    warning salesforcedx > salesforce-alm > replace > minimatch@0.2.14: Please update to minimatch
 !    3.0.2 or higher to avoid a RegExp DoS issue
 !    warning salesforcedx > force-language-services > salesforce-alm > webdriverio > archiver > glob >
 !    minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
 !    warning salesforcedx > salesforce-alm > replace > nomnom@1.6.2: Package no longer supported.
 !    Contact support@npmjs.com for more info.
 !    warning salesforcedx > force-language-services > salesforce-alm > webdriverio > request >
 !    node-uuid@1.4.8: Use uuid module instead
 !    warning salesforcedx > salesforce-alm > jsonwebtoken > joi > hoek@2.16.3: The major version is no
 !    longer supported. Please update to 4.x or newer
 !    warning salesforcedx > force-language-services > salesforce-alm > webdriverio > request > hawk >
 !    hoek@0.9.1: The major version is no longer supported. Please update to 4.x or newer
 !    error An unexpected error occurred: "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz:
 !    Request failed \"503 Service Unavailable\""
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