Skip to main content
1-Visitor
December 3, 2020
Solved

Regarding searching entities.

  • December 3, 2020
  • 1 reply
  • 1533 views

Hi Team,

 

Is there any way to that I can get the list of all the project entities programatically?

 

Thanks and Regards,

Best answer by anarwal

Hi @Bhanu_Manoj , 

 

you can use service.

 

Projects[projectname].GetEntities();

 

Regards

Ankur

  

1 reply

anarwal5-Regular MemberAnswer
5-Regular Member
December 3, 2020

Hi @Bhanu_Manoj , 

 

you can use service.

 

Projects[projectname].GetEntities();

 

Regards

Ankur

  

1-Visitor
December 3, 2020

Hi,

 

Thanks a lot for the reply. Is there any way to set permissions to an entity from services?

5-Regular Member
December 3, 2020

@Bhanu_Manoj 

 

You can use setEntityPermission from snippet directly in query. It looks like:

 

let params = {
allow: undefined /* BOOLEAN */,
name: undefined /* STRING */,
includeDependents: undefined /* BOOLEAN */,
type: undefined /* STRING */,
projectName: undefined /* PROJECTNAME */,
tags: undefined /* TAGS */
};

// no return
Resources["EntityServices"].SetEntityPermission(params);

 

Regards,

Mohit