Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5004 Prikazi

What is the different between <active_id> and <id>?

For example, an Opportunity SB(Smart Button) on a Contact record uses <active_id> for the default search partner...why couldn't just <id> be used instead?

context="{'search_default_partner_id': active_id}">
Avatar
Opusti
Best Answer

you are redirecting to another model when doing such operations. So id must be related to the current model record and the parent will be active id. This is useful to filter out the related records or doing extra operations with the parent records.

for example Employee -> time offs

you can access time offs from the employee profile, while doing so, the employee is parent record and time off as child. while clicking the smart button you will be redirected to the time offs model. hence the id must be the time offs and active id should be employee id.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
avg. 21
6235
0
feb. 21
2849
1
sep. 20
5908
0
jul. 19
216
2
jan. 19
2533