• Guillaume Loubier CGI
  • NEWBIE
  • 5 Points
  • Member since 2016
  • Consultant
  • CGI

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 6
    Replies
Is that possible to do URL Rewriting on my.salesforce.com (not on Sites)
I have internal user's login in Salesforce directly and access to a third party website through visualforce pages
I'm using Site for dealers and my.salesforce.com for internal users.

I have read on URL Rewriting for Sites, but that can't be apply in my case as this is not the URL in my site I wish to rewrite but  a few url from my.salesforce.com 

For example, I want to rewrite URL like:
https://abc.csXX.my.salesforce.com/servlet/servlet.Integration?lid=01re00000008h5S&ic=1&linkToken=VmpFPSxNakF4TmkweE1DMHpNRlF4TmpvMU9Eb3pNUzQxTWpKYSxHaWF5SFlGNFBQbDRjWXZtRHRiZVlWLFlXWmtNR0po

to something more user friendly like
https://abc.csXX.my.salesforce.com/Sales/AddOnOrder

This is mainly because my client need those rewrited url for internal rules on their network...
I've been working on this trail for a bit - and while I undertsand the concepts, I'm stumped on why I'm getting this error: 
 
Challenge Not yet complete... here's what's wrong: 
A Create a Record action for the Closed Won criteria node isn't properly configured. Make sure that it creates a draft contract according to the instructions in the ‘Create contract for closed opportunity’ task action. Make sure that Start Date is set by using a formula.

I've gone over all of the workflow tasks information to recreate the contact. If I activate the process and close an opportunity, it creates a contract with the expected information and the date is 1mo away with 12mo term. The workflow's task (which is the template for the actual contract) specifies the following: 
 
Use the closed opportunity to create a contract for the associated account. 

Account: The account associated with this opportunity
Status: Draft
Contract Start Date: 1 month from today
Contract Term: 12
Here are my actions: 
User-added image

The Contract Start Date is set to the following formula:
DATE(
    YEAR(Today()) +
    FLOOR((1 + MONTH(Today())) / 12) -
    IF (MOD(MONTH(Today()) + 1, 12) = 0,
        1,
        0),

    MOD((1 + MONTH(Today()) - 1), 12) + 1,

    DAY(Today())
)

Again, for all practical purposes I'm passing this, as it functions and the contract is created. But I must be missing some small detail, named field, something that's tripping up the validation settings. Any help is appreciated!

 
Is that possible to do URL Rewriting on my.salesforce.com (not on Sites)
I have internal user's login in Salesforce directly and access to a third party website through visualforce pages
I'm using Site for dealers and my.salesforce.com for internal users.

I have read on URL Rewriting for Sites, but that can't be apply in my case as this is not the URL in my site I wish to rewrite but  a few url from my.salesforce.com 

For example, I want to rewrite URL like:
https://abc.csXX.my.salesforce.com/servlet/servlet.Integration?lid=01re00000008h5S&ic=1&linkToken=VmpFPSxNakF4TmkweE1DMHpNRlF4TmpvMU9Eb3pNUzQxTWpKYSxHaWF5SFlGNFBQbDRjWXZtRHRiZVlWLFlXWmtNR0po

to something more user friendly like
https://abc.csXX.my.salesforce.com/Sales/AddOnOrder

This is mainly because my client need those rewrited url for internal rules on their network...
Trying to write a validation rule where: 

Picklist value Status of Completed is chosen on RecordTypeID 012d0000001lA4R or 012d0000002MB5S or 012d0000003NC6D or 012d0000004OD7E, the AcitivityDate must not be NULL. 

Here is my attempt, but have not succeded: 
 
AND
(ISPICKVAL(Status,"Completed"),
 AND(RecordTypeId,"012d0000001lA4R","012d000003NC6D","0120000002MB5S"),
ISBLANK(ActivityDate)
)



 
<!--campingListItem.cmp-->
<aura:component >
	<aura:attribute name="item" type="Camping_Item__c" required="true"/>

	<ui:outputText value="{!v.item.Name}" />
	<ui:outputCheckbox value="{!v.item.Packed__c}" />
	<ui:outputCurrency value="{!v.item.Price__c}" />
	<ui:outputNumber value="{!v.item.Quantity__c}" />
	<ui:button label="Packed!" press="{!c.packItem}"/>
	
</aura:component>
<!--campingListController.js-->
({
	packItem : function(component, event, helper) {
		var button = event.getSource().get("v.disabled");
		component.set("v.item.Packed__c", "true");
		component.set(button, "true");
	}
})
What am I doing wrong?

 
In salesforce, we can rewrite URLs for site user, but is there any way I can rewrite the URL for internal users ? 
Like : Rewrite
https://na6.visual.force.com/apex/ContactVFPage?id=003XXXXXXXXXXXX
to
https://na6.visual.force.com/apex/mycontact