Question

How to get entity id in module from freedom UI page

Hello,

i want to make a custom module to display data in a freedom UI page,

but i can not figure out how to send the Id of the main entity to the module, in a freedom UI page.

 

The page context is sent to the module with the crt.HandleViewModelInitRequest handler, but i don't know how to retrieve id from that context object..

 

is there some documentation i can read about this please ?

 

Regards,

Patrice

Like 0

Like

2 comments
Best reply

Try this: 

const recordId = await request.$context.Id;

Ryan

Try this: 

const recordId = await request.$context.Id;

Ryan

Thanks Ryan, i did not figure $context hold a collection of promises !

Show all comments