Skip to main content
16-Pearl
September 11, 2024
Solved

Getting all style definitions on my server

  • September 11, 2024
  • 1 reply
  • 1219 views

Good day community,

 

I want to get all the style definitions on my server. Then assign permissions to these dynamically using a service. I know how to assign permissions dynamically however, I am unsure about how to get all the style definitions that are on my server. 

I saw the spotlights search on searchFunctions it could be helpful.

Has anyone tried something like this before?

 

Best Regards,

Janice

Best answer by nmutter

On Entity EntityServices there is a service GetEntityList which you can pass in a entity type of 'StyleDefinition' which returns all Styles

nmutter_1-1726046895608.png

Is this what you are searching?

 

1 reply

nmutter16-PearlAnswer
16-Pearl
September 11, 2024

On Entity EntityServices there is a service GetEntityList which you can pass in a entity type of 'StyleDefinition' which returns all Styles

nmutter_1-1726046895608.png

Is this what you are searching?

 

Janicen16-PearlAuthor
16-Pearl
September 11, 2024

yes, this is what I was looking for.

Thank you @nmutter.