Skip to content

Example AspNetCore server demonstrating private embed with programmatic filtering

License

Notifications You must be signed in to change notification settings

domoinc/domo-asp-embed-filters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AspNetCore - Private Embed for dashboards with Programmatic Filtering Example Code

License

About

  • Example AspNetCore server demonstrating private embed for dashboards with programmatic filtering

Setup

  1. Download the source code.
  2. Open up the solution file in Visual Studio named ProgrammaticFiltering.sln.
  3. Edit the ProgrammaticFilteringService.cs file and replace the following items:
  • CLIENT_ID with your client id
  • CLIENT_SECRET with your client secret
  • EMBED_ID with the embedded id of your dashboard e.g. "ej73t"
  • Modify the filter each user receives by replacing [] with any filtering you want to do such as "[{"column": "Region", "operator": "IN", "values": ["West"]}]".
    The complete list of available operators for use in filters are as follows: "IN", "NOT_IN", "EQUALS", "NOT_EQUALS", "GREATER_THAN", "GREAT_THAN_EQUALS_TO", "LESS_THAN", "LESS_THAN_EQUALS_TO".
    Specify different filters for each user to see the ability of programmatic filtering in action.
  1. Start the IIS Express server in Visual Studio and go to the page that loads in your browser.
  2. The possible logins are [email protected], [email protected], and [email protected]. The password for all the users is "test".

The EMBED_ID represents the public or private identifier for the dashboard. The CLIENT_ID and CLIENT_SECRET is used to create the access token which will be used to then create an embed token for use with the private embed. For more information about creating the CLIENT_ID and CLIENT_SECRET see https://developer.domo.com/docs/authentication/overview-4.

About

Example AspNetCore server demonstrating private embed with programmatic filtering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published