Skip to main content
anarwalAnswer
Dec 3, 2020 9:12 AM UTC

Hi @Bhanu_Manoj , 

 

you can use service.

 

Projects[projectname].GetEntities();

 

Regards

Ankur

  

4 replies

anarwalAnswer
Dec 3, 2020 9:12 AM UTC

Hi @Bhanu_Manoj , 

 

you can use service.

 

Projects[projectname].GetEntities();

 

Regards

Ankur

  

Dec 3, 2020 11:09 AM UTC

Hi,

 

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

Dec 3, 2020 11:48 AM UTC

@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