what is a client slug?

  • 1
  • Question
  • Updated 4 years ago
There's no reference to this anywhere in the documentation. What is a slug and how is it different from a client name? For example, what are you supposed to pass into this? The regular client name or some other string? Uri GetUriFromSlug(String clientSlug)

(Originally posted by bandtank)
Photo of Archived Post

Archived Post, Official Rep

  • 2132 Posts
  • 6 Reply Likes

Posted 4 years ago

  • 1
Photo of Archived Post

Archived Post, Official Rep

  • 2132 Posts
  • 6 Reply Likes
Hi,

Thank you for using Replicon Community.

Steps to retrieve the clientSlug are as follows:- 

- Log into Replicon as Administrator. 

- On another tab go to URL:- 

https://na2.replicon.com/<CompanyN...

- Click on Submit. 

- Slug will be listed under each client as shown in the screenshot below.



- In the above screenshot clientSlug is test-client. When we try the same for GetUriFromSlug, we get the correct response. 



 



Thanks,

Lingaraj



 

(Originally posted by Lingaraj Dharwad)
Photo of Archived Post

Archived Post, Official Rep

  • 2132 Posts
  • 6 Reply Likes
How are you supposed to get the slug programmatically? My real goal is to get the URI of the client and there are only two options that I've found to do that: GetUriFromSlug (once you know the slug...) and GetAllClients (which is a much larger set of data than I will ever need). My users will only know the client name, not the slug, and I don't see a way to know what the slug is without querying the web service for all client information (GetAllClients). Is there a way to get the slug from the name or is the slug supposed to be the key to the record?

(Originally posted by bandtank)
Photo of Archived Post

Archived Post, Official Rep

  • 2132 Posts
  • 6 Reply Likes
Hi,

Slug is always the client name with hyphens in between. As you see from the below screenshot if you just specify the client name eg., if the client name is ABC EFG, then the slug will be ABC-EFG. With this information you can directly get the uri by specifying client name in the said format.

 



Thanks,

Lingaraj



 

(Originally posted by Lingaraj Dharwad)
Photo of Archived Post

Archived Post, Official Rep

  • 2132 Posts
  • 6 Reply Likes
I'm assuming the slug is supposed to be the client name with all letters changed to lowercase and all whitespace changed to hyphens, but I'm not seeing that behavior. The slug of a client named "testClient3" is "test-client3" as you can see in the attached picture. So is the slug the recommended property to use to get a client record? It sounds like I'm going to have to download the entire client list since the hyphens aren't being inserted deterministically.

(Originally posted by bandtank)
Photo of Archived Post

Archived Post, Official Rep

  • 2132 Posts
  • 6 Reply Likes
Sorry, I forgot to attach the picture and I can't edit it since it isn't approved yet. The picture is attached to this post.

(Originally posted by bandtank)