function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
alexsummersalexsummers 

Weblinks that change periodically

Good Day!!!

Does anybody have a work around with weblink paths that changes periodically?

{website}/{page}

Basically I want my app to be configurable such that when the {website} changes I would change only one setting and not all the records in my Salesforce accounts and users don't have to reconfigure links.

I've tried using a custom object to store the information but it seems that it returns empty information when I use its merge field while making a link in a tab say Accounts. My custom object has 2 custom fields : website and page and I also related my custom object to Accounts.

Thanks in advance...I would really appreciate any suggestions

 

DevAngelDevAngel

Hi alexsommers,

Can you give a sample of the weblink as originally configured, and then a sample of the link after your site changes?  This will help in understanding what needs to change.

 

Thanks

alexsummersalexsummers

Hi Dave,

1. I've made a custom object: MyWebsite and I configured it to have a relationship to Accounts

2. New MyWebsite entry: domain: www.alex.com/, page:Account.aspx --> these are all text fields

Account: Gyro Corp.

3. I've made weblink in the Accounts tab:

http://{!MyWebsite_domain}{!MyWebsite_page}?sessionid={!API_Session_ID}&serverurl={!API_Partner_Server_URL_50}&id={!Account_ID}

4. This did not work. My question is how can I store information that I can easily change and is accessible as a merge field in say Leads, Accounts, etc.

Thanks very much....

DevAngelDevAngel

Hi alexsummers,

What is happening is that the first merge field I think is escaped for salesforce.com.

When I create a web link like:

 http://{!Account_ID}/{!Website_Domain}/{!Website_Page}/{!Website_Account_ID}

What shows up in the browser address is:

http://%7B!account_id%7D/{!Website_Domain}/{!Website_Page}/{!Website_Account_ID}

Notice the %7B and %7D.

Here is a different approach.  Create 2 picklist fields on account, one called Domain the other called Page.  In the values for domain enter the domain www.alex.com/ and select use first value as default.  In the values for the page enter the page Account.aspx and select use first value as default.

Using a picklist will allow you to mass change all the values from setup.

Now you can create an scontrol that contains the following script:

<script>
document.location.href="http://{!Account_Domain}{!Account_Page}";
</script>

Once you have an sforce Control, you can place a web link on the account page that runs the sforce control.