What is usage of RP.isRelatedList() || RP.isOneToMany() || RP.isManyToMany() in UI action buttons?

VENKATESH PUNGA
Tera Contributor

Hi Everyone,

 

I am not how to use  things RP.isRelatedList() || RP.isOneToMany() || RP.isManyToMany()? what is full form RP?

 

Thanks,

Venkat

6 REPLIES 6

Anish Reghu
Kilo Sage
Kilo Sage

For those referring to this thread - there is no method called - isOneToMany() atleast not documented, in the Render Properties API, neither did I find any references to it in the instance.

What I am not sure is - if isManyToMany() if returns false determines a One to Many relationship?

But on the other note, why do we need to determine One to Many? If there exists a reference field on table A referring to a table B - then it is one to Many.

 

Experts may comment!

 

Kindly mark my reply as Correct/Helpful, based on the response.

Cheers,

Anish Reghu

Harshit Sharma1
ServiceNow Employee
ServiceNow Employee

I want to hide my UI action if record is opened in different scope. Lets say u create a record in 'X' scope, UI action is visible. But on changing the scope to 'Y' it shld be hidden. How to do that?