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
David Torres 15David Torres 15 

clean URL name

Hi!

I am creating Knowledge articles through REST API, I have issues cleaning the URL name since it its not clear how Salesforce cleans it, Does anyone form SFDC can share the regex?
SandhyaSandhya (Salesforce Developers) 
Hi,

You can use below format.
 
https://{domain.lightning.salesforce.com}/lightning/articles/{articleTypeName}/{urlName}[?language={languageIsoCode}]

Check below help article on this.

https://help.salesforce.com/articleView?id=000270419&type=1&language=en_US
 
https://help.salesforce.com/articleView?id=000270455&language=en_US&type=1
 
​​​​​​​Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya