4 votes
Accepted

Make Custom link visible only to specific group of users

You actually can do it via the $Permission global variable. Note the global variable checks if the running user has a Custom Permission, not a PermissionSetAssignment. Create a Visualforce Homepage ...
Adrian Larson's user avatar
  • 150k
4 votes

Unsubscribe tracking for custom unsubscribe page

Familiarize yourself with LogUnsubEvent, and replace the UpdateSalesforceObject function with it. LogUnsubEvent through the MC connector automatically sets the "Email Opt Out" field in Sales ...
Jonas Lamberty's user avatar
3 votes
Accepted

Custom Link to Download/Export Detail Report in Lightning

You can download a report using a link in Lightning but the catch is you will not be able to set the Filters dynamically from the URL. If you are just looking for something which will simply download ...
Avinash Kumar's user avatar
3 votes
Accepted

How to open an object for viewing from the "datatable" table?

You need to synthesize an attribute in your data with the record URL desired, and use that instead of Name as the fieldName for this column. Your label field remains Name to present that to the user. ...
David Reed's user avatar
  • 92.5k
3 votes
Accepted

Problem with the onclick javascript for this button or link was encountered unexpected token

Given that your code doesn't have any obvious syntax errors, I suspect it's one of your Custom Labels havng a ' in it, causing the syntax error. Always encode your merge fields when they may have ...
sfdcfox's user avatar
  • 487k
3 votes
Accepted

How do we pass record's page as a link in apex class?

you can do this easily in Apex. create Pagereference method public pagereference redirectUser() { return new pagereference('/'+recid); } and call this method and it will redirect to record ...
Tushar Sharma's user avatar
2 votes

Javascript code in custom link

JavaScript does not use <> to mean "not equals." Instead, you could use !=, or you can even just use a formula. Also, make sure your merge fields are also in the {! ... } format. You're also ...
sfdcfox's user avatar
  • 487k
2 votes
Accepted

Add Dynamic Contact Id in Marketing cloud Email Level Data

If you contact Id is the subscriber key why don't you use the personalisation string: %%_subscriberkey%% You have them here. If you need another value just use the same principle %%myID%% for the ...
Jeremy Garcia's user avatar
2 votes
Accepted

How do I build an external link with Salesforce Essentials?

Yes, you can do basic customization. In this case, you could use either a custom link or a custom field. As a custom link, simply go to Setup > Customize > Contacts > Buttons and Links (Classic) or ...
sfdcfox's user avatar
  • 487k
2 votes
Accepted

Dynamic link based on today Date

No it is not possible to do this with AMPscript as AMPscript is processed at send time in marketing cloud. One possible workaround would be setting the link to a page on your website and this site ...
Markus Dang - formerly Slabina's user avatar
2 votes

Get server name (eg. EU1) via JS working reliable for all cases including Sandboxes and MyDomains

It's not a very elegant solution, but you could create (and then delete) an object using JavaScript, capture the ID of the created object and process the POD name using the mapping method detailed at ...
Mark Keats's user avatar
  • 1,909
2 votes
Accepted

Add dynamic link on Contacts in Lightning

Can you check this link as per the salesforce notes the URL buttons are now getting supported, https://releasenotes.docs.salesforce.com/en-us/spring16/release-notes/...
Shankish's user avatar
  • 440
2 votes

onclick Javascript link is not supported in lightning experience

OnClick JavaScript buttons pose security and regulatory issues. Lightning was built from the ground up to deliver the most secure experience possible with technologies such as LockerService. We ...
sanket kumar's user avatar
  • 15.2k
2 votes
Accepted

Generating reports through custom link which works in Lightning as well as Classic

Parameterized report links designed for Classic do not work in Lightning, and those designed for Lightning do not work in Classic. There's a solution for hyperlink formula fields, but it doesn't work ...
David Reed's user avatar
  • 92.5k
1 vote
Accepted

Need to relabel a custom link in Lightning

You can achieve this using standard component Rich Text Box in Lightning App Builder. First drag the standard component Rich Text on the home page. Add the Label Text in the editor and make it ...
Saroj Bera's user avatar
  • 14.7k
1 vote
Accepted

List button URL with default values to create a Task from a custom obj record related list

The issue is with your URL, to create a new task you should use:- /lightning/o/Task/new whereas you were using:- /lightning/e/Task/new to prepopulate other field values, you can refer this article ...
sanket kumar's user avatar
  • 15.2k
1 vote
Accepted

Can we use custom metadata type in a object link formula?

Unfortunately, you cannot refer custom metadata type in custom links. Custom metadata type can be referred only in Formulas, Default Values, and Validation Rules. Check more details here. Thanks
Vinay's user avatar
  • 3,205
1 vote
Accepted

How to use conditionals in an apex: repeat and place a custom link in a visualforce email template?

The former is just a simple apex:outputText/rendered setup: <apex:repeat rows="1" value="{!relatedTo.Events}" var="event"> <apex:outputText ...
sfdcfox's user avatar
  • 487k
1 vote
Accepted

Custom Link to handle multiple events

As far as I can say, what you are trying to achieve is not possible using "Custom Link" with Content Source as URL. You won't have the control of the flow once the link has been clicked to make any ...
Jayant Das's user avatar
  • 30.4k
1 vote
Accepted

How can we get custom setting field value in home page component?

See the Accessing Custom Settings Formula Fields: Formula fields only work for hierarchy custom settings; they can’t be used for list custom settings. {!$Setup.CustomSettingName__c....
Devendra's user avatar
  • 5,075
1 vote

How can we get custom setting field value in home page component?

There is a similar question, here in this post is the answer to retrieve a hierarchy custom setting data: How to Access a Hierarchy Custom Setting from Lightning Component. Working with list custom ...
D. Cruz's user avatar
  • 524
1 vote

How can I see my custom links on lightning UI salesforce?

According to Present Version of Lightning Experience, It cannot work on the Javascript Functionalities directly from the Buttons or Links. It will show nothing on Lightning Page if the Button or Link ...
Subhash's user avatar
  • 1,716
1 vote

Problem with links

As suggested by other members, ids are org-specific - you should rely on something more robust for your logic, otherwise it can also get way too complex to maintain. Also a reminder that read ...
lv1's user avatar
  • 23
1 vote
Accepted

Formula in apex:outputtext

Change the statement like below <apex:outputText value="{!IF(CONTAINS($CurrentPage.parameters.apn, 'Monday'),'It is Monday Page', 'It is not Monday Page')}"/> No need for again giving ...
NITHESH K's user avatar
  • 2,525
1 vote

Lightning Experience Pass Parameters to reports encode issue

Try substituting %2B with %20. Looks like space is getting converted to + and + gets encoded as %2B. Instead of encoding just let the url convert the space to + and substitute + with space /one/...
Rao's user avatar
  • 16.7k
1 vote
Accepted

Custom link with JS which opens in a new tab (for package configuration)

Since it strongly seems that it is not possible to use 'OnClick JavaScript' for a package configuration link: A possible solution would be to use a 'Visual Force' page (for 'Custom Link'). Inside this ...
noBillSide's user avatar
1 vote

Custom link with JS which opens in a new tab (for package configuration)

Is it okay to achieve this without JS? When you create a custom link you can select always open in New Window/tab it will always open in new window irrespective of your environment(Classic/Lightning)
Pranay Jaiswal's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible