6 votes
Accepted

URL Encoding String with just Plus Signs

Consider using PageReference instead: Lead l = new Lead(Est_Credit_Score__c='999', Phone='(999) 555-1212', FirstName='Brian', LastName='Fear', email='[email protected]')...
sfdcfox's user avatar
  • 487k
4 votes
Accepted

How to pass API endpoint URL containing \ to

I strongly suspect that something is going sideways because you're not properly escaping the non-safe URL characters (like \ and [); in a URL, they must be in a certain style known as "percent ...
sfdcfox's user avatar
  • 487k
3 votes

how to create the url in lightning for vf page?

To navigate in lightning experience using URL you can use below syntax, /one/one.app#/alohaRedirect/recordId OR /one/one.app#/alohaRedirect/Vfpage OR ( For custom Setting record detail page) /...
Sagar Thoriya's user avatar
2 votes
Accepted

SOSL - URL Encode necessary with Asterisks?

My chief question: does Salesforce's SOSL/Parameterized search accept * wildcard searches? Yes, you can use * and ? in search terms. Related q: Does URL encoding a url with search string ...
sfdcfox's user avatar
  • 487k
2 votes
Accepted

Get instance domain in Custom Button

Link manipulation doesn't work properly with Content Source as URL, URL type OnClick JavaScript is advised to use for such requirement. Following works for me: var baseUrl = "{!LEFT($Api....
Raul's user avatar
  • 18.7k
2 votes

URLdecode with AMPScript?

decodeURI() and decodeURIComponent() are JavaScript functions - not AMPScript. It's hard to tell but it looks like you're working in content builder as apposed to in cloud pages. Is that correct? You ...
Yosef Sahler's user avatar
2 votes

Unescaped Attribute Value XSS - how to sanitized event handlers in lightning aura component

You don't sanitize variables or controller calls. The Aura framework does this automatically for you. By the way, the onclick may not work as you expect, as you're trying to call an attribute (v.), ...
sfdcfox's user avatar
  • 487k
2 votes

Url hacking in lightning after comma text values are not capturing

@cloudZigZag, you should use something like URLENCODE(SUBSTITUTE(TEXT, ',', '%2c'))
jagadhish Babu's user avatar
1 vote

Url hacking in lightning after comma text values are not capturing

The documentation for the base URL is inconsistent; in this case it recommends using $Action.Request__c.New or similar rather than hard-coding the host-relative URL form, but in this case it suggests ...
Phil W's user avatar
  • 35.4k
1 vote

How to URLencode a URL in ampscript?

According to documentation, you can choose multiple options on what an how to URL Encode your string. What you are looking for is probably this solution: URLEncode('http://example.com?p=examplé',1,0) ...
Lukas Lunow's user avatar
  • 21.1k
1 vote

URL Rewriting in Lightning to support Classic functionality

Lightning data service (though still in developer preview and super involved) is meant to solve this Loading a Record
Matthew McKinley's user avatar
1 vote
Accepted

Apex equivalent of PHP sha1() and some more encoding methods

This is how it would look like in APEX: String md5 = EncodingUtil.base64Encode(Crypto.generateDigest('MD5', Blob.valueOf(String.valueOf(DateTime.now().getTime())))); system.debug(md5); String var1 = ...
Boris Bachovski's user avatar

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