Access Check in Code Studio

I’m trying to use a Code Studio Access Check to allow certain users to view a page

I’m doing cs.get_session_user_id() then a seach to check what groups a user is in and allow access that way.

What I need though is access to the page base object record id, so I can check that the case record type is attached to a group the user is in.

I’ve noticed the params.context_record_id always seems to be null, despite the page having a base object. The params don’t really include anything useful (even just the URL would do as that has the id in it also).

Any ideas how to get the base object record id?

Thanks,

James

You can use cs.url_param to pull params out of the URL? cs.context should also work I think and may have other useful info?

That works!

Didn’t occur to me that those would be available in this situation.

Thanks Ali

James

Hi Ali,

Thank you for reaching out and helping James, and your frequent replies to queries, It shows great Community spirit and is greatly appreciated!

Best Regards,

Mark Pearson - AppShare Manager