0

Would be possible to do an IF here to say if a url is Sandbox.my.salesforce use this url and if it doesn't follow this other one?

This formula is combining elements of an aloha redirect into a clickable link, it works in sandbox and prod but I have to make adjustments. We're wanting to bullet proof this so it works in a sandbox after a refresh.

Prod

SUBSTITUTE(
           LEFT($Api.Partner_Server_URL_260,FIND("/services", $Api.Partner_Server_URL_530)),
           '.my.salesforce.com/',
           '--c.vf.force.com/one/one.app#/alohaRedirect/apex/Medical_Inquiry_fulfillment_view_vod?id=' 
           & Id
           &"&Account="
           & Account_vod__c
           & "&retUrl=01r4x000000JcfF"
        )

Sandbox

SUBSTITUTE(
           LEFT($Api.Partner_Server_URL_260,FIND("/services", $Api.Partner_Server_URL_530)),
           '.sandbox.my.salesforce.com/',
           '--c.vf.force.com/one/one.app#/alohaRedirect/apex/Medical_Inquiry_fulfillment_view_vod?id=' 
           & Id
           &"&Account="
           & Account_vod__c
           & "&retUrl=01r4x000000JcfF"
        )

Thanks

3

0

You must log in to answer this question.

Browse other questions tagged .