Jump to content
Salesforce and other SMB Solutions are coming soon. ×

In a list, how to omit records with same data so only one shows.


Sachi

Recommended Posts

Hello helpful experts,

 

What I have is a list with 1 field

In the example below (hopefully) you can see that the data in this field can double/triple up sometimes and other times there is just one.

 

This is because we have multiple records for the one client, and each record has different data.

All I need is a list of the Clients but obviously with out there being multiples of the same.

 

Below is an example of what I have:

 

Eg.

CLIENTS

3RPP

3RPP

TY4R

H3EJP

H3EJP

H3EJP

 

What I would like is this:

CLIENTS

3RPP

TY4R

H3EJP

 

Help would be really appreciated. Thankyou.

Sachi

Link to comment
Share on other sites

Try a script like this:

 

Sort [YourTable::YourField, ascending, no dialog]
Go to Record [First]
Set Variable [$Value, YourTable::YourField]
Go to Record/Request [Next]
Loop
 If [ YourTable::YourField = $Value ]
   Omit Record
 Else
   Set Variable [$Value, YourTable::YourField]
   Go to Record/Request [Next, Exit After Last]
 EndIf
End Loop

Link to comment
Share on other sites

So what happened? What was it that was not working?

 

I can post a sample database to show that it works. However, you are not a member so you couldn't get it.

 

Constrain Found Set will not work for this problem.

Link to comment
Share on other sites

oh ok, well I must be doing something wrong when making up the script.

 

The only step I'm not 100% sure about when I write up the script is the:

Set Variable [$value, YourTable: :YourField]

 

When I select specify for this step it asks for a name, value and repetition. Is this right? then it looks like this:

Set Variable [$name: value:]

 

Is that how its supposed to look and what exactly do I put in the name part? Because i can't specify for it.

Do I put the 'YourTable: :YourField' in value or name?

 

I hope this is legible. lol

Sachi

Link to comment
Share on other sites

Set Variable [$value, YourTable: :YourField]

 

When I select specify for this step it asks for a name, value and repetition. Is this right? then it looks like this:

Set Variable [$name: value:]

The 'name' is the name of the variable - enter $value

The 'value' is the name of the field you are de-duplicating. And it will be of the form given. Just click Specify and select the field from the table.

The 'repetition' can be left empty.

 

When in doubt, read the Help about things you don't know how to use. So look up the Set Variable script step in this case. We have to assume that you can help yourself to some extent. ;)

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

Terms of Use