Jump to content
  • 0
Sign in to follow this  
GWBjr

Record Level Access based on partial field match

Question

I would like a user to have access to records where their email (after the @) partially matches a field in the table  called website. For example John@excel.com has access to records that have websites equaling www.excel.com. How can I accomplish this? 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi @GWBjr,

You may need to utilize Formula field in table where you store user information (auth. table) in order to sub struct domain name and add global domain.

You can use the following expression in the Formula field:

'www.' + Substring([@field:Email], (Charindex('@', [@field:Email])), Len([@field:Email]))

Finally, you can use this field in Record-Level-Security in order to accomplish your workflow.

Regards,

vitalikssssss

 

 

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Vitalikssssss said:

Hi @GWBjr,

You may need to utilize Formula field in table where you store user information (auth. table) in order to sub struct domain name and add global domain.

You can use the following expression in the Formula field:


'www.' + Substring([@field:Email], (Charindex('@', [@field:Email])), Len([@field:Email]))

Finally, you can use this field in Record-Level-Security in order to accomplish your workflow.

Regards,

vitalikssssss

 

 

Excellent but the formula result includes the "@", how can the formula eliminate that?

Share this post


Link to post
Share on other sites
  • 0
23 minutes ago, Vitalikssssss said:

@GWBjr


Try this expression:


'www.' + Substring([@field:Email], ((Charindex('@', [@field:Email]))+1), Len([@field:Email]))

Regards,

vitalikssssss

Perfect. Thank you

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   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.

Loading...
Sign in to follow this  

×
×
  • Create New...