We have a requirement where the user will not have access to some of the data in 'ABC' entity. Based on certain conditions, the data should be fetched from this entity using impersonation and populate in the lookup field of a different form. Since the user has append to organization privilege he should be able to select the data.
ABC Entity Privilege – User can see the records where he is the owner.
ABC Data-
Id |
ACC Name |
Single Holder |
Owner |
123 |
453 |
ABC |
James |
456 |
453 |
CDE |
James |
123 |
453 |
ABC |
Brian |
456 |
453 |
CDE |
Brian |
CDE Entity Form–
Logged in User - Brian
ABC Field should display all the records basis ACC No. So he should be able to see below records in Lookup Field.
Id |
ACC Name |
Single Holder |
Owner |
123 |
453 |
ABC |
James |
456 |
453 |
CDE |
James |
123 |
453 |
ABC |
Brian |
456 |
453 |
CDE |
Brian |
Now through impersonation I can fetch the data but how to populate the data in pre search event of lookup field.
*This post is locked for comments