• Aakash Solanki 7
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 4
    Replies
Hi All,
I am trying to validate my components using ANT Migration tool. As soon as I validate I get these following errors :-
1) Unknown user permission: TransactionalEmailSend
2) Unknown user permission: CreateLtngTempFolder
3) Unknown user permission: ManagePropositions

Any help or suggestions??

Regards,
Akash
I have overridden the standard Edit button with visual force in salesforce, When tryin to edit a record in salesforce it perfectly redirects to the detail page but when I try to replicate the same thing in lightning sticking to the visual force page only, it doesn't redirect to the record detail page.
Here is my Apex Controller :-
public PageReference getEditRedir(){
        system.debug('Entered into getEditRedir() of ' + DispatchRequestExtCnt.class);
        string retURLId= ApexPages.currentPage().getParameters().get('retURL');
            String recId = ApexPages.currentPage().getParameters().get('id');
            Request__c req = [select Id,Name,RecordType.Name,RecordType.Id from Request__c where Id=: recId ];
            
            String recName = req.RecordType.Name ;
            if(recName.contains('Plan Economics Review Request'))
            {
                pageRef = new PageReference('/apex/PlanEconomicsReviewNew');
            }else{
                pageRef = new PageReference('/' + req.id + '/e');
            } 
inputRecType = req.RecordType.Id;
            pageRef.getParameters().put('id', req.id);
            pageRef.getParameters().put('mode', 'edit');
            pageRef.getParameters().put('nooverride', '1');
            pageRef.getParameters().put('retURL', req.id);
            pageRef.getParameters().put('RecordType', inputRecType);
            pageRef.getParameters().put('ent', 'Request__c');
            pageRef.setRedirect(true);
            
            system.debug('Leaving from getEditRedir() of ' + DispatchRequestExtCnt.class);
            
        
        return pageRef;
    } 

Here is my VF Page code :- 

<apex:page standardController="Request__c" extensions="DispatchRequestExtCnt"
                               action="{!nullValue(editRedir.url, urlFor($Action.Request__c.Edit, Request__c.id, null, true))}">
    
</apex:page>

Please suggest a solution.
Hi ,
I am trying to complete a challenge in which when i try to create a scratch org using :-
sfdx force:org:create -s -f config/project-scratch-def.json -a "default scratch org"

I am getting the error as  :-
ERROR:  Socket timeout occurred while listening for results.

Try this:
Use command "sfdx force:data:soql:query -q "SELECT Status FROM ScratchOrgInfo WHERE Id='2SR7F000000fyEyWAI'"" to retry. You may consider increasing --wait parameter value to increase timeout

I have cloned the repository of Dreamhouse app from git as well , then also facing the issue . 
Attaching the screenshotUser-added image
 
Hi All,
I am trying to validate my components using ANT Migration tool. As soon as I validate I get these following errors :-
1) Unknown user permission: TransactionalEmailSend
2) Unknown user permission: CreateLtngTempFolder
3) Unknown user permission: ManagePropositions

Any help or suggestions??

Regards,
Akash
I have overridden the standard Edit button with visual force in salesforce, When tryin to edit a record in salesforce it perfectly redirects to the detail page but when I try to replicate the same thing in lightning sticking to the visual force page only, it doesn't redirect to the record detail page.
Here is my Apex Controller :-
public PageReference getEditRedir(){
        system.debug('Entered into getEditRedir() of ' + DispatchRequestExtCnt.class);
        string retURLId= ApexPages.currentPage().getParameters().get('retURL');
            String recId = ApexPages.currentPage().getParameters().get('id');
            Request__c req = [select Id,Name,RecordType.Name,RecordType.Id from Request__c where Id=: recId ];
            
            String recName = req.RecordType.Name ;
            if(recName.contains('Plan Economics Review Request'))
            {
                pageRef = new PageReference('/apex/PlanEconomicsReviewNew');
            }else{
                pageRef = new PageReference('/' + req.id + '/e');
            } 
inputRecType = req.RecordType.Id;
            pageRef.getParameters().put('id', req.id);
            pageRef.getParameters().put('mode', 'edit');
            pageRef.getParameters().put('nooverride', '1');
            pageRef.getParameters().put('retURL', req.id);
            pageRef.getParameters().put('RecordType', inputRecType);
            pageRef.getParameters().put('ent', 'Request__c');
            pageRef.setRedirect(true);
            
            system.debug('Leaving from getEditRedir() of ' + DispatchRequestExtCnt.class);
            
        
        return pageRef;
    } 

Here is my VF Page code :- 

<apex:page standardController="Request__c" extensions="DispatchRequestExtCnt"
                               action="{!nullValue(editRedir.url, urlFor($Action.Request__c.Edit, Request__c.id, null, true))}">
    
</apex:page>

Please suggest a solution.
Using the Force.com Migration Tool (Ant) v1.9.4 to deploy from one sandbox to another both on Spring '17 results in 

21.  profiles/Admin.profile -- Error: Unknown user permission: ManageSandboxes
22.  profiles/Finance.profile -- Error: Unknown user permission: ManageTranslation

If the orgs are on the same release, how is the target returning an error here. 

Lots and lots of migrations to do so any help appreciated!